3#include "onnx_proto3.pb.h"
6namespace Experimental {
25 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Randomr op has input tensor" +
input_name +
26 " but its type is not yet registered");
31 std::map<std::string, float>
paramMap;
32 std::vector<size_t> shape;
33 for (
int i = 0; i <
nodeproto.attribute_size(); i++) {
39 if (
attr_type == onnx::AttributeProto::FLOAT )
41 else if (
attr_type == onnx::AttributeProto::INT)
44 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Random op has invalid type for attribute seed");
47 if (
attr_type != onnx::AttributeProto::INTS)
48 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Random op has invalid type for attribute shape");
53 if (
attr_type == onnx::AttributeProto::FLOAT)
55 else if (
attr_type == onnx::AttributeProto::INT)
58 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Random op has invalid type for attribute " +
attribute_name);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
const_iterator begin() const
const_iterator end() const
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 ParseRandom
create variable transformations