# Which version of tensorflow and Keras are OK with TMVA?

**URL:** <https://root-forum.cern.ch/t/which-version-of-tensorflow-and-keras-are-ok-with-tmva/37037>\
**Category:** TMVA\
**Created:** [December 3, 2019, 12:49pm UTC](https://root-forum.cern.ch/t/which-version-of-tensorflow-and-keras-are-ok-with-tmva/37037 "2019-12-03T12:49:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cxwx](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/cxwx/32/22075_2.png) [@cxwx](https://root-forum.cern.ch/u/cxwx)\
**Post date:** [December 3, 2019, 12:49pm UTC](https://root-forum.cern.ch/t/which-version-of-tensorflow-and-keras-are-ok-with-tmva/37037/1 "2019-12-03T12:49:33Z")

</div>

tf 2.0 conflict with TMVA  
AttributeError: module ‘tensorflow’ has no attribute ‘ConfigProto’

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [December 4, 2019, 9:13am UTC](https://root-forum.cern.ch/t/which-version-of-tensorflow-and-keras-are-ok-with-tmva/37037/2 "2019-12-04T09:13:12Z")

</div>

Hi,

At the moment Tensorflow versions 1.15 and older should be fine with TMVA. Thank you for reporting the problem with TensorFlow 2.0, we will try to fix this in the next days

Lorenzo

---

<div class="post-metadata">

**Author:** ![karolos](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/karolos/32/12826_2.png) [@karolos](https://root-forum.cern.ch/u/karolos)\
**Post date:** [January 29, 2020, 12:15pm UTC](https://root-forum.cern.ch/t/which-version-of-tensorflow-and-keras-are-ok-with-tmva/37037/3 "2020-01-29T12:15:30Z")

</div>

Hello Lorenzo,

Is there any version of TMVA working with TF 2.0 ?  
Or pherhaps there a branch that one can check out ?

Thanks a lot!  
Karolos

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [January 29, 2020, 4:55pm UTC](https://root-forum.cern.ch/t/which-version-of-tensorflow-and-keras-are-ok-with-tmva/37037/4 "2020-01-29T16:55:15Z")

</div>

Hi,

Not yet. I will try to port Keras in PyMVA to work with TF 2.0 in the next days

Lorenzo

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [February 12, 2020, 5:22pm UTC](https://root-forum.cern.ch/t/which-version-of-tensorflow-and-keras-are-ok-with-tmva/37037/5 "2020-02-12T17:22:07Z")

</div>

Hi,

I have open a PR fixing in PyKeras for TF 2.0

> <https://github.com/root-project/root/pull/4977>
