@Name(value="dnnl::primitive_desc") @NoOffset @Properties(inherit=dnnl.class) public class primitive_desc extends primitive_desc_base
\addtogroup dnnl_api_primitives_common \{
A base class for descriptors of all primitives that have an operation descriptor and that support iteration over multiple implementations.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
primitive_desc() |
primitive_desc(const_dnnl_op_desc_t desc,
primitive_attr attr,
engine aengine,
dnnl_primitive_desc hint_fwd_pd) |
primitive_desc(const_dnnl_op_desc_t desc,
primitive_attr attr,
engine aengine,
dnnl_primitive_desc hint_fwd_pd,
boolean allow_empty)
Constructs a primitive descriptor.
|
primitive_desc(dnnl_primitive_desc t) |
primitive_desc(dnnl_primitive_desc t,
boolean weak) |
primitive_desc(long size)
Native array allocator.
|
primitive_desc(Pointer p)
Pointer cast constructor.
|
primitive_desc(primitive_desc arg0) |
| Modifier and Type | Method and Description |
|---|---|
primitive_desc |
getPointer(long i) |
boolean |
next_impl()
Advances the primitive iterator to the next implementation.
|
primitive_desc |
position(long position) |
diff_dst_desc, diff_dst_desc, diff_src_desc, diff_src_desc, diff_weights_desc, diff_weights_desc, dst_desc, dst_desc, get_engine, get_kind, get_primitive_attr, impl_info_str, query_md, query_md, query_md, query_md, query_s64, query_s64, scratchpad_desc, scratchpad_engine, src_desc, src_desc, weights_desc, weights_desc, workspace_descasBoolean, 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()
public primitive_desc(@Const @ByRef primitive_desc arg0)
public primitive_desc(dnnl_primitive_desc t, @Cast(value="bool") boolean weak)
public primitive_desc(dnnl_primitive_desc t)
public primitive_desc(Pointer p)
Pointer.Pointer(Pointer).public primitive_desc(long size)
Pointer.position(long).public primitive_desc(const_dnnl_op_desc_t desc, @Const primitive_attr attr, @Const @ByRef engine aengine, @Const dnnl_primitive_desc hint_fwd_pd, @Cast(value="bool") boolean allow_empty)
desc - Constant C API operation descriptor.attr - Pointer to primitive attributes. It is safe to pass
nullptr to indicate absence of attributes.aengine - Engine to use.hint_fwd_pd - C API primitive descriptor for a forward
propagation primitive. It is used as a hint for deciding which
memory format to use for backward propagation or weights gradient.allow_empty - A flag signifying whether construction is allowed
to fail without throwing an exception. In this case an empty
object will be produced. This flag is optional and defaults to
false.public primitive_desc(const_dnnl_op_desc_t desc, @Const primitive_attr attr, @Const @ByRef engine aengine, @Const dnnl_primitive_desc hint_fwd_pd)
public primitive_desc position(long position)
position in class primitive_desc_basepublic primitive_desc getPointer(long i)
getPointer in class primitive_desc_baseCopyright © 2020. All rights reserved.