codecamp

TensorFlow函数教程:tf.io.decode_compressed

tf.io.decode_compressed函数

别名:

  • tf.decode_compressed
  • tf.io.decode_compressed
tf.io.decode_compressed(
    bytes,
    compression_type='',
    name=None
)

解压缩字符串。

该op解压缩bytes输入Tensor的每个元素,假设使用给定的compression_type进行压缩。

该output是一个与bytes形状相同的string类型的Tensor,每个元素包含来自bytes的相应元素的解压缩数据。

参数:

  • bytes:一个string类型的Tensor。压缩的字符串张量。
  • compression_type:可选的string。默认为" "。标量包含(i)空字符串(无压缩),(ii)“ZLIB”或(iii)“GZIP”。
  • name:操作的名称(可选)。

返回:

一个string类型的Tensor。

TensorFlow函数教程:tf.io.decode_bmp
TensorFlow函数教程:tf.io.decode_csv
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

TensorFlow 函数介绍

TensorFlow 函数模块:tf

TensorFlow的image模块

TensorFlow使用之tf.io

TensorFlow使用之tf.keras

TensorFlow函数教程:tf.keras.applications

TensorFlow函数教程:tf.keras.backend

TensorFlow使用之tf.metrics

TensorFlow使用之tf.nn

TensorFlow使用之tf.python_io

TensorFlow 功能函数

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }