【TensorFlow】Python调用TensorFlow库报错FutureWarning 解决

[h2title]调用时报错如下[/h2title]

FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

[h2title]解决办法[/h2title]

直接点击报错时提示的代码位置,将每个位置的代码修改为

注意查看自己的报错信息,要修改所有报错的位置,博主一共有两个文件12行代码有报错,可能由于不同的系统环境,报错数量会有区别。

修改完所有报错位置后,再运行项目,报错信息就没有了

点赞
  1. escort bayan说道:
    Google Chrome Windows 10
    Hello. In my opinion you are mistaken. I can prove it. Mirelle Raynard Hyams
    1. zezen zezen说道:
      Google Chrome Windows 10
      In different environments, there may be different solutions.

发表回复

电子邮件地址不会被公开。必填项已用 * 标注