1#ifndef TMVA_SOFIE_ROPERATOR_RNN 
    2#define TMVA_SOFIE_ROPERATOR_RNN 
   13namespace Experimental {
 
   91      if (std::is_same<T, float>::value) {
 
   94         throw std::runtime_error(
 
   95             "TMVA SOFIE Encountered unsupported type parsing a RNN operator");
 
 
  128   std::vector<std::vector<size_t>>
 
  148   std::vector<std::string> 
GetBlasRoutines()  { 
return { std::string(
"Gemm"), std::string(
"Axpy") }; }
 
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
 
Recurrent Neural Network operator.
 
std::vector< size_t > fShapeB
Shape of the bias.
 
std::vector< ETensorType > TypeInference(std::vector< ETensorType > input)
Infers the type of the output tensors.
 
std::vector< float > fAttrActivationBeta
Scaling values used by some activation functions.
 
std::vector< std::vector< size_t > > ShapeInference(std::vector< std::vector< size_t > > input)
Infers the shape of the output tensors.
 
std::vector< std::string > GetBlasRoutines()
Returns the blas routines needed to compile the generated code.
 
size_t fAttrHiddenSize
Number of the hidden layers.
 
std::string fNInitial_h
Name of the initial value of the hidden states.
 
ROperator_RNN(std::vector< float > activation_alpha, std::vector< float > activation_beta, std::vector< std::string > activations, float clip, std::string direction, size_t hidden_size, size_t layout, std::string nameX, std::string nameW, std::string nameR, std::string nameB, std::string nameSequence_lens, std::string nameInitial_h, std::string nameY, std::string nameY_h)
Constructor of ROperator_RNN from the attributes.
 
std::vector< size_t > fShapeR
Shape of the recurrence.
 
std::string fNW
Name of the weights.
 
std::string fNB
Name of the bias.
 
std::vector< size_t > fShapeY
Shape of the output.
 
float fAttrClip
Clip threshold.
 
std::string fType
Type of the tensors.
 
size_t fAttrLayout
Data layout.
 
std::string fNY
Name of the output.
 
std::string fNSequence_lens
Name of the length of the sequences.
 
std::vector< size_t > fShapeSequence_lens
Shape of the length of the sequences.
 
void Initialize(RModel &)
Initialize the model.
 
std::string Generate(std::string OpName)
Generates the inference code.
 
std::string fNR
Name of the recurrence.
 
std::vector< float > fAttrActivationAlpha
Scaling values used by some activation functions.
 
ROperator_RNN()
Default constructor of ROperator_RNN.
 
std::vector< size_t > fShapeX
Shape of the input.
 
std::string fAttrDirection
Direction of processing.
 
std::string fNX
Name of the input.
 
std::string GenerateSessionMembersCode(std::string opName)
 
std::string fNY_h
Name of the last sequence of the output.
 
std::vector< size_t > fShapeInitial_h
Shape of the initial value of the hidden states.
 
std::vector< size_t > fShapeW
Shape of the weights.
 
std::vector< std::string > fAttrActivations
Activation functions.
 
std::vector< size_t > fShapeY_h
Shape of the last sequence of the output.
 
std::vector< std::string_view > fInputTensorNames
 
std::vector< std::string_view > fOutputTensorNames
 
create variable transformations