tf.raw_ops.DecodeRaw
Stay organized with collections
Save and categorize content based on your preferences.
Reinterpret the bytes of a string as a vector of numbers.
tf.raw_ops.DecodeRaw(
bytes, out_type, little_endian=True, name=None
)
Args |
bytes
|
A Tensor of type string .
All the elements must have the same length.
|
out_type
|
A tf.DType from: tf.half, tf.float32, tf.float64, tf.int32, tf.uint16, tf.uint8, tf.int16, tf.int8, tf.int64, tf.complex64, tf.complex128, tf.bool .
|
little_endian
|
An optional bool . Defaults to True .
Whether the input bytes are in little-endian order.
Ignored for out_type values that are stored in a single byte like
uint8 .
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor of type out_type .
|
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.
Last updated 2020-10-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-01 UTC."],[],[]]