Defined in File operator_node.h
public mgb::cg::OperatorNodeMixinBase (Class OperatorNodeMixinBase)
public mgb::cg::OperatorNodeMixinBase
public mgb::cg::mixin::IOSameShapeOperatorNode (Class IOSameShapeOperatorNode)
public mgb::cg::mixin::IOSameShapeOperatorNode
mgb::cg::mixin::
::
OutshapePureByInshapeOpr
mixin class for implementing operators whose output shapes are completely determined by input shapes
Subclassed by mgb::cg::mixin::IOSameShapeOperatorNode
Protected Functions
mixin_set_nr_managed_outputs
By default, all output vars would be managed by OutshapePureByInshapeOprBase; call this function to set the number of output vars that should be managed by this helper (they would be the first vars of all output vars).
mixin_init_output_static_infer_desc
get_output_var_shape
get output shapes from input shapes
inp_shape: current input shape; each element matches an input var
inp_shape
out_shape: output shape; storage already allocated, and each element matches an output var
out_shape
~OutshapePureByInshapeOpr