tutorial 6 notebook does not run for me

135 views
Skip to first unread message

David Braune

unread,
May 31, 2021, 1:50:44 PM5/31/21
to Machine Learning for Physicists

I get an error at cell 9 in line "Net.add(LSTM(20,input_shape=(None,1),":
NotImplementedError: Cannot convert a symbolic Tensor (lstm/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported
I have tensorflow-gpu 2.4.1 and numpy 1.19.5
Is this too old or too new and does anyone have any ideas how to fix this?

Timon Höß

unread,
May 31, 2021, 2:00:13 PM5/31/21
to Machine Learning for Physicists

David Braune

unread,
May 31, 2021, 2:31:37 PM5/31/21
to Machine Learning for Physicists
Thank you! That fixed it!
Reply all
Reply to author
Forward
0 new messages