【问题标题】:Script for Automatic Upgrade Codes in Jupyter Nootbooks to Tensorflow 2将 Jupyter Nootbooks 中的代码自动升级到 Tensorflow 2 的脚本
【发布时间】:2019-11-24 18:32:05
【问题描述】:

是否有像the .py python files 那样将 Jupyter Nootbook .ipynb 文件(或 Colab)自动升级到 Tensorflow 2 的脚本?如果没有,有什么解决方法吗?

【问题讨论】:

    标签: tensorflow upgrade tensorflow2.0


    【解决方案1】:

    是的,检查一下:

    https://www.tensorflow.org/guide/upgrade

    1- 你下载 python 文件

    2-用法:

    tf_upgrade_v2 [-h] [--infile INPUT_FILE] [--outfile OUTPUT_FILE]
                         [--intree INPUT_TREE] [--outtree OUTPUT_TREE]
                         [--copyotherfiles COPY_OTHER_FILES] [--inplace]
                         [--reportfile REPORT_FILENAME] [--mode {DEFAULT,SAFETY}]
                         [--print_all]
    

    【讨论】:

      猜你喜欢
      • 2020-10-28
      • 2020-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-22
      • 1970-01-01
      相关资源
      最近更新 更多