Cannot convert a symbolic Tensor (bidirectional/forward_lstm/strided_slice:0 )报错解决办法,
如果你为如下版本
Tensorflow 2.5 update:
tensorflow and tensorflow-gpu 2.5 packages still includes numpy-1.19.5 as a dependency.
The error referenced in this post will be reproduced if tensorflow 2.5 installation is mixed with numpy>1.19.5
tensorflow-2.5, numpy-1.19.5 are compatible with python-3.
请
1、conda search numpy
2、conda install numpy=1.19.2
3、再次查看你的numpy的版本,发现为 numpy = 1.19.5
4、这里大神给解释下,自动安装了1.19.5版本。
以上为解决办法。
参考博客:
keras、tensorflow与numpy版本对应问题_Joyce_Ff的博客-CSDN博客_tensorflow和numpy对应版本