zoukankan      html  css  js  c++  java
  • 【colab pytorch】FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy

    目前colab的tensorflow版本是1.15.0,运行时会提醒你要更新为2.x版本的,使用以下命令进行更新:

    !pip uninstall tensorflow

    !pip install tensorflow==2.0.0-alpha0

    再运行时就会报:

    FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy

    这是由于tensorflow版本和numpy版本不兼容导致:

    我tensorflow版本是2.0.0,numpy版本是1.17.4

    使用:

    !pip show numpy可以查看numpy的版本

    然后执行:

    !pip install numpy==1.14.0

  • 相关阅读:
    字典树
    Floyd算法
    迪杰斯特拉算法---单源点最短路径
    二叉树的遍历
    图的遍历
    二叉排序树
    拓扑排序
    开发中框架的发展
    IOC
    JS操作JSON总结
  • 原文地址:https://www.cnblogs.com/xiximayou/p/12470508.html
Copyright © 2011-2022 走看看