Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::DecodePaddedRaw
#include <parsing_ops.h>
Reinterpret the bytes of a string as a vector of numbers.
Summary
Args:
- scope: A Scope object
- input_bytes: Tensor of string to be decoded.
- fixed_length: Length in bytes for each element of the decoded output. Must be a multiple of the size of the output type.
Optional attributes (see Attrs
):
- little_endian: Whether the input
input_bytes
is in little-endian order. Ignored for out_type
values that are stored in a single byte, like uint8
Returns:
Output
: A Tensor with one more dimension than the input bytes
. The added dimension will have size equal to the length of the elements of bytes
divided by the number of bytes to represent out_type
.
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
LittleEndian
Attrs LittleEndian(
bool x
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tensorflow::ops::DecodePaddedRaw Class Reference\n\ntensorflow::ops::DecodePaddedRaw\n================================\n\n`#include \u003cparsing_ops.h\u003e`\n\nReinterpret the bytes of a string as a vector of numbers.\n\nSummary\n-------\n\nArgs:\n\n- scope: A [Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input_bytes: [Tensor](/versions/r2.14/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) of string to be decoded.\n- fixed_length: Length in bytes for each element of the decoded output. Must be a multiple of the size of the output type.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/decode-padded-raw/attrs#structtensorflow_1_1ops_1_1_decode_padded_raw_1_1_attrs)):\n\n- little_endian: Whether the input `input_bytes` is in little-endian order. Ignored for `out_type` values that are stored in a single byte, like `uint8`\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A [Tensor](/versions/r2.14/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) with one more dimension than the input `bytes`. The added dimension will have size equal to the length of the elements of `bytes` divided by the number of bytes to represent `out_type`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [DecodePaddedRaw](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a94183df5bdaedc1b310e9ea130b6307e)`(const ::`[tensorflow::Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_bytes, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` fixed_length, DataType out_type)` ||\n| [DecodePaddedRaw](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a66932ca392b545de06ef001a96c15905)`(const ::`[tensorflow::Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_bytes, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` fixed_length, DataType out_type, const `[DecodePaddedRaw::Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/decode-padded-raw/attrs#structtensorflow_1_1ops_1_1_decode_padded_raw_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a29f4a01fa9cc61a7e4df40f8a22ca1bb) | [Operation](/versions/r2.14/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a9c2c7dbf7b377847e5a78d67e0cec014) | `::`[tensorflow::Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a12c5000831086d93709e38a378183832)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a6ec3864a3eefba01c1aa3675343e5fd5)`() const ` | |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a6bbda4013c115a1adf52cdfda9610dc7)`() const ` | |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| [LittleEndian](#classtensorflow_1_1ops_1_1_decode_padded_raw_1ab9637f01ff5433b8d35f31d306d7b91c)`(bool x)` | [Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/decode-padded-raw/attrs#structtensorflow_1_1ops_1_1_decode_padded_raw_1_1_attrs) |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::DecodePaddedRaw::Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/decode-padded-raw/attrs) | Optional attribute setters for [DecodePaddedRaw](/versions/r2.14/api_docs/cc/class/tensorflow/ops/decode-padded-raw#classtensorflow_1_1ops_1_1_decode_padded_raw). |\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### DecodePaddedRaw\n\n```gdscript\n DecodePaddedRaw(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input_bytes,\n ::tensorflow::Input fixed_length,\n DataType out_type\n)\n``` \n\n### DecodePaddedRaw\n\n```gdscript\n DecodePaddedRaw(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input_bytes,\n ::tensorflow::Input fixed_length,\n DataType out_type,\n const DecodePaddedRaw::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### LittleEndian\n\n```text\nAttrs LittleEndian(\n bool x\n)\n```"]]