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)
const ETensorType & GetTensorType(std::string name)
void Generate(bool useSession=true, bool useWeightFile=true)
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 PrintRequiredInputTensors()