提交 b163a309 authored 作者: Olivier Breuleux's avatar Olivier Breuleux

added Macro

上级 80ac390e
......@@ -126,3 +126,15 @@ class Op(utils.object2):
class Macro(Op):
"""
Abstract Op which does not have an implementation but can be expanded
into a computable graph with its expand() method.
"""
def expand(self, *outputs):
"""
Returns a node representing the expansion of this macro.
"""
raise utils.AbstractFunctionError()
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论