提交 f9a3234e authored 作者: Ricardo Vieira's avatar Ricardo Vieira 提交者: Ricardo Vieira

Rewrite Blockwise IncSubtensor

Also cover cases of AdvancedIncSubtensor with batch indices that were not supported before
上级 5046519a
...@@ -1417,7 +1417,6 @@ class SubtensorPrinter(Printer): ...@@ -1417,7 +1417,6 @@ class SubtensorPrinter(Printer):
pprint.assign(Subtensor, SubtensorPrinter()) pprint.assign(Subtensor, SubtensorPrinter())
# TODO: Implement similar vectorize for Inc/SetSubtensor
@_vectorize_node.register(Subtensor) @_vectorize_node.register(Subtensor)
def vectorize_subtensor(op: Subtensor, node, batch_x, *batch_idxs): def vectorize_subtensor(op: Subtensor, node, batch_x, *batch_idxs):
"""Rewrite subtensor with non-batched indexes as another Subtensor with prepended empty slices.""" """Rewrite subtensor with non-batched indexes as another Subtensor with prepended empty slices."""
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论