Skip to content

Commit

Permalink
Merge pull request #114 from PAICookers/dev
Browse files Browse the repository at this point in the history
Release: v1.1.1
  • Loading branch information
KafCoppelia authored Jul 9, 2024
2 parents a4844cc + 064beb0 commit ff09f3f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 62 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@
1. 子网络现在直接在主网络内部 `self.subnet=...` 例化即可
2. 编译选项现在直接通过 `paibox.Mapper.compile(...)` 传入,默认配置不变
3.`paibox.Mapper.export()` 中使用 `split_by_chip` 指定配置帧文件是否以芯片分割,默认不分割。原 `split_by_coord` 弃用。

## v1.1.1

- 修复对权重RAM错误的配置
60 changes: 0 additions & 60 deletions TODO.md

This file was deleted.

6 changes: 5 additions & 1 deletion paibox/backend/placement.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,16 @@ def _fold_raw_weights(self, raw_weights: list[WeightType]) -> WeightType:
# LCN_EX > LCN_1X
for raw_weight in raw_weights:
w_folded_of_axon_segs.clear()
_n_axon_last = 0

for s in self.source:
axon_seg = self.parent.axon_segments[s]

# Retrive the weight of the axon segment
w_of_axon_seg = raw_weight[: axon_seg.n_axon, :]
w_of_axon_seg = raw_weight[
_n_axon_last : _n_axon_last + axon_seg.n_axon, :
]
_n_axon_last += axon_seg.n_axon

# Fold the weight of axon segment
w_folded_of_axon_seg = self._nfold_weight(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "paibox"
version = "1.1.0"
version = "1.1.1"
description = "Toolchain of PAICORE 2.0"
authors = ["Ziru Pan <[email protected]>"]
maintainers = [
Expand Down

0 comments on commit ff09f3f

Please sign in to comment.