3#include "onnx_proto3.pb.h"
6namespace Experimental {
10 auto input_name = nodeproto.input(0);
12 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Cast op has input tensor" + input_name +
13 " but its type is not yet registered");
16 std::unique_ptr<ROperator> op;
17 std::string attr_type;
19 for (
int_t i = 0; i < nodeproto.attribute_size(); i++) {
20 std::string attribute_name = nodeproto.attribute(i).name();
21 if (attribute_name ==
"to")
25 std::string output_name = nodeproto.output(0);
26 op.reset(
new ROperator_Cast(attr_type, nodeproto.input(0), output_name));
bool IsRegisteredTensorType(const std::string &)
void RegisterTensorType(const std::string &, ETensorType)
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