【问题标题】:Receiving Error on TFRecordCompressionType.GZIP in Tensorflow 2.0Tensorflow 2.0 中 TFRecordCompressionType.GZIP 接收错误
【发布时间】:2019-11-23 22:22:21
【问题描述】:

当我运行下面的代码时,我得到一个错误。我已经安装了 Tensorflow 2.0

test = tf.io.TFRecordOptions(tf.io.TFRecordCompressionType.GZIP)

收到错误

AttributeError: module 'tensorflow_core._api.v2.io' has no attribute 'TFRecordCompressionType'

【问题讨论】:

    标签: tensorflow tensorflow2.0


    【解决方案1】:

    test = tf.io.TFRecordOptions(compression_type = 'GZIP')

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-06-14
      • 2020-01-13
      • 2020-07-31
      • 2020-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多