15 inputFile = std::string(
gROOT->GetTutorialsDir()) +
"/machine_learning/Linear_16.onnx";
38 std::cout<<
"\n\nTensor \"16weight\" already exist: "<<std::boolalpha<<model.
CheckIfTensorAlreadyExist(
"16weight")<<
"\n\n";
40 std::cout<<
"Shape of tensor \"16weight\": ";
44 std::cout<<
"\n\nData type of tensor \"16weight\": ";
46 std::cout<<SOFIE::ConvertTypeToString(
tensorType);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
RModel Parse(std::string filename, bool verbose=false)
void PrintIntermediateTensors()
bool CheckIfTensorAlreadyExist(std::string tensor_name)
void OutputGenerated(std::string filename="", bool append=false)
const ETensorType & GetTensorType(std::string name) const
const std::vector< size_t > & GetTensorShape(std::string name) const
void PrintInitializedTensors()
void Generate(std::underlying_type_t< Options > options, int batchSize=-1, long pos=0, bool verbose=false)
void PrintRequiredInputTensors()