OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

NotImplementedError in tensorflow 2.4.1 & numpy 1.20.3 & Python 3.8.12 ubuntu conda

  • Thread starter Thread starter Bikram Maharjan
  • Start date Start date
B

Bikram Maharjan

Guest
Adding the input layer and the LSTM layer

Code:
model.add(LSTM(units = 4, activation = 'sigmoid', input_shape = (None, 1)))

Error:

Code:
NotImplementedError: Cannot convert a symbolic Tensor (lstm_1/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
<p>Adding the input layer and the LSTM layer</p>
<pre><code>model.add(LSTM(units = 4, activation = 'sigmoid', input_shape = (None, 1)))
</code></pre>
<p>Error:</p>
<pre><code>NotImplementedError: Cannot convert a symbolic Tensor (lstm_1/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
</code></pre>
 

Latest posts

Top