impl.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:transform 作者: tensorflow 项目源码 文件源码
def _assert_tensorflow_version():
  # Fail with a clear error in case we are not using a compatible TF version.
  major, minor, _ = tf.__version__.split('.')
  if int(major) != 1 or int(minor) < 4:
    raise RuntimeError(
        'Tensorflow version >= 1.4, < 2 is required. Found (%s). Please '
        'install the latest 1.x version from '
        'https://github.com/tensorflow/tensorflow. ' % tf.__version__)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号