@Namespace(value="mkldnn") @NoOffset @Properties(inherit=mkldnn.class) public class memory extends primitive
\addtogroup cpp_api_memory_related Memory and memory related operations \{
\addtogroup cpp_api_memory Memory A primitive to describe and store data. For more information, refer to \ref c_api_memory in \ref c_api. \{
Memory primitive that describes the data.
Modifier and Type | Class and Description |
---|---|
static class |
memory.desc
A memory descriptor.
|
static class |
memory.primitive_desc
A memory primitive descriptor.
|
primitive.at
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
any
enum mkldnn::memory::format
|
static int |
bf16
enum mkldnn::memory::data_type
|
static int |
blocked
enum mkldnn::memory::format
|
static int |
chwn
enum mkldnn::memory::format
|
static int |
data_undef
enum mkldnn::memory::data_type
|
static int |
dhwio
enum mkldnn::memory::format
|
static int |
f32
enum mkldnn::memory::data_type
|
static int |
format_last
enum mkldnn::memory::format
|
static int |
format_undef
enum mkldnn::memory::format
|
static int |
gIOdhw8o16i2o
enum mkldnn::memory::format
|
static int |
giohw
enum mkldnn::memory::format
|
static int |
gIOhw16o16i
enum mkldnn::memory::format
|
static int |
gIOhw8i16o2i
enum mkldnn::memory::format
|
static int |
gIOhw8o16i2o
enum mkldnn::memory::format
|
static int |
gIOw16o16i
enum mkldnn::memory::format
|
static int |
gIOw8o16i2o
enum mkldnn::memory::format
|
static int |
gOdhwi16o
enum mkldnn::memory::format
|
static int |
gOdhwi4o
enum mkldnn::memory::format
|
static int |
gOdhwi8o
enum mkldnn::memory::format
|
static int |
gOhIw16o4i
enum mkldnn::memory::format
|
static int |
gOhwi16o
enum mkldnn::memory::format
|
static int |
gOhwi4o
enum mkldnn::memory::format
|
static int |
gOhwi8o
enum mkldnn::memory::format
|
static int |
goidhw
enum mkldnn::memory::format
|
static int |
gOIdhw16i16o
enum mkldnn::memory::format
|
static int |
gOidhw16o
enum mkldnn::memory::format
|
static int |
gOIdhw16o16i
enum mkldnn::memory::format
|
static int |
gOIdhw4i4o
enum mkldnn::memory::format
|
static int |
gOidhw4o
enum mkldnn::memory::format
|
static int |
gOIdhw8i16o2i
enum mkldnn::memory::format
|
static int |
gOIdhw8i8o
enum mkldnn::memory::format
|
static int |
gOIdhw8o16i2o
enum mkldnn::memory::format
|
static int |
gOIdhw8o8i
enum mkldnn::memory::format
|
static int |
goihw
enum mkldnn::memory::format
|
static int |
Goihw16g
enum mkldnn::memory::format
|
static int |
Goihw16g_s8s8
enum mkldnn::memory::format
|
static int |
gOIhw16i16o
enum mkldnn::memory::format
|
static int |
gOihw16o
enum mkldnn::memory::format
|
static int |
gOIhw16o16i
enum mkldnn::memory::format
|
static int |
gOIhw2i8o4i
enum mkldnn::memory::format
|
static int |
gOIhw2i8o4i_s8s8
enum mkldnn::memory::format
|
static int |
gOIhw4i16o4i
enum mkldnn::memory::format
|
static int |
gOIhw4i16o4i_s8s8
enum mkldnn::memory::format
|
static int |
gOIhw4i4o
enum mkldnn::memory::format
|
static int |
gOihw4o
enum mkldnn::memory::format
|
static int |
gOIhw4o4i
enum mkldnn::memory::format
|
static int |
gOIhw4o4i_s8s8
enum mkldnn::memory::format
|
static int |
Goihw8g
enum mkldnn::memory::format
|
static int |
gOIhw8i16o2i
enum mkldnn::memory::format
|
static int |
gOIhw8i8o
enum mkldnn::memory::format
|
static int |
gOihw8o
enum mkldnn::memory::format
|
static int |
gOIhw8o16i2o
enum mkldnn::memory::format
|
static int |
gOIhw8o8i
enum mkldnn::memory::format
|
static int |
goiw
enum mkldnn::memory::format
|
static int |
Goiw16g
enum mkldnn::memory::format
|
static int |
Goiw16g_s8s8
enum mkldnn::memory::format
|
static int |
gOIw16i16o
enum mkldnn::memory::format
|
static int |
gOiw16o
enum mkldnn::memory::format
|
static int |
gOIw16o16i
enum mkldnn::memory::format
|
static int |
gOIw4i16o4i
enum mkldnn::memory::format
|
static int |
gOIw4i16o4i_s8s8
enum mkldnn::memory::format
|
static int |
gOIw4i4o
enum mkldnn::memory::format
|
static int |
gOiw4o
enum mkldnn::memory::format
|
static int |
gOIw8i16o2i
enum mkldnn::memory::format
|
static int |
gOIw8i8o
enum mkldnn::memory::format
|
static int |
gOIw8o16i2o
enum mkldnn::memory::format
|
static int |
gOIw8o8i
enum mkldnn::memory::format
|
static int |
gOwi16o
enum mkldnn::memory::format
|
static int |
gOwi4o
enum mkldnn::memory::format
|
static int |
gOwi8o
enum mkldnn::memory::format
|
static int |
hwigo
enum mkldnn::memory::format
|
static int |
hwigo_s8s8
enum mkldnn::memory::format
|
static int |
hwio
enum mkldnn::memory::format
|
static int |
hwio_s8s8
enum mkldnn::memory::format
|
static int |
ihwo
enum mkldnn::memory::format
|
static int |
io
enum mkldnn::memory::format
|
static int |
IOdhw8o16i2o
enum mkldnn::memory::format
|
static int |
iohw
enum mkldnn::memory::format
|
static int |
IOhw16o16i
enum mkldnn::memory::format
|
static int |
IOhw8i16o2i
enum mkldnn::memory::format
|
static int |
IOhw8o16i2o
enum mkldnn::memory::format
|
static int |
IOw16o16i
enum mkldnn::memory::format
|
static int |
IOw8o16i2o
enum mkldnn::memory::format
|
static int |
ldgo
enum mkldnn::memory::format
|
static int |
ldgoi
enum mkldnn::memory::format
|
static int |
ldigo
enum mkldnn::memory::format
|
static int |
ldsnc
enum mkldnn::memory::format
|
static int |
nc
enum mkldnn::memory::format
|
static int |
ncdhw
enum mkldnn::memory::format
|
static int |
nCdhw16c
enum mkldnn::memory::format
|
static int |
nCdhw4c
enum mkldnn::memory::format
|
static int |
nCdhw8c
enum mkldnn::memory::format
|
static int |
nchw
enum mkldnn::memory::format
|
static int |
nChw16c
enum mkldnn::memory::format
|
static int |
nChw4c
enum mkldnn::memory::format
|
static int |
nChw8c
enum mkldnn::memory::format
|
static int |
ncw
enum mkldnn::memory::format
|
static int |
nCw16c
enum mkldnn::memory::format
|
static int |
nCw4c
enum mkldnn::memory::format
|
static int |
nCw8c
enum mkldnn::memory::format
|
static int |
ndhwc
enum mkldnn::memory::format
|
static int |
nhwc
enum mkldnn::memory::format
|
static int |
ntc
enum mkldnn::memory::format
|
static int |
nwc
enum mkldnn::memory::format
|
static int |
Odhwi16o
enum mkldnn::memory::format
|
static int |
Odhwi4o
enum mkldnn::memory::format
|
static int |
Odhwi8o
enum mkldnn::memory::format
|
static int |
OhIw16o4i
enum mkldnn::memory::format
|
static int |
Ohwi16o
enum mkldnn::memory::format
|
static int |
Ohwi4o
enum mkldnn::memory::format
|
static int |
Ohwi8o
enum mkldnn::memory::format
|
static int |
oi
enum mkldnn::memory::format
|
static int |
oidhw
enum mkldnn::memory::format
|
static int |
oIdhw16i
enum mkldnn::memory::format
|
static int |
OIdhw16i16o
enum mkldnn::memory::format
|
static int |
Oidhw16o
enum mkldnn::memory::format
|
static int |
OIdhw16o16i
enum mkldnn::memory::format
|
static int |
OIdhw4i4o
enum mkldnn::memory::format
|
static int |
Oidhw4o
enum mkldnn::memory::format
|
static int |
oIdhw8i
enum mkldnn::memory::format
|
static int |
OIdhw8i16o2i
enum mkldnn::memory::format
|
static int |
OIdhw8i8o
enum mkldnn::memory::format
|
static int |
OIdhw8o16i2o
enum mkldnn::memory::format
|
static int |
OIdhw8o8i
enum mkldnn::memory::format
|
static int |
oihw
enum mkldnn::memory::format
|
static int |
oIhw16i
enum mkldnn::memory::format
|
static int |
OIhw16i16o
enum mkldnn::memory::format
|
static int |
Oihw16o
enum mkldnn::memory::format
|
static int |
OIhw16o16i
enum mkldnn::memory::format
|
static int |
OIhw4i16o4i
enum mkldnn::memory::format
|
static int |
OIhw4i16o4i_s8s8
enum mkldnn::memory::format
|
static int |
OIhw4i4o
enum mkldnn::memory::format
|
static int |
Oihw4o
enum mkldnn::memory::format
|
static int |
oIhw8i
enum mkldnn::memory::format
|
static int |
OIhw8i16o2i
enum mkldnn::memory::format
|
static int |
OIhw8i8o
enum mkldnn::memory::format
|
static int |
Oihw8o
enum mkldnn::memory::format
|
static int |
OIhw8o16i2o
enum mkldnn::memory::format
|
static int |
OIhw8o8i
enum mkldnn::memory::format
|
static int |
oiw
enum mkldnn::memory::format
|
static int |
OIw16i16o
enum mkldnn::memory::format
|
static int |
Oiw16o
enum mkldnn::memory::format
|
static int |
OIw16o16i
enum mkldnn::memory::format
|
static int |
OIw4i16o4i
enum mkldnn::memory::format
|
static int |
OIw4i16o4i_s8s8
enum mkldnn::memory::format
|
static int |
OIw4i4o
enum mkldnn::memory::format
|
static int |
Oiw4o
enum mkldnn::memory::format
|
static int |
OIw8i16o2i
enum mkldnn::memory::format
|
static int |
OIw8i8o
enum mkldnn::memory::format
|
static int |
OIw8o16i2o
enum mkldnn::memory::format
|
static int |
OIw8o8i
enum mkldnn::memory::format
|
static int |
Owi16o
enum mkldnn::memory::format
|
static int |
Owi4o
enum mkldnn::memory::format
|
static int |
Owi8o
enum mkldnn::memory::format
|
static int |
rnn_packed
enum mkldnn::memory::format
|
static int |
s16
enum mkldnn::memory::data_type
|
static int |
s32
enum mkldnn::memory::data_type
|
static int |
s8
enum mkldnn::memory::data_type
|
static int |
tnc
enum mkldnn::memory::format
|
static int |
u8
enum mkldnn::memory::data_type
|
static int |
wino_fmt
enum mkldnn::memory::format
|
static int |
wio
enum mkldnn::memory::format
|
static int |
x
enum mkldnn::memory::format
|
batch_normalization, concat, concat_inplace, convolution, deconvolution, eltwise, inner_product, lrn, memory, pooling, reorder, rnn, shuffle, softmax, sum, undefined_primitive, view
Constructor and Description |
---|
memory(memory.primitive_desc adesc)
Constructs a memory primitive.
|
memory(memory.primitive_desc adesc,
Pointer ahandle) |
memory(Pointer p)
Pointer cast constructor.
|
memory(primitive aprimitive)
Constructs a memory primitive from a generic primitive.
|
Modifier and Type | Method and Description |
---|---|
static int |
convert_to_c(int adata_type) |
Pointer |
get_data_handle()
Returns a handle of the data contained in the memory primitive.
|
memory.primitive_desc |
get_primitive_desc()
Returns the descriptor of the memory primitive.
|
void |
set_data_handle(Pointer handle) |
get_mkldnn_primitive_desc, getPointer, position
equals, get, notEquals, put, reset, reset
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 static final int data_undef
public static final int f32
public static final int s32
public static final int bf16
public static final int s16
public static final int s8
public static final int u8
public static final int format_undef
public static final int any
public static final int blocked
public static final int x
public static final int nc
public static final int ncw
public static final int nwc
public static final int nCw16c
public static final int nchw
public static final int nhwc
public static final int chwn
public static final int nCw4c
public static final int nCw8c
public static final int nChw4c
public static final int nChw8c
public static final int nChw16c
public static final int ncdhw
public static final int ndhwc
public static final int nCdhw4c
public static final int nCdhw8c
public static final int nCdhw16c
public static final int oi
public static final int io
public static final int oiw
public static final int wio
public static final int Owi4o
public static final int OIw4i4o
public static final int Owi8o
public static final int OIw8o8i
public static final int OIw8i8o
public static final int OIw16i16o
public static final int OIw16o16i
public static final int Oiw4o
public static final int Oiw16o
public static final int Owi16o
public static final int OIw8i16o2i
public static final int OIw8o16i2o
public static final int IOw8o16i2o
public static final int IOw16o16i
public static final int OIw4i16o4i
public static final int OIw4i16o4i_s8s8
public static final int oihw
public static final int ihwo
public static final int hwio
public static final int iohw
public static final int hwio_s8s8
public static final int dhwio
public static final int oidhw
public static final int OIdhw4i4o
public static final int Odhwi4o
public static final int OIdhw8i8o
public static final int OIdhw8o8i
public static final int Odhwi8o
public static final int OIdhw16i16o
public static final int OIdhw16o16i
public static final int Oidhw4o
public static final int Oidhw16o
public static final int Odhwi16o
public static final int oIhw8i
public static final int oIhw16i
public static final int oIdhw8i
public static final int oIdhw16i
public static final int OIhw4i4o
public static final int OIhw8i8o
public static final int OIhw16i16o
public static final int OIhw8o8i
public static final int OIhw16o16i
public static final int IOhw16o16i
public static final int OIhw8i16o2i
public static final int IOhw8i16o2i
public static final int OIhw8o16i2o
public static final int IOhw8o16i2o
public static final int OIdhw8i16o2i
public static final int OIdhw8o16i2o
public static final int IOdhw8o16i2o
public static final int OIhw4i16o4i
public static final int OIhw4i16o4i_s8s8
public static final int Oihw8o
public static final int Oihw4o
public static final int Oihw16o
public static final int Ohwi8o
public static final int Ohwi4o
public static final int Ohwi16o
public static final int OhIw16o4i
public static final int goiw
public static final int gOwi4o
public static final int gOIw4i4o
public static final int gOwi8o
public static final int gOIw8o8i
public static final int gOIw8i8o
public static final int gOIw16i16o
public static final int gOIw16o16i
public static final int gOiw4o
public static final int gOiw16o
public static final int gOwi16o
public static final int gIOw16o16i
public static final int gOIw8i16o2i
public static final int gOIw8o16i2o
public static final int gIOw8o16i2o
public static final int gOIw4i16o4i
public static final int gOIw4i16o4i_s8s8
public static final int goihw
public static final int hwigo
public static final int giohw
public static final int hwigo_s8s8
public static final int gOIdhw4i4o
public static final int gOdhwi4o
public static final int gOIdhw8i8o
public static final int gOIdhw8o8i
public static final int gOdhwi8o
public static final int gOIhw4i4o
public static final int gOIhw8i8o
public static final int gOIhw16i16o
public static final int gOIhw8i16o2i
public static final int gIOhw8i16o2i
public static final int gOIhw8o16i2o
public static final int gIOhw8o16i2o
public static final int gOIdhw8i16o2i
public static final int gOIdhw8o16i2o
public static final int gIOdhw8o16i2o
public static final int gOIhw4i16o4i
public static final int gOIhw4i16o4i_s8s8
public static final int gOIhw2i8o4i
public static final int gOIhw2i8o4i_s8s8
public static final int gOihw8o
public static final int gOihw4o
public static final int gOihw16o
public static final int gOhwi4o
public static final int gOhwi8o
public static final int gOhwi16o
public static final int Goihw8g
public static final int Goiw16g
public static final int Goiw16g_s8s8
public static final int Goihw16g
public static final int Goihw16g_s8s8
public static final int gOIhw4o4i
public static final int gOIhw4o4i_s8s8
public static final int gOIhw8o8i
public static final int gOIhw16o16i
public static final int gIOhw16o16i
public static final int gOhIw16o4i
public static final int goidhw
public static final int gOIdhw16i16o
public static final int gOIdhw16o16i
public static final int gOidhw4o
public static final int gOidhw16o
public static final int gOdhwi16o
public static final int ntc
public static final int tnc
public static final int ldsnc
public static final int ldigo
public static final int ldgoi
public static final int ldgo
public static final int rnn_packed
public static final int wino_fmt
public static final int format_last
public memory(Pointer p)
Pointer(Pointer)
.public memory(@Const @ByRef primitive aprimitive)
aprimitive
- The primitive to treat as memory.public memory(@Const @ByRef memory.primitive_desc adesc)
adesc
- Memory primitive descriptor.public memory(@Const @ByRef memory.primitive_desc adesc, Pointer ahandle)
@ByVal public memory.primitive_desc get_primitive_desc()
public Pointer get_data_handle()
public void set_data_handle(Pointer handle)
Copyright © 2022. All rights reserved.