14 for (
int i = 0; i < 2; ++i) {
15 auto input_name = nodeproto.input(i);
22 if (input_type2 != input_type) {
24 std::runtime_error(
"TMVA::SOFIE ONNX parser Binary op has input tensors of different types: " +
30 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Binary op has input tensor " + input_name +
31 " but its type is not yet registered");
35 std::unique_ptr<ROperator> op;
36 std::string output_name = nodeproto.output(0);
52 throw std::runtime_error(
"TMVA::SOFIE - Unsupported - Binary Operator does not yet support input type " +
53 std::to_string(
static_cast<int>(input_type)));
95 for (
int i = 0; i < 2; ++i) {
96 auto input_name = nodeproto.input(i);
103 if (input_type2 != input_type) {
105 std::runtime_error(
"TMVA::SOFIE ONNX parser Binary op has input tensors of different types: " +
111 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Binary op has input tensor " + input_name +
112 " but its type is not yet registered");
117 if (nodeproto.attribute_size() > 0) {
118 fmod = nodeproto.attribute(0).i();
120 std::unique_ptr<ROperator> op;
121 std::string output_name = nodeproto.output(0);
123 switch (input_type) {
143 throw std::runtime_error(
"TMVA::SOFIE - Unsupported - Binary Operator does not yet support input type " +
144 std::to_string(
static_cast<int>(input_type)));