public static class StridedSlice.Attrs extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Attrs()
Default native constructor.
|
Attrs(long size)
Native array allocator.
|
Attrs(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
begin_mask_() |
StridedSlice.Attrs |
begin_mask_(long setter) |
StridedSlice.Attrs |
BeginMask(long x)
a bitmask where a bit i being 1 means to ignore the begin
value and instead use the largest interval possible.
|
long |
ellipsis_mask_() |
StridedSlice.Attrs |
ellipsis_mask_(long setter) |
StridedSlice.Attrs |
EllipsisMask(long x)
a bitmask where bit
i being 1 means the i th
position is actually an ellipsis. |
long |
end_mask_() |
StridedSlice.Attrs |
end_mask_(long setter) |
StridedSlice.Attrs |
EndMask(long x)
analogous to
begin_mask
Defaults to 0 |
StridedSlice.Attrs |
getPointer(long i) |
long |
new_axis_mask_() |
StridedSlice.Attrs |
new_axis_mask_(long setter) |
StridedSlice.Attrs |
NewAxisMask(long x)
a bitmask where bit
i being 1 means the i th
specification creates a new shape 1 dimension. |
StridedSlice.Attrs |
position(long position) |
long |
shrink_axis_mask_() |
StridedSlice.Attrs |
shrink_axis_mask_(long setter) |
StridedSlice.Attrs |
ShrinkAxisMask(long x)
a bitmask where bit
i implies that the i th
specification should shrink the dimensionality. |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Attrs()
public Attrs(long size)
Pointer.position(long)
.public Attrs(Pointer p)
Pointer(Pointer)
.public StridedSlice.Attrs position(long position)
public StridedSlice.Attrs getPointer(long i)
getPointer
in class Pointer
@ByVal public StridedSlice.Attrs BeginMask(@Cast(value="tensorflow::int64") long x)
[0, n-1)
if stride[i] > 0
or
[-1, n-1]
if stride[i] < 0
Defaults to 0@ByVal public StridedSlice.Attrs EndMask(@Cast(value="tensorflow::int64") long x)
begin_mask
Defaults to 0@ByVal public StridedSlice.Attrs EllipsisMask(@Cast(value="tensorflow::int64") long x)
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]
.
Defaults to 0@ByVal public StridedSlice.Attrs NewAxisMask(@Cast(value="tensorflow::int64") long x)
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.
Defaults to 0@ByVal public StridedSlice.Attrs ShrinkAxisMask(@Cast(value="tensorflow::int64") long x)
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.
Defaults to 0public StridedSlice.Attrs begin_mask_(long setter)
public StridedSlice.Attrs end_mask_(long setter)
public StridedSlice.Attrs ellipsis_mask_(long setter)
public StridedSlice.Attrs new_axis_mask_(long setter)
public StridedSlice.Attrs shrink_axis_mask_(long setter)
Copyright © 2022. All rights reserved.