Browse Source

[fx] fix the discretize bug (#1506)

* [fx] fix wrong variable name in solver rotor

* [fx] fix wrong variable name in solver rotor

* code modification

* [fx] fix the discretize bug
pull/1507/head^2
Boyuan Yao 2 years ago committed by GitHub
parent
commit
ac3a453a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      colossalai/fx/passes/algorithms/ckpt_solver_rotor.py

2
colossalai/fx/passes/algorithms/ckpt_solver_rotor.py

@ -142,8 +142,6 @@ def _construct_chain(node_dict: Dict[int, Node], data: torch.Tensor, mem_unit: i
bwd_time.append(0)
fwd_time = _discretize(mem_unit, fwd_time)
bwd_time = _discretize(mem_unit, bwd_time)
xbar_sizes = _discretize(mem_unit, xbar_sizes)
x_sizes = _discretize(mem_unit, x_sizes)
tmp_fwd = _discretize(mem_unit, tmp_fwd)

Loading…
Cancel
Save