提交 0990cf3e authored 作者: Roy Xue's avatar Roy Xue 提交者: Lijun Xue

Fix code comments

上级 2d79c5f4
...@@ -891,15 +891,15 @@ class VM_Linker(link.LocalLinker): ...@@ -891,15 +891,15 @@ class VM_Linker(link.LocalLinker):
thunks = [] thunks = []
for node in order: for idx in range(order):
idx = order.index(node) node = order[idx]
for ins in node.inputs: for ins in node.inputs:
if ins.allow_gc and ins.ndim == 0: if ins.allow_gc and ins.ndim == 0:
# check if input variable can be gc and ndim = 0 # check if input variable can be gc and ndim = 0
for i in range(idx + 1, len(order)): for i in range(idx + 1, len(order)):
for outs in order[i].outputs: for outs in order[i].outputs:
if outs.ndim == 0 and outs == ins: if outs.ndim == 0:
storage_map[outs] == storage_map[ins] storage_map[outs] = storage_map[ins]
for node in order: for node in order:
try: try:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论