13void TMVA_SOFIE_ONNX(std::string inputFile =
""){
14 if (inputFile.empty() )
15 inputFile = std::string(
gROOT->GetTutorialsDir()) +
"/tmva/Linear_16.onnx";
38 std::cout<<
"\n\nTensor \"16weight\" already exist: "<<std::boolalpha<<model.
CheckIfTensorAlreadyExist(
"16weight")<<
"\n\n";
39 std::vector<size_t> tensorShape = model.
GetTensorShape(
"16weight");
40 std::cout<<
"Shape of tensor \"16weight\": ";
41 for(
auto& it:tensorShape){
44 std::cout<<
"\n\nData type of tensor \"16weight\": ";
46 std::cout<<SOFIE::ConvertTypeToString(tensorType);
RModel Parse(std::string filename, bool verbose=false)
const ETensorType & GetTensorType(std::string name)
void PrintIntermediateTensors()
bool CheckIfTensorAlreadyExist(std::string tensor_name)
void PrintInitializedTensors()
void OutputGenerated(std::string filename="")
const std::vector< size_t > & GetTensorShape(std::string name)
void Generate(std::underlying_type_t< Options > options, int batchSize=1)
void PrintRequiredInputTensors()