11 if (nodeproto.input_size() != 3) {
12 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser ScatterND op has invalid input size");
15 for (
int i = 0; i < 3; i++) {
17 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser ScatterND op has input tensor " + nodeproto.input(i)
18 +
" but its type is not yet registered");
24 throw std::runtime_error(
"TMVA::SOFIE ONNX parser ScatterND op has input tensors of different types: " +
29 std::string reduction;
30 for (
int i = 0; i < nodeproto.attribute_size(); i++) {
31 std::string attribute_name = nodeproto.attribute(i).name();
32 if (attribute_name ==
"reduction")
33 reduction = nodeproto.attribute(i).s();
36 std::string output_name = nodeproto.output(0);
38 auto op = std::make_unique<ROperator_ScatterND>(nodeproto.input(0), nodeproto.input(1), nodeproto.input(2),
39 output_name, reduction);