ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
RModelParser_Keras.h
Go to the documentation of this file.
1
// @(#)root/tmva/pymva $Id$
2
// Author: Sanjiban Sengupta, 2021
3
4
/**********************************************************************************
5
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6
* Package: TMVA *
7
* *
8
* *
9
* Description: *
10
* Functionality for parsing a saved Keras .H5 model into RModel object *
11
* *
12
* Authors (alphabetical): *
13
* Sanjiban Sengupta <sanjiban.sg@gmail.com> *
14
* *
15
* Copyright (c) 2021: *
16
* CERN, Switzerland *
17
* *
18
* *
19
* Redistribution and use in source and binary forms, with or without *
20
* modification, are permitted according to the terms listed in LICENSE *
21
* (see tmva/doc/LICENSE) *
22
**********************************************************************************/
23
24
25
#ifndef TMVA_SOFIE_RMODELPARSER_KERAS
26
#define TMVA_SOFIE_RMODELPARSER_KERAS
27
28
#include "
TMVA/RModel.hxx
"
29
#include "
TMVA/SOFIE_common.hxx
"
30
#include "
TMVA/Types.h
"
31
#include "
TMVA/OperatorList.hxx
"
32
33
#include "
Rtypes.h
"
34
#include "
TString.h
"
35
36
37
namespace
TMVA::Experimental::SOFIE::PyKeras
{
38
39
/// Parser function for translating Keras .h5 model into a RModel object.
40
/// Accepts the file location of a Keras model and returns the
41
/// equivalent RModel object.
42
/// One can specify as option a batch size that can be used when the input Keras model
43
/// has not a defined input batch size : e.g. for input = (input_dim,)
44
RModel
Parse
(std::string filename,
int
batch_size = -1);
45
46
}
// namespace TMVA::Experimental::SOFIE::PyKeras
47
48
#endif
//TMVA_PYMVA_RMODELPARSER_KERAS
OperatorList.hxx
RModel.hxx
Rtypes.h
SOFIE_common.hxx
TString.h
TMVA::Experimental::SOFIE::RModel
Definition
RModel.hxx:12
TMVA::Experimental::SOFIE::PyKeras
Definition
RModelParser_Keras.h:37
TMVA::Experimental::SOFIE::PyKeras::Parse
RModel Parse(std::string filename, int batch_size=-1)
Parser function for translating Keras .h5 model into a RModel object.
Definition
RModelParser_Keras.cxx:12
Types.h
tmva
sofie_parsers
inc
TMVA
RModelParser_Keras.h
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1