Class Conv2d.Options
java.lang.Object
org.tensorflow.op.nn.Conv2d.Options
-
Method Summary
Modifier and TypeMethodDescriptiondataFormat(String dataFormat) Sets the dataFormat option.Sets the dilations option.Sets the dilations option.explicitPaddings(Long... explicitPaddings) Sets the explicitPaddings option.explicitPaddings(List<Long> explicitPaddings) Sets the explicitPaddings option.useCudnnOnGpu(Boolean useCudnnOnGpu) Sets the useCudnnOnGpu option.
-
Method Details
-
useCudnnOnGpu
Sets the useCudnnOnGpu option.- Parameters:
useCudnnOnGpu- the useCudnnOnGpu option- Returns:
- this Options instance.
-
explicitPaddings
Sets the explicitPaddings option.- Parameters:
explicitPaddings- Ifpaddingis"EXPLICIT", the list of explicit padding amounts. For the ith dimension, the amount of padding inserted before and after the dimension isexplicit_paddings[2 * i]andexplicit_paddings[2 * i + 1], respectively. Ifpaddingis not"EXPLICIT",explicit_paddingsmust be empty.- Returns:
- this Options instance.
-
explicitPaddings
Sets the explicitPaddings option.- Parameters:
explicitPaddings- Ifpaddingis"EXPLICIT", the list of explicit padding amounts. For the ith dimension, the amount of padding inserted before and after the dimension isexplicit_paddings[2 * i]andexplicit_paddings[2 * i + 1], respectively. Ifpaddingis not"EXPLICIT",explicit_paddingsmust be empty.- Returns:
- this Options instance.
-
dataFormat
Sets the dataFormat option.- Parameters:
dataFormat- 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].- Returns:
- this Options instance.
-
dilations
Sets the dilations option.- Parameters:
dilations- 1-D tensor of length 4. The dilation factor for each dimension ofinput. If set to k > 1, there will be k-1 skipped cells between each filter element on that dimension. The dimension order is determined by the value ofdata_format, see above for details. Dilations in the batch and depth dimensions must be 1.- Returns:
- this Options instance.
-
dilations
Sets the dilations option.- Parameters:
dilations- 1-D tensor of length 4. The dilation factor for each dimension ofinput. If set to k > 1, there will be k-1 skipped cells between each filter element on that dimension. The dimension order is determined by the value ofdata_format, see above for details. Dilations in the batch and depth dimensions must be 1.- Returns:
- this Options instance.
-