未验证 提交 704303ca 编写于 作者: J JYChen 提交者: GitHub

remove advanced_check for Variable in slice (#56337)

上级 cbade6ad
......@@ -734,13 +734,6 @@ def monkey_patch_tensor():
for slice_item in item:
if isinstance(slice_item, (list, np.ndarray, Variable, range)):
return True
elif isinstance(slice_item, slice):
if (
isinstance(slice_item.start, Variable)
or isinstance(slice_item.stop, Variable)
or isinstance(slice_item.step, Variable)
):
return True
return False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册