I successfully installed the tensorflow environment within Knime and then tested the “KNIME Deep Learning - TensorFlow - Train a MLP” example and it worked fine, even adapted it to an own dataset.
(04_Analytics > 14_Deep_Learning > 03_Tensorflow > 02_Training_Tensorflow_MLP)
So far so good. This was about a week ago.
Now, it suddenly won’t run.
The DL Python Network Creator node throws this error:
AttributeError: module ‘tensorflow’ has no attribute ‘placeholder’
placeholder stems from x = tf.placeholder(tf.float32, shape=(None,num_inputs), name=‘input’)
I haven’t changed anything in my setup, no updates to conda / python nor Knime (extensions).
This is under Win10, Knime 4.2 with Python 3.6.10 for the TF2 python env.
Tested this in Linux, Knime 4.2 , with Python 3.8.3
I suspect it’s something “doh, stupid”, but what? Anyone have an idea/suggestion?
Thanks.