@Namespace(value="dnnl") @Properties(inherit=dnnl.class) public class engine extends dnnl_engine_handle
An execution engine.
| Modifier and Type | Class and Description |
|---|---|
static class |
engine.kind
Kinds of engines.
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
engine() |
engine(dnnl_engine t) |
engine(dnnl_engine t,
boolean weak) |
engine(dnnl_primitive_desc_handle pd)
Constructs an engine based on a primitive from the primitive
descriptor \p pd by querying its engine.
|
engine(engine.kind akind,
long index)
Constructs an engine.
|
engine(engine arg0) |
engine(int akind,
long index) |
engine(long size)
Native array allocator.
|
engine(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
get_count(engine.kind akind)
Returns the number of engines of a certain kind.
|
static long |
get_count(int akind) |
engine.kind |
get_kind()
Returns the kind of the engine.
|
engine |
getPointer(long i) |
engine |
position(long position) |
asBoolean, asDnnl_engine, 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 engine()
public engine(dnnl_engine t, @Cast(value="bool") boolean weak)
public engine(dnnl_engine t)
public engine(Pointer p)
Pointer.Pointer(Pointer).public engine(long size)
Pointer.position(long).public engine(engine.kind akind, @Cast(value="size_t") long index)
akind - The kind of engine to construct.index - The index of the engine. Must be less than the value
returned by #get_count() for this particular kind of engine.public engine(@Const @ByRef dnnl_primitive_desc_handle pd)
pd - The primitive descriptor to query.public engine position(long position)
position in class dnnl_engine_handlepublic engine getPointer(long i)
getPointer in class dnnl_engine_handle@Cast(value="size_t") public static long get_count(engine.kind akind)
akind - The kind of engines to count.@Cast(value="size_t") public static long get_count(@Cast(value="dnnl::engine::kind") int akind)
public engine.kind get_kind()
Copyright © 2020. All rights reserved.