onnx_chainer.replace_func.as_funcnode¶
- onnx_chainer.replace_func.as_funcnode(name, rename_attributes=None)¶
The target function fakes FunctionNode
The target function is overwrapped to connect variable node by acting function node. Expected to be used as decorator. More detail, see
fake_as_funcnode
documentation.Example
>>> @onnx_chainer.replace_func.as_funcnode( ... 'CustomNode', rename_attributes=[(1, 'value'), ('c', 'y')]) ... def func(x, a, b, c=1, d=2): pass