3#include "onnx_proto3.pb.h"
6namespace Experimental {
12 auto input_name = nodeproto.input(0);
16 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Softmax op has input tensor " + input_name +
17 " but its type is not yet registered");
20 std::unique_ptr<ROperator> op;
21 std::string output_name = nodeproto.output(0);
23 int64_t attr_axis = -1;
24 if (nodeproto.attribute_size() == 1 && nodeproto.attribute(0).name() ==
"axis")
25 attr_axis = nodeproto.attribute(0).i();
30 throw std::runtime_error(
"TMVA::SOFIE - Unsupported - Operator Softmax does not yet support input type " +
31 std::to_string(
static_cast<int>(input_type)));
bool IsRegisteredTensorType(const std::string &)
void RegisterTensorType(const std::string &, ETensorType)
ETensorType GetTensorType(const std::string &name)
std::function< std::unique_ptr< ROperator >(RModelParser_ONNX &, const onnx::NodeProto &)> ParserFuncSignature
ParserFuncSignature ParseSoftmax
create variable transformations