جریان تنسور:: عملیات:: رمزگشایی فشرده
#include <parsing_ops.h>
رشته ها را از حالت فشرده خارج کنید.
خلاصه
این عملیات هر عنصر از bytes
ورودی Tensor
را از حالت فشرده خارج می کند، که فرض می شود با استفاده از compression_type
داده شده فشرده شده است.
output
یک Tensor
رشته ای به شکل bytes
است که هر عنصر حاوی داده های فشرده شده از عنصر مربوطه در bytes
است.
استدلال ها:
- scope: یک شی Scope
- بایت: تانسور رشته ای که فشرده شده است.
ویژگی های اختیاری (به Attrs
مراجعه کنید):
- compression_type: یک اسکالر حاوی (i) رشته خالی (بدون فشرده سازی)، (ii) "ZLIB"، یا (iii) "GZIP".
برمی گرداند:
-
Output
: یک تانسور با شکلی مشابه bytes
ورودی، از بایت ها فشرده نشده است.
صفات عمومی
عملیات
Operation operation
خروجی
::tensorflow::Output output
توابع عمومی
رمزگشایی فشرده
DecodeCompressed(
const ::tensorflow::Scope & scope,
::tensorflow::Input bytes
)
رمزگشایی فشرده
DecodeCompressed(
const ::tensorflow::Scope & scope,
::tensorflow::Input bytes,
const DecodeCompressed::Attrs & attrs
)
گره
::tensorflow::Node * node() const
operator::tensorflow::Input() const
عملگر::tensorflow::خروجی
operator::tensorflow::Output() const
توابع استاتیک عمومی
نوع فشرده سازی
Attrs CompressionType(
StringPiece x
)
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# tensorflow::ops::DecodeCompressed Class Reference\n\ntensorflow::ops::DecodeCompressed\n=================================\n\n`#include \u003cparsing_ops.h\u003e`\n\nDecompress strings.\n\nSummary\n-------\n\nThis op decompresses each element of the `bytes` input [Tensor](/versions/r2.0/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor), which is assumed to be compressed using the given `compression_type`.\n\nThe `output` is a string [Tensor](/versions/r2.0/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) of the same shape as `bytes`, each element containing the decompressed data from the corresponding element in `bytes`.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- bytes: A [Tensor](/versions/r2.0/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) of string which is compressed.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/decode-compressed/attrs#structtensorflow_1_1ops_1_1_decode_compressed_1_1_attrs)):\n\n- compression_type: A scalar containing either (i) the empty string (no compression), (ii) \"ZLIB\", or (iii) \"GZIP\".\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.0/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A [Tensor](/versions/r2.0/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) with the same shape as input `bytes`, uncompressed from bytes.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [DecodeCompressed](#classtensorflow_1_1ops_1_1_decode_compressed_1ab8554357582adeda4632efa64b36aa6c)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` bytes)` ||\n| [DecodeCompressed](#classtensorflow_1_1ops_1_1_decode_compressed_1addfbc931c39601dfa456a863b56d6122)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` bytes, const `[DecodeCompressed::Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/decode-compressed/attrs#structtensorflow_1_1ops_1_1_decode_compressed_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_decode_compressed_1a49d742aa9a8c17d55967615a90021a8a) | [Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_decode_compressed_1ab6e1dc1de724893df3f343dc2478ae44) | `::`[tensorflow::Output](/versions/r2.0/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_decode_compressed_1ae93480b60d3827520c7310efcafeb089)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_decode_compressed_1ad10af605db615b0d1f8a6e48722a69e9)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_decode_compressed_1acfae46ee5362b2a4cf2619c372a971f0)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|----------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| [CompressionType](#classtensorflow_1_1ops_1_1_decode_compressed_1a09ef6d2bac5f47fc0bd7ed850345ab83)`(StringPiece x)` | [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/decode-compressed/attrs#structtensorflow_1_1ops_1_1_decode_compressed_1_1_attrs) |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::DecodeCompressed::Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/decode-compressed/attrs) | Optional attribute setters for [DecodeCompressed](/versions/r2.0/api_docs/cc/class/tensorflow/ops/decode-compressed#classtensorflow_1_1ops_1_1_decode_compressed). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### DecodeCompressed\n\n```gdscript\n DecodeCompressed(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input bytes\n)\n``` \n\n### DecodeCompressed\n\n```gdscript\n DecodeCompressed(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input bytes,\n const DecodeCompressed::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### CompressionType\n\n```text\nAttrs CompressionType(\n StringPiece x\n)\n```"]]