26 const onnx::NodeProto &nodeproto) {
30 if (nodeproto.input_size() < 1) {
31 throw std::runtime_error(
32 "TMVA::SOFIE ONNX Parser Clip op has invalid input size " +
33 std::to_string(nodeproto.input_size()) +
" (expected 1, 2 or 3)");
38 throw std::runtime_error(
39 "TMVA::SOFIE ONNX Parser Clip op has input tensor " +
40 nodeproto.input(0) +
" but its type is not yet registered");
46 std::string minName = (nodeproto.input_size() > 1) ? nodeproto.input(1) :
"";
47 std::string maxName = (nodeproto.input_size() > 2) ? nodeproto.input(2) :
"";
52 throw std::runtime_error(
53 "TMVA::SOFIE ONNX Parser Clip op: min tensor " + minName +
60 throw std::runtime_error(
61 "TMVA::SOFIE ONNX Parser Clip op: max tensor " + maxName +
68 std::unique_ptr<ROperator> op;
69 std::string output_name = nodeproto.output(0);
74 nodeproto.input(0), output_name, minName, maxName));
78 nodeproto.input(0), output_name, minName, maxName));
82 nodeproto.input(0), output_name, minName, maxName));
86 nodeproto.input(0), output_name, minName, maxName));
89 throw std::runtime_error(
90 "TMVA::SOFIE - Unsupported - Clip Operator does not yet support "