# "An error occured during training of the Keras deep learning network" when using KNIME

**URL:** <https://forum.knime.com/t/an-error-occured-during-training-of-the-keras-deep-learning-network-when-using-knime/38581>\
**Category:** KNIME Analytics Platform\
**Created:** [January 5, 2022, 10:19am UTC](https://forum.knime.com/t/an-error-occured-during-training-of-the-keras-deep-learning-network-when-using-knime/38581 "2022-01-05T10:19:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![MarcelW](https://forum-cdn.knime.com/user_avatar/forum.knime.com/marcelw/32/352_2.png) [@MarcelW](https://forum.knime.com/u/MarcelW)\
**Post date:** [January 5, 2022, 4:16pm UTC](https://forum.knime.com/t/an-error-occured-during-training-of-the-keras-deep-learning-network-when-using-knime/38581/4 "2022-01-05T16:16:49Z")

</div>

> [@akhtarameen](#):
>
> ‘TF2Network’ object has no attribute ‘train’

This sounds like you’re trying to train a TensorFlow **2** model with the _Keras Network Learner_ node, is that correct? Unfortunately, the _Keras Network Learner_ node (and the entire _KNIME Deep Learning - Keras Integration_, for that matter) only supports TensorFlow **1**. Currently, you’d need to resort to Python scripting via the [DL Python Network Learner – KNIME Community Hub](https://kni.me/n/4Q31zDe9xwlSt6ny) node if you wanted to train a TensorFlow 2 model.

Marcel

---

_[View the full topic](https://forum.knime.com/t/an-error-occured-during-training-of-the-keras-deep-learning-network-when-using-knime/38581)._
