@Operator(group="image") public final class EncodePng extends PrimitiveOp implements Operand<String>
`image` is a 3-D uint8 or uint16 Tensor of shape `[height, width, channels]` where `channels` is:
Modifier and Type | Class and Description |
---|---|
static class |
EncodePng.Options
Optional attributes for
EncodePng |
operation
Modifier and Type | Method and Description |
---|---|
Output<String> |
asOutput()
Returns the symbolic handle of a tensor.
|
static EncodePng.Options |
compression(Long compression) |
Output<String> |
contents()
0-D.
|
static <T extends Number> |
create(Scope scope,
Operand<T> image,
EncodePng.Options... options)
Factory method to create a class wrapping a new EncodePng operation.
|
equals, hashCode, op, toString
public static <T extends Number> EncodePng create(Scope scope, Operand<T> image, EncodePng.Options... options)
scope
- current scopeimage
- 3-D with shape `[height, width, channels]`.options
- carries optional attributes valuespublic static EncodePng.Options compression(Long compression)
compression
- Compression level.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.