深度学习_相关报错解决方案

1、AttributeError: module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'

参考博客:

AttributeError: module ‘tensorflow.python.framework.ops‘ has no attribute ‘_TensorLike‘_module 'tensorflow.python.framework.ops' has no at-CSDN博客

问题:AttributeError: module ‘tensorflow.python.framework.ops‘ has no attribute ‘_TensorLike‘的解决方法_attributeerror: module 'tensorflow.python.framewor-CSDN博客

总结:装2.4.3版本的keras就可以

pip install keras==2.4.3

2、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

参考博客:

完美解决 NotImplementedError: Cannot convert a symbolic Tensor (sequential/gru/strided_slice:0) to a-CSDN博客 总结:安装numpy

pip install  numpy==1.19.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

3、AttributeError: module 'tensorflow.compat.v2' has no attribute '__internal__'

参考博客:

AttributeError: module ‘tensorflow.compat.v2‘ has no attribute ‘__internal__‘_attributeerror: module 'tensorflow' has no attribu-CSDN博客

总结:

tensorflow 2.3.0,keras 2.3.1

pip install tensorflow==2.3.0
pip install keras==2.3.1

相关推荐

  1. 深度学习_相关解决方案

    2024-03-25 00:12:04       19 阅读
  2. opencv一些解决方案

    2024-03-25 00:12:04       32 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-03-25 00:12:04       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-25 00:12:04       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-25 00:12:04       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-25 00:12:04       20 阅读

热门阅读

  1. a为何值是下面代码输出“成立“

    2024-03-25 00:12:04       17 阅读
  2. 01-Pandas的方法介绍

    2024-03-25 00:12:04       16 阅读
  3. 定义了服务器的端口号和Servlet的上下文路径

    2024-03-25 00:12:04       20 阅读
  4. OpenCV支持哪些类型的文件格式读写?

    2024-03-25 00:12:04       18 阅读