Warning: This API is deprecated and will be removed in a future
version of TensorFlow after
the replacement is stable.
StridedSlice.Options
Stay organized with collections
Save and categorize content based on your preferences.
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
Parameters
beginMask |
a bitmask where a bit i being 1 means to ignore the begin
value and instead use the largest interval possible. At runtime
begin[i] will be replaced with `[0, n-1)` if `stride[i] > 0` or
`[-1, n-1]` if `stride[i] < 0`
|
Parameters
ellipsisMask |
a bitmask where bit `i` being 1 means the `i`th
position is actually an ellipsis. One bit at most can be 1.
If `ellipsis_mask == 0`, then an implicit ellipsis mask of `1 << (m+1)`
is provided. This means that `foo[3:5] == foo[3:5, ...]`. An ellipsis
implicitly creates as many range specifications as necessary to fully
specify the sliced range for every dimension. For example for a 4-dimensional
tensor `foo` the slice `foo[2, ..., 5:8]` implies `foo[2, :, :, 5:8]`.
|
Parameters
endMask |
analogous to `begin_mask`
|
Parameters
newAxisMask |
a bitmask where bit `i` being 1 means the `i`th
specification creates a new shape 1 dimension. For example
`foo[:4, tf.newaxis, :2]` would produce a shape `(4, 1, 2)` tensor.
|
public
StridedSlice.Options
shrinkAxisMask
(Long shrinkAxisMask)
Parameters
shrinkAxisMask |
a bitmask where bit `i` implies that the `i`th
specification should shrink the dimensionality. begin and end
must imply a slice of size 1 in the dimension. For example in
python one might do `foo[:, 3, :]` which would result in
`shrink_axis_mask` being 2.
|
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 2022-02-12 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 2022-02-12 UTC."],[],[],null,["# StridedSlice.Options\n\npublic static class **StridedSlice.Options** \nOptional attributes for [StridedSlice](/api_docs/java/org/tensorflow/op/core/StridedSlice) \n\n### Public Methods\n\n|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| [StridedSlice.Options](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options) | [beginMask](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options#beginMask(java.lang.Long))(Long beginMask) |\n| [StridedSlice.Options](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options) | [ellipsisMask](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options#ellipsisMask(java.lang.Long))(Long ellipsisMask) |\n| [StridedSlice.Options](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options) | [endMask](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options#endMask(java.lang.Long))(Long endMask) |\n| [StridedSlice.Options](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options) | [newAxisMask](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options#newAxisMask(java.lang.Long))(Long newAxisMask) |\n| [StridedSlice.Options](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options) | [shrinkAxisMask](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options#shrinkAxisMask(java.lang.Long))(Long shrinkAxisMask) |\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 [StridedSlice.Options](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options)\n**beginMask**\n(Long beginMask)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| beginMask | a bitmask where a bit i being 1 means to ignore the begin value and instead use the largest interval possible. At runtime begin\\[i\\] will be replaced with \\`\\[0, n-1)\\` if \\`stride\\[i\\] \\\u003e 0\\` or \\`\\[-1, n-1\\]\\` if \\`stride\\[i\\] \\\u003c 0\\` |\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n#### public [StridedSlice.Options](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options)\n**ellipsisMask**\n(Long ellipsisMask)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| ellipsisMask | a bitmask where bit \\`i\\` being 1 means the \\`i\\`th position is actually an ellipsis. One bit at most can be 1. If \\`ellipsis_mask == 0\\`, then an implicit ellipsis mask of \\`1 \\\u003c\\\u003c (m+1)\\` is provided. This means that \\`foo\\[3:5\\] == foo\\[3:5, ...\\]\\`. An ellipsis implicitly creates as many range specifications as necessary to fully specify the sliced range for every dimension. For example for a 4-dimensional tensor \\`foo\\` the slice \\`foo\\[2, ..., 5:8\\]\\` implies \\`foo\\[2, :, :, 5:8\\]\\`. |\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n#### public [StridedSlice.Options](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options)\n**endMask**\n(Long endMask)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| endMask | analogous to \\`begin_mask\\` |\n|---------|-----------------------------|\n\n#### public [StridedSlice.Options](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options)\n**newAxisMask**\n(Long newAxisMask)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| newAxisMask | a bitmask where bit \\`i\\` being 1 means the \\`i\\`th specification creates a new shape 1 dimension. For example \\`foo\\[:4, tf.newaxis, :2\\]\\` would produce a shape \\`(4, 1, 2)\\` tensor. |\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n#### public [StridedSlice.Options](/api_docs/java/org/tensorflow/op/core/StridedSlice.Options)\n**shrinkAxisMask**\n(Long shrinkAxisMask)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| shrinkAxisMask | a bitmask where bit \\`i\\` implies that the \\`i\\`th specification should shrink the dimensionality. begin and end must imply a slice of size 1 in the dimension. For example in python one might do \\`foo\\[:, 3, :\\]\\` which would result in \\`shrink_axis_mask\\` being 2. |\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|"]]