13void TMVA_SOFIE_ONNX(std::string inputFile =
""){
14 if (inputFile.empty() )
15 inputFile = std::string(
gROOT->GetTutorialsDir()) +
"/machine_learning/Linear_16.onnx";
24 model.OutputGenerated();
27 model.PrintRequiredInputTensors();
31 model.PrintInitializedTensors();
35 model.PrintIntermediateTensors();
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\": ";
50 model.PrintGenerated();
RModel Parse(std::string const &filename, bool verbose=false)
std::string ConvertTypeToString(ETensorType type)