3#include "onnx_proto3.pb.h"
6namespace Experimental {
11 auto input_name = nodeproto.input(0);
15 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Cast op has input tensor" + input_name +
16 " but its type is not yet registered");
19 std::unique_ptr<ROperator> op;
20 std::string attr_type;
22 for (
int_t i = 0; i < nodeproto.attribute_size(); i++) {
23 std::string attribute_name = nodeproto.attribute(i).name();
24 if (attribute_name ==
"to")
28 std::string output_name = nodeproto.output(0);
35 throw std::runtime_error(
"TMVA::SOFIE - Unsupported - Operator Cast does not yet support input type " +
36 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 ParseCast
std::string ConvertTypeToString(ETensorType type)
ETensorType ConvertStringToType(std::string type)
create variable transformations