tensorflow::ops::Conv2D::Attrs

#include <nn_ops.h>

Optional attribute setters for Conv2D.

Summary

Public attributes

data_format_ = "NHWC"
StringPiece
use_cudnn_on_gpu_ = true
bool

Public functions

DataFormat(StringPiece x)
Specify the data format of the input and output data.
UseCudnnOnGpu(bool x)
Defaults to true.

Public attributes

data_format_

StringPiece tensorflow::ops::Conv2D::Attrs::data_format_ = "NHWC"

use_cudnn_on_gpu_

bool tensorflow::ops::Conv2D::Attrs::use_cudnn_on_gpu_ = true

Public functions

DataFormat

Attrs tensorflow::ops::Conv2D::Attrs::DataFormat(
  StringPiece x
)

Specify the data format of the input and output data.

With the default format "NHWC", the data is stored in the order of: [batch, height, width, channels]. Alternatively, the format could be "NCHW", the data storage order of: [batch, channels, height, width].

Defaults to "NHWC"

UseCudnnOnGpu

Attrs tensorflow::ops::Conv2D::Attrs::UseCudnnOnGpu(
  bool x
)

Defaults to true.