Skip to content

Commit

Permalink
[pymva] Fix again retrieval of tf/keras version
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoneta committed Aug 24, 2023
1 parent d611bfd commit 7c5b771
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tmva/pymva/src/RModelParser_Keras.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7c5b771

Please sign in to comment.