Type functions¶
Description¶
In GNA there is a number of predefined types functions for setting sizes(shapes) of outputs based on inputs sizes, see core/TransformationBase.hh:
Atypes::pass<I,J>
- assigns shape of I-th inputs to J-th output.Atypes::passAll
- assigns shape of each input to corresponding output. If the number of inputs and outputs is not the same, exception will be thrown. In case of single input and multiple outputs assign its’ size to each output.Atypes::ifSame
- checks that all inputs are of the same type (shape and content description).Atypes::ifSameShape
- checks that all inputs have the same shape.Atypes::ifHist<I>
- checks that input I is a histogram (has kind Hist).Atypes::ifPoints<I>
- checks that input I is of kind Points.