@Properties(inherit=dnnl.class) public class dnnl_memory_desc_t extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
dnnl_memory_desc_t()
Default native constructor.
|
dnnl_memory_desc_t(long size)
Native array allocator.
|
dnnl_memory_desc_t(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
data_type()
Data type of the tensor elements.
|
dnnl_memory_desc_t |
data_type(int setter) |
LongPointer |
dims()
Dimensions in the following order:
- CNN data tensors: mini-batch, channel, spatial
(
{N, C, [[D,] H,] W})
- CNN weight tensors: group (optional), output channel, input channel,
spatial ({[G,] O, I, [[D,] H,] W})
- RNN data tensors: time, mini-batch, channels ({T, N, C})
or layers, directions, states, mini-batch, channels ({L, D, S, N, C})
- RNN weight tensor: layers, directions, input channel, gates, output channels
({L, D, I, G, O}). |
dnnl_memory_extra_desc_t |
extra() |
dnnl_memory_desc_t |
extra(dnnl_memory_extra_desc_t setter) |
dnnl_blocking_desc_t |
format_desc_blocking()
Description of the data layout for memory formats that use
blocking.
|
dnnl_memory_desc_t |
format_desc_blocking(dnnl_blocking_desc_t setter) |
dnnl_rnn_packed_desc_t |
format_desc_rnn_packed_desc()
Tensor of packed weights for RNN.
|
dnnl_memory_desc_t |
format_desc_rnn_packed_desc(dnnl_rnn_packed_desc_t setter) |
dnnl_wino_desc_t |
format_desc_wino_desc()
Tensor of weights for integer 8bit winograd convolution.
|
dnnl_memory_desc_t |
format_desc_wino_desc(dnnl_wino_desc_t setter) |
int |
format_kind()
Memory format kind.
|
dnnl_memory_desc_t |
format_kind(int setter) |
dnnl_memory_desc_t |
getPointer(long i) |
int |
ndims()
Number of dimensions
|
dnnl_memory_desc_t |
ndims(int setter) |
long |
offset0()
Offset from memory origin to the current block, non-zero only in
a description of a memory sub-block.
|
dnnl_memory_desc_t |
offset0(long setter) |
LongPointer |
padded_dims()
Size of the data including padding in each dimension.
|
LongPointer |
padded_offsets()
Per-dimension offset from the padding to actual data, the top-level
tensor with offsets applied must lie within the padding area.
|
dnnl_memory_desc_t |
position(long position) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic dnnl_memory_desc_t()
public dnnl_memory_desc_t(long size)
Pointer.position(long).public dnnl_memory_desc_t(Pointer p)
Pointer.Pointer(Pointer).public dnnl_memory_desc_t position(long position)
public dnnl_memory_desc_t getPointer(long i)
getPointer in class Pointerpublic int ndims()
public dnnl_memory_desc_t ndims(int setter)
@MemberGetter @Cast(value="int64_t*") public LongPointer dims()
{N, C, [[D,] H,] W})
- CNN weight tensors: group (optional), output channel, input channel,
spatial ({[G,] O, I, [[D,] H,] W})
- RNN data tensors: time, mini-batch, channels ({T, N, C})
or layers, directions, states, mini-batch, channels ({L, D, S, N, C})
- RNN weight tensor: layers, directions, input channel, gates, output channels
({L, D, I, G, O}).
\note
The order of dimensions does not depend on the memory format, so
whether the data is laid out in #dnnl_nchw or #dnnl_nhwc
the dims for 4D CN data tensor would be {N, C, H, W}.public dnnl_memory_desc_t data_type(int setter)
@MemberGetter @Cast(value="int64_t*") public LongPointer padded_dims()
@MemberGetter @Cast(value="int64_t*") public LongPointer padded_offsets()
@Cast(value="dnnl_dim_t") public long offset0()
public dnnl_memory_desc_t offset0(long setter)
public dnnl_memory_desc_t format_kind(int setter)
@Name(value="format_desc.blocking") @ByRef public dnnl_blocking_desc_t format_desc_blocking()
public dnnl_memory_desc_t format_desc_blocking(dnnl_blocking_desc_t setter)
@Name(value="format_desc.wino_desc") @ByRef public dnnl_wino_desc_t format_desc_wino_desc()
public dnnl_memory_desc_t format_desc_wino_desc(dnnl_wino_desc_t setter)
@Name(value="format_desc.rnn_packed_desc") @ByRef public dnnl_rnn_packed_desc_t format_desc_rnn_packed_desc()
public dnnl_memory_desc_t format_desc_rnn_packed_desc(dnnl_rnn_packed_desc_t setter)
@ByRef public dnnl_memory_extra_desc_t extra()
public dnnl_memory_desc_t extra(dnnl_memory_extra_desc_t setter)
Copyright © 2020. All rights reserved.