1#ifndef TMVA_SOFIE_RMODEL
2#define TMVA_SOFIE_RMODEL
9namespace Experimental {
48 void AddOperator(std::unique_ptr<ROperator> op,
int order_execution = -1);
50 std::unique_ptr<ROperator> tmp(op);
58 for(
auto item:shape) {
62 std::memcpy(
data.get(), raw_data,
size *
sizeof(T));
72 void UpdateOutputTensorList(std::vector<std::string> curr_output_tensor, std::vector<std::string> modify_output_tensor);
80 void Generate(std::underlying_type_t<Options> options,
int batchSize = 1,
long pos = 0);
82 Generate(
static_cast<std::underlying_type_t<Options>
>(options), batchSize, pos);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
void AddOutputTensorNameList(std::vector< std::string > outputtensornames)
const ETensorType & GetTensorType(std::string name)
RModel(const RModel &other)=delete
const std::vector< std::string > & GetOutputTensorNames() const
void GenerateIntermediateTensorInfo()
void AddOperatorReference(ROperator *op, int order_execution=-1)
void PrintIntermediateTensors()
void Generate(Options options=Options::kDefault, int batchSize=1, int pos=0)
void AddIntermediateTensor(std::string tensor_name, ETensorType type, std::vector< std::size_t > shape)
RModel(std::string function_name)
void PrintOutputTensors()
bool CheckIfTensorAlreadyExist(std::string tensor_name)
std::vector< std::unique_ptr< ROperator > > fOperators
void OutputGenerated(std::string filename="", bool append=false)
void AddInputTensorInfo(std::string input_name, ETensorType type, std::vector< Dim > shape)
void Initialize(int batchSize=1)
std::unordered_map< std::string, TensorInfo > fIntermediateTensorInfos
std::unordered_map< std::string, TensorInfo > fReadyInputTensorInfos
void AddInitializedTensor(std::string tensor_name, ETensorType type, std::vector< std::size_t > shape, std::shared_ptr< void > data)
RModel & operator=(RModel &&other)
void AddInputTensorName(std::string name)
std::vector< std::string > fOutputTensorNames
bool IsInitializedTensor(const std::string &name) const
void AddInitializedTensor(std::string tensor_name, ETensorType type, std::vector< std::size_t > shape, T *raw_data)
void PrintInitializedTensors()
void AddOperator(std::unique_ptr< ROperator > op, int order_execution=-1)
void HeadInitializedTensors(std::string name, int n_print=50)
const std::vector< size_t > & GetTensorShape(std::string name)
long WriteInitializedTensorsToFile(std::string filename="")
RModel & operator=(const RModel &other)=delete
void Generate(std::underlying_type_t< Options > options, int batchSize=1, long pos=0)
std::unordered_map< std::string, InputTensorInfo > fInputTensorInfos
std::shared_ptr< void > GetInitializedTensorData(std::string tensor_name)
void ReadInitializedTensorsFromFile(long)
void SetFilename(std::string filename)
void GenerateInitializedTensorInfo()
std::vector< std::string > fInputTensorNames
const std::vector< std::string > & GetInputTensorNames() const
std::unordered_map< std::string, InitializedTensor > fInitializedTensors
void UpdateInitializedTensor(std::string tensor_name, ETensorType type, std::vector< std::size_t > shape, std::shared_ptr< void > data)
std::vector< std::string > GetOutputTensorNames()
void UpdateOutputTensorList(std::vector< std::string > curr_output_tensor, std::vector< std::string > modify_output_tensor)
RModel(std::string name, std::string parsedtime)
void PrintRequiredInputTensors()
create variable transformations