@Namespace(value="dnnl") @Properties(inherit=dnnl.class) public class primitive_desc_base extends dnnl_primitive_desc_handle
\addtogroup dnnl_api_primitives_common \{
Base class for all primitive descriptors.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
primitive_desc_base() |
primitive_desc_base(dnnl_primitive_desc t) |
primitive_desc_base(dnnl_primitive_desc t,
boolean weak) |
primitive_desc_base(long size)
Native array allocator.
|
primitive_desc_base(Pointer p)
Pointer cast constructor.
|
primitive_desc_base(primitive_desc_base arg0) |
| Modifier and Type | Method and Description |
|---|---|
memory.desc |
diff_dst_desc()
Returns a diff destination memory descriptor.
|
memory.desc |
diff_dst_desc(int idx)
Returns a diff destination memory descriptor.
|
memory.desc |
diff_src_desc()
Returns a diff source memory descriptor.
|
memory.desc |
diff_src_desc(int idx)
Returns a diff source memory descriptor.
|
memory.desc |
diff_weights_desc()
Returns a diff weights memory descriptor.
|
memory.desc |
diff_weights_desc(int idx)
Returns a diff weights memory descriptor.
|
memory.desc |
dst_desc()
Returns a destination memory descriptor.
|
memory.desc |
dst_desc(int idx)
Returns a destination memory descriptor.
|
engine |
get_engine()
Returns the engine of the primitive descriptor.
|
primitive.kind |
get_kind()
Returns the kind of the primitive descriptor.
|
primitive_attr |
get_primitive_attr()
Returns the primitive attributes.
|
primitive_desc_base |
getPointer(long i) |
BytePointer |
impl_info_str()
Returns implementation name.
|
primitive_desc_base |
position(long position) |
memory.desc |
query_md(dnnl.query what) |
memory.desc |
query_md(dnnl.query what,
int idx)
Returns a memory descriptor.
|
memory.desc |
query_md(int what) |
memory.desc |
query_md(int what,
int idx) |
long |
query_s64(dnnl.query what)
Returns a memory::dim value (same as int64_t).
|
long |
query_s64(int what) |
memory.desc |
scratchpad_desc()
Returns the scratchpad memory descriptor.
|
engine |
scratchpad_engine()
Returns the engine on which the scratchpad memory is located.
|
memory.desc |
src_desc()
Returns a source memory descriptor.
|
memory.desc |
src_desc(int idx)
Returns a source memory descriptor.
|
memory.desc |
weights_desc()
Returns a weights memory descriptor.
|
memory.desc |
weights_desc(int idx)
Returns a weights memory descriptor.
|
memory.desc |
workspace_desc()
Returns the workspace memory descriptor.
|
asBoolean, asDnnl_primitive_desc, equals, get, get, notEquals, put, reset, resetaddress, 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 primitive_desc_base()
public primitive_desc_base(@Const @ByRef primitive_desc_base arg0)
public primitive_desc_base(dnnl_primitive_desc t, @Cast(value="bool") boolean weak)
public primitive_desc_base(dnnl_primitive_desc t)
public primitive_desc_base(Pointer p)
Pointer.Pointer(Pointer).public primitive_desc_base(long size)
Pointer.position(long).public primitive_desc_base position(long position)
position in class dnnl_primitive_desc_handlepublic primitive_desc_base getPointer(long i)
getPointer in class dnnl_primitive_desc_handle@ByVal public engine get_engine()
@Cast(value="const char*") public BytePointer impl_info_str()
@Cast(value="dnnl::memory::dim") public long query_s64(dnnl.query what)
what - The value to query.@Cast(value="dnnl::memory::dim") public long query_s64(@Cast(value="dnnl::query") int what)
@ByVal public memory.desc query_md(dnnl.query what, int idx)
what - The kind of parameter to query; can be
#dnnl::query::src_md, #dnnl::query::dst_md, etc.idx - Index of the parameter. For example, convolution bias can
be queried with what = #dnnl::query::weights_md and idx = 1.@ByVal public memory.desc query_md(dnnl.query what)
@ByVal public memory.desc query_md(@Cast(value="dnnl::query") int what, int idx)
@ByVal public memory.desc query_md(@Cast(value="dnnl::query") int what)
@ByVal public memory.desc src_desc(int idx)
idx - Source index.@ByVal public memory.desc dst_desc(int idx)
idx - Destination index.@ByVal public memory.desc weights_desc(int idx)
idx - Weights index.@ByVal public memory.desc diff_src_desc(int idx)
idx - Diff source index.@ByVal public memory.desc diff_dst_desc(int idx)
idx - Diff destination index.@ByVal public memory.desc diff_weights_desc(int idx)
idx - Diff weights index.@ByVal public memory.desc src_desc()
@ByVal public memory.desc dst_desc()
@ByVal public memory.desc weights_desc()
@ByVal public memory.desc diff_src_desc()
@ByVal public memory.desc diff_dst_desc()
@ByVal public memory.desc diff_weights_desc()
@ByVal public memory.desc workspace_desc()
@ByVal public memory.desc scratchpad_desc()
dev_guide_attributes_scratchpad@ByVal public engine scratchpad_engine()
@ByVal public primitive_attr get_primitive_attr()
public primitive.kind get_kind()
Copyright © 2020. All rights reserved.