Warning: This API is deprecated and will be removed in a future
version of TensorFlow after
the replacement is stable.
Conv.Options
Stay organized with collections
Save and categorize content based on your preferences.
Optional attributes for Conv
Inherited Methods
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Methods
public
Conv.Options
batchDims
(Long batchDims)
Parameters
batchDims |
A positive integer specifying the number of batch dimensions for the input
tensor. Should be less than the rank of the input tensor.
|
Parameters
dataFormat |
Used to set the data format. By default `CHANNELS_FIRST`, uses
`NHWC (2D) / NDHWC (3D)` or if `CHANNELS_LAST`, uses `NCHW (2D) / NCDHW (3D)`.
|
public
Conv.Options
dilations
(List<Long> dilations)
Parameters
dilations |
1-D tensor of length `N+2`. The dilation factor for each dimension of
`input`. 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 of `channels_last_format`, see above for details. Dilations in the batch
and depth dimensions must be 1.
|
public
Conv.Options
explicitPaddings
(List<Long> explicitPaddings)
Parameters
explicitPaddings |
If `padding` is `"EXPLICIT"`, the list of explicit padding amounts. For the ith
dimension, the amount of padding inserted before and after the dimension is
`explicit_paddings[2 * i]` and `explicit_paddings[2 * i + 1]`, respectively. If
`padding` is not `"EXPLICIT"`, `explicit_paddings` must be empty.
|
public
Conv.Options
groups
(Long groups)
Parameters
groups |
A positive integer specifying the number of groups in which the input is split
along the channel axis. Each group is convolved separately with
`filters / groups` filters. The output is the concatenation of all the groups
results along the channel axis. Input channels and filters must both be
divisible by groups.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[],[],null,["# Conv.Options\n\npublic static class **Conv.Options** \nOptional attributes for [Conv](/api_docs/java/org/tensorflow/op/core/Conv) \n\n### Public Methods\n\n|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Conv.Options](/api_docs/java/org/tensorflow/op/core/Conv.Options) | [batchDims](/api_docs/java/org/tensorflow/op/core/Conv.Options#batchDims(java.lang.Long))(Long batchDims) |\n| [Conv.Options](/api_docs/java/org/tensorflow/op/core/Conv.Options) | [dataFormat](/api_docs/java/org/tensorflow/op/core/Conv.Options#dataFormat(java.lang.String))(String dataFormat) |\n| [Conv.Options](/api_docs/java/org/tensorflow/op/core/Conv.Options) | [dilations](/api_docs/java/org/tensorflow/op/core/Conv.Options#dilations(java.util.List\u003cjava.lang.Long\u003e))(List\\\u003cLong\\\u003e dilations) |\n| [Conv.Options](/api_docs/java/org/tensorflow/op/core/Conv.Options) | [explicitPaddings](/api_docs/java/org/tensorflow/op/core/Conv.Options#explicitPaddings(java.util.List\u003cjava.lang.Long\u003e))(List\\\u003cLong\\\u003e explicitPaddings) |\n| [Conv.Options](/api_docs/java/org/tensorflow/op/core/Conv.Options) | [groups](/api_docs/java/org/tensorflow/op/core/Conv.Options#groups(java.lang.Long))(Long groups) |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public [Conv.Options](/api_docs/java/org/tensorflow/op/core/Conv.Options)\n**batchDims**\n(Long batchDims)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| batchDims | A positive integer specifying the number of batch dimensions for the input tensor. Should be less than the rank of the input tensor. |\n|-----------|--------------------------------------------------------------------------------------------------------------------------------------|\n\n#### public [Conv.Options](/api_docs/java/org/tensorflow/op/core/Conv.Options)\n**dataFormat**\n(String dataFormat)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| dataFormat | Used to set the data format. By default \\`CHANNELS_FIRST\\`, uses \\`NHWC (2D) / NDHWC (3D)\\` or if \\`CHANNELS_LAST\\`, uses \\`NCHW (2D) / NCDHW (3D)\\`. |\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n#### public [Conv.Options](/api_docs/java/org/tensorflow/op/core/Conv.Options)\n**dilations**\n(List\\\u003cLong\\\u003e dilations)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| dilations | 1-D tensor of length \\`N+2\\`. The dilation factor for each dimension of \\`input\\`. If set to \\`k \\\u003e 1\\`, there will be \\`k-1\\` skipped cells between each filter element on that dimension. The dimension order is determined by the value of \\`channels_last_format\\`, see above for details. Dilations in the batch and depth dimensions must be 1. |\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n#### public [Conv.Options](/api_docs/java/org/tensorflow/op/core/Conv.Options)\n**explicitPaddings**\n(List\\\u003cLong\\\u003e explicitPaddings)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| explicitPaddings | If \\`padding\\` is \\`\"EXPLICIT\"\\`, the list of explicit padding amounts. For the ith dimension, the amount of padding inserted before and after the dimension is \\`explicit_paddings\\[2 \\* i\\]\\` and \\`explicit_paddings\\[2 \\* i + 1\\]\\`, respectively. If \\`padding\\` is not \\`\"EXPLICIT\"\\`, \\`explicit_paddings\\` must be empty. |\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n#### public [Conv.Options](/api_docs/java/org/tensorflow/op/core/Conv.Options)\n**groups**\n(Long groups)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| groups | A positive integer specifying the number of groups in which the input is split along the channel axis. Each group is convolved separately with \\`filters / groups\\` filters. The output is the concatenation of all the groups results along the channel axis. Input channels and filters must both be divisible by groups. |\n|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|"]]