@Operator 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 to wrap a new DecodeBmp operation to the graph.
|
Output<UInt8> |
image()
3-D with shape `[height, width, channels]`.
|
equals, hashCode, toStringpublic static DecodeBmp create(Scope scope, Operand<String> contents, DecodeBmp.Options... options)
scope - current graph scopecontents - 0-D. The BMP-encoded image.options - carries optional attributes valuespublic static DecodeBmp.Options channels(Long channels)
channels - public Output<UInt8> asOutput()
OperandInputs 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 © 2015–2019. All rights reserved.