From 7c5b7714f7d9a989e293ae9d7bbb5fb8f626651f Mon Sep 17 00:00:00 2001 From: moneta Date: Thu, 24 Aug 2023 10:58:11 +0200 Subject: [PATCH] [pymva] Fix again retrieval of tf/keras version --- tmva/pymva/src/RModelParser_Keras.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/tmva/pymva/src/RModelParser_Keras.cxx b/tmva/pymva/src/RModelParser_Keras.cxx index 504208af87b8b..1938e29f1dd17 100644 --- a/tmva/pymva/src/RModelParser_Keras.cxx +++ b/tmva/pymva/src/RModelParser_Keras.cxx @@ -837,6 +837,7 @@ RModel Parse(std::string filename){ // For each layer: type,name,activation,dtype,input tensor's name, // output tensor's name, kernel's name, bias's name // None object is returned for if property doesn't belong to layer + PyRunString("import tensorflow",fGlobalNS,fLocalNS); PyRunString("import tensorflow.keras as keras",fGlobalNS,fLocalNS); PyRunString("from tensorflow.keras.models import load_model",fGlobalNS,fLocalNS); PyRunString("print('TF/Keras Version: '+ tensorflow.__version__)",fGlobalNS,fLocalNS);