用法
@classmethod
get_compression_type_string(
options
)
参数
-
options
TFRecordOption
,TFRecordCompressionType
或字符串。
返回
-
压缩类型为字符串(例如
'ZLIB'
,'GZIP'
或''
)。
抛出
-
ValueError
如果compression_type 无效。
将各种选项类型转换为统一的字符串。
相关用法
- Python tf.io.TFRecordWriter用法及代码示例
- Python tf.io.gfile.GFile.close用法及代码示例
- Python tf.io.gfile.join用法及代码示例
- Python tf.io.parse_example用法及代码示例
- Python tf.io.gfile.exists用法及代码示例
- Python tf.io.serialize_tensor用法及代码示例
- Python tf.io.gfile.GFile用法及代码示例
- Python tf.io.SparseFeature用法及代码示例
- Python tf.io.gfile.copy用法及代码示例
- Python tf.io.gfile.glob用法及代码示例
- Python tf.io.decode_json_example用法及代码示例
- Python tf.io.decode_gif用法及代码示例
- Python tf.io.decode_raw用法及代码示例
- Python tf.io.RaggedFeature用法及代码示例
- Python tf.io.read_file用法及代码示例
- Python tf.io.deserialize_many_sparse用法及代码示例
- Python tf.io.write_graph用法及代码示例
- Python tf.io.decode_proto用法及代码示例
- Python tf.image.random_brightness用法及代码示例
- Python tf.image.pad_to_bounding_box用法及代码示例
注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.io.TFRecordOptions.get_compression_type_string。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。