26 template<
typename DataType>
28 std::vector<ITensorHandle*> outputs,
30 const std::string& layerName =
"")
40 std::unique_ptr<Decoder<DataType>> input0 = MakeDecoder<DataType>(inputInfo0, inputs[0]->
Map());
41 std::unique_ptr<Decoder<DataType>> input1 = MakeDecoder<DataType>(inputInfo1, inputs[1]->
Map());
42 std::unique_ptr<Encoder<DataType>> output = MakeEncoder<DataType>(outputInfo, outputs[0]->
Map());
59 AddFunction(inShape0, inShape1, outShape, *input0, *input1, *output);
64 if(!layerName.empty() && layerName.find(
"FloorDiv") != std::string::npos)
66 FloorDivFunction(inShape0, inShape1, outShape, *input0, *input1, *output);
70 DivFunction(inShape0, inShape1, outShape, *input0, *input1, *output);
76 MaximumFunction(inShape0, inShape1, outShape, *input0, *input1, *output);
81 MinimumFunction(inShape0, inShape1, outShape, *input0, *input1, *output);
86 MulFunction(inShape0, inShape1, outShape, *input0, *input1, *output);
91 SubFunction(inShape0, inShape1, outShape, *input0, *input1, *output);
96 SqDiffFunction(inShape0, inShape1, outShape, *input0, *input1, *output);
101 PowerFunction(inShape0, inShape1, outShape, *input0, *input1, *output);
130 std::vector<ITensorHandle*> outputs)
const