Advertisement

自动升级到TensorFlow 2代码 tf_upgrade_v2.py

阅读量:

在升级至版本2.0后,默认情况下会提供自动化升级脚本及其使用方法介绍。更多详细信息请访问官网。

TensorFlow官网:https://www.tensorflow.org/guide/upgrade

代码链接:

此脚本的目标是实现对旧TensorFlow模型的兼容性支持,并将其重构为最新版本架构。
具体而言:

  • 此脚本能够识别旧版本模型中的关键组件
  • 并通过相应的重构方法实现与其最新版本的有效对接
  • 最终生成符合当前框架要求的新版模型文件
复制代码
 # Copyright 2018 The TensorFlow Authors. All Rights Reserved.

    
 #
    
 # Licensed under the Apache License, Version 2.0 (the "License");
    
 # you may not use this file except in compliance with the License.
    
 # You may obtain a copy of the License at
    
 #
    
 #     http://www.apache.org/licenses/LICENSE-2.0
    
 #
    
 # Unless required by 

全部评论 (0)

还没有任何评论哟~