@Operator(group="io") public final class DecodeCompressed extends PrimitiveOp implements Operand<String>
This op decompresses each element of the `bytes` input `Tensor`, which is assumed to be compressed using the given `compression_type`.
The `output` is a string `Tensor` of the same shape as `bytes`, each element containing the decompressed data from the corresponding element in `bytes`.
Modifier and Type | Class and Description |
---|---|
static class |
DecodeCompressed.Options
Optional attributes for
DecodeCompressed |
operation
Modifier and Type | Method and Description |
---|---|
Output<String> |
asOutput()
Returns the symbolic handle of a tensor.
|
static DecodeCompressed.Options |
compressionType(String compressionType) |
static DecodeCompressed |
create(Scope scope,
Operand<String> bytes,
DecodeCompressed.Options... options)
Factory method to create a class wrapping a new DecodeCompressed operation.
|
Output<String> |
output()
A Tensor with the same shape as input `bytes`, uncompressed
from bytes.
|
equals, hashCode, op, toString
public static DecodeCompressed create(Scope scope, Operand<String> bytes, DecodeCompressed.Options... options)
scope
- current scopebytes
- A Tensor of string which is compressed.options
- carries optional attributes valuespublic static DecodeCompressed.Options compressionType(String compressionType)
compressionType
- A scalar containing either (i) the empty string (no
compression), (ii) "ZLIB", or (iii) "GZIP".public Output<String> output()
public Output<String> asOutput()
Operand
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput
in interface Operand<String>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.