Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RModelParser_Keras.cxx File Reference
#include "TMVA/RModelParser_Keras.h"
#include <Python.h>
#include <numpy/arrayobject.h>
Include dependency graph for RModelParser_Keras.cxx:

Namespaces

namespace  TMVA
 create variable transformations
 
namespace  TMVA::Experimental
 
namespace  TMVA::Experimental::SOFIE
 
namespace  TMVA::Experimental::SOFIE::PyKeras
 
namespace  TMVA::Experimental::SOFIE::PyKeras::INTERNAL
 

Macros

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 

Typedefs

using TMVA::Experimental::SOFIE::PyKeras::INTERNAL::KerasMethodMap = std::unordered_map< std::string, std::unique_ptr< ROperator >(*)(PyObject *fLayer)>
 
using TMVA::Experimental::SOFIE::PyKeras::INTERNAL::KerasMethodMapWithActivation = std::unordered_map< std::string, std::unique_ptr< ROperator >(*)(PyObject *fLayer)>
 

Functions

void TMVA::Experimental::SOFIE::PyKeras::INTERNAL::AddKerasLayer (RModel &rmodel, PyObject *fLayer)
 Adds equivalent ROperator with respect to Keras model layer into the referenced RModel object.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasActivation (PyObject *fLayer)
 Prepares a ROperator object for Keras activation layer.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasBatchNorm (PyObject *fLayer)
 Prepares a ROperator object for Keras BatchNorm layer.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasBinary (PyObject *fLayer)
 Prepares a ROperator object for Keras binary operations like Add, subtract, and multiply.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasConcat (PyObject *fLayer)
 Prepares a ROperator object for Keras Concat layer.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasConv (PyObject *fLayer)
 Prepares a ROperator object for Keras Conv Layer.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasDense (PyObject *fLayer)
 Prepares a ROperator object for Keras Dense Layer.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasIdentity (PyObject *fLayer)
 Prepares a ROperator object for Keras Identity and Dropout Layer.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasLeakyRelu (PyObject *fLayer)
 Prepares a ROperator object for Keras Leaky Relu activation.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasPermute (PyObject *fLayer)
 Prepares a ROperator object for Keras Permute layer.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasReLU (PyObject *fLayer)
 Prepares a ROperator object for Keras ReLU activation.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasReshape (PyObject *fLayer)
 Prepares a ROperator object for Keras Reshape layer.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasSelu (PyObject *fLayer)
 Prepares a ROperator object for Keras Selu activation.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasSigmoid (PyObject *fLayer)
 Prepares a ROperator object for Keras Sigmoid activation.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasSoftmax (PyObject *fLayer)
 Prepares a ROperator object for Keras Softmax activation.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasSwish (PyObject *fLayer)
 Prepares a ROperator object for Keras Swish activation.
 
std::unique_ptr< ROperatorTMVA::Experimental::SOFIE::PyKeras::INTERNAL::MakeKerasTanh (PyObject *fLayer)
 Prepares a ROperator object for Keras Tanh activation.
 
RModel TMVA::Experimental::SOFIE::PyKeras::Parse (std::string filename)
 Parser function for translatng Keras .h5 model into a RModel object.
 

Variables

static PyObject *(&) TMVA::Experimental::SOFIE::PyKeras::GetValueFromDict (PyObject *, const char *) = PyMethodBase::GetValueFromDict
 
const KerasMethodMap TMVA::Experimental::SOFIE::PyKeras::INTERNAL::mapKerasLayer
 
const KerasMethodMapWithActivation TMVA::Experimental::SOFIE::PyKeras::INTERNAL::mapKerasLayerWithActivation
 
static void(&) TMVA::Experimental::SOFIE::PyKeras::PyRunString (TString, PyObject *, PyObject *) = PyMethodBase::PyRunString
 
static const char *(&) TMVA::Experimental::SOFIE::PyKeras::PyStringAsString (PyObject *) = PyMethodBase::PyStringAsString
 

Macro Definition Documentation

◆ NPY_NO_DEPRECATED_API

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION

Definition at line 24 of file RModelParser_Keras.cxx.