@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| Modifier and Type | Field and Description |
|---|---|
static int |
any
enum mkldnn::stream::kind
|
static int |
eager
enum mkldnn::stream::kind
|
static int |
lazy
enum mkldnn::stream::kind
|
| Constructor and Description |
|---|
stream(int akind)
Constructs a stream.
|
stream(Pointer p)
Pointer cast constructor.
|
| 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, notEquals, position, put, reset, resetaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic static final int any
public static final int eager
public static final int lazy
public stream(Pointer p)
Pointer.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 © 2019. All rights reserved.