mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-02 09:38:05 +00:00
[autoparallel] update getitem handler (#2207)
This commit is contained in:
@@ -223,7 +223,8 @@ def _size_value_converting(gm: torch.fx.GraphModule, device_mesh: DeviceMesh):
|
||||
node.args = new_args
|
||||
|
||||
elif isinstance(getitem_index, (tuple, list)):
|
||||
assert isinstance(getitem_index[0], slice)
|
||||
if not isinstance(getitem_index[0], slice):
|
||||
continue
|
||||
new_slice_items = []
|
||||
|
||||
for slice_item in getitem_index:
|
||||
|
Reference in New Issue
Block a user