@Operator(group="summary") public final class ImageSummary extends PrimitiveOp implements Operand<String>
The summary has up to `max_images` summary values containing images. The images are built from `tensor` which must be 4-D with shape `[batch_size, height, width, channels]` and where `channels` can be:
Modifier and Type | Class and Description |
---|---|
static class |
ImageSummary.Options
Optional attributes for
ImageSummary |
operation
Modifier and Type | Method and Description |
---|---|
Output<String> |
asOutput()
Returns the symbolic handle of a tensor.
|
static ImageSummary.Options |
badColor(Tensor<?> badColor) |
static <T extends Number> |
create(Scope scope,
Operand<String> tag,
Operand<T> tensor,
ImageSummary.Options... options)
Factory method to create a class wrapping a new ImageSummary operation.
|
static ImageSummary.Options |
maxImages(Long maxImages) |
Output<String> |
summary()
Scalar.
|
equals, hashCode, op, toString
public static <T extends Number> ImageSummary create(Scope scope, Operand<String> tag, Operand<T> tensor, ImageSummary.Options... options)
scope
- current scopetag
- Scalar. Used to build the `tag` attribute of the summary values.tensor
- 4-D of shape `[batch_size, height, width, channels]` where
`channels` is 1, 3, or 4.options
- carries optional attributes valuespublic static ImageSummary.Options maxImages(Long maxImages)
maxImages
- Max number of batch elements to generate images for.public static ImageSummary.Options badColor(Tensor<?> badColor)
badColor
- Color to use for pixels with non-finite values.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.