tensorflow::ops::DecodePng::Attrs

#include <image_ops.h>

Optional attribute setters for DecodePng.

Summary

Public attributes
channels_ = 0
int64
dtype_ = DT_UINT8
DataType
Public functions
Channels(int64 x)
TF_MUST_USE_RESULT Attrs
Number of color channels for the decoded image.
Dtype(DataType x)
TF_MUST_USE_RESULT Attrs
Defaults to DT_UINT8.

Public attributes

channels_

int64 tensorflow::ops::DecodePng::Attrs::channels_ = 0

dtype_

DataType tensorflow::ops::DecodePng::Attrs::dtype_ = DT_UINT8

Public functions

Channels

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodePng::Attrs::Channels(
  int64 x
)

Number of color channels for the decoded image.

Defaults to 0

Dtype

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodePng::Attrs::Dtype(
  DataType x
)

Defaults to DT_UINT8.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/decode-png/attrs