当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


Python tf.io.TFRecordOptions.get_compression_type_string用法及代码示例


用法

@classmethod
get_compression_type_string(
    options
)

参数

  • options TFRecordOption , TFRecordCompressionType 或字符串。

返回

  • 压缩类型为字符串(例如 'ZLIB' , 'GZIP''' )。

抛出

  • ValueError 如果compression_type 无效。

将各种选项类型转换为统一的字符串。

相关用法


注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.io.TFRecordOptions.get_compression_type_string。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。