@Operator(group="image") public final class DecodeBmp extends PrimitiveOp implements Operand<UInt8>
The attr `channels` indicates the desired number of color channels for the decoded image.
Accepted values are:
Modifier and Type | Class and Description |
---|---|
static class |
DecodeBmp.Options
Optional attributes for
DecodeBmp |
operation
Modifier and Type | Method and Description |
---|---|
Output<UInt8> |
asOutput()
Returns the symbolic handle of a tensor.
|
static DecodeBmp.Options |
channels(Long channels) |
static DecodeBmp |
create(Scope scope,
Operand<String> contents,
DecodeBmp.Options... options)
Factory method to create a class wrapping a new DecodeBmp operation.
|
Output<UInt8> |
image()
3-D with shape `[height, width, channels]`.
|
equals, hashCode, op, toString
public static DecodeBmp create(Scope scope, Operand<String> contents, DecodeBmp.Options... options)
scope
- current scopecontents
- 0-D. The BMP-encoded image.options
- carries optional attributes valuespublic static DecodeBmp.Options channels(Long channels)
channels
- public Output<UInt8> 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<UInt8>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.