@Namespace(value="mkldnn") @Properties(inherit=mkldnn.class) public class stream extends mkldnn_stream_handle
\} Primitives
\addtogroup cpp_api_stream Stream Execution stream operations.
c_api_stream in \ref c_api
\{
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
any
enum mkldnn::stream::kind
|
static int |
eager
enum mkldnn::stream::kind
|
static int |
eager_nostore
enum mkldnn::stream::kind
|
static int |
lazy
enum mkldnn::stream::kind
|
Constructor and Description |
---|
stream() |
stream(int akind)
Constructs a stream.
|
stream(mkldnn_stream t,
boolean weak) |
stream(Pointer p)
Pointer cast constructor.
|
stream(stream other) |
Modifier and Type | Method and Description |
---|---|
boolean |
_wait() |
boolean |
_wait(boolean block)
Waits for all computations submitted to the stream to complete.
|
static int |
convert_to_c(int akind) |
stream |
rerun() |
stream |
submit(primitive_vector primitives)
Submits a vector of primitives to a stream for computations.
|
equals, get, getPointer, notEquals, position, 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 any
public static final int eager
public static final int lazy
public static final int eager_nostore
public stream(mkldnn_stream t, @Cast(value="bool") boolean weak)
public stream()
public stream(Pointer p)
Pointer(Pointer)
.@Cast(value="mkldnn_stream_kind_t") public static int convert_to_c(@Cast(value="mkldnn::stream::kind") int akind)
@ByRef public stream submit(@ByVal primitive_vector primitives)
primitives
- The vector of primitives to submit.@Cast(value="bool") @Name(value="wait") public boolean _wait(@Cast(value="bool") boolean block)
block
- Specifies whether the operation should wait indefinitely or
return immediately.Copyright © 2022. All rights reserved.