@Namespace(value="mkldnn") public static class mkldnn.stream extends mkldnn.mkldnn_stream_handle
\addtogroup cpp_api_stream Stream Execution stream operations \sa \ref 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(mkldnn.stream other) |
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) |
mkldnn.stream |
rerun() |
mkldnn.stream |
submit(mkldnn.primitive_vector primitives)
Submits a vector of primitives to a stream for computations.
|
equals, get, notEquals, 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, 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(@Const @ByRef mkldnn.stream other)
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 mkldnn.stream submit(@ByVal mkldnn.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.@ByRef public mkldnn.stream rerun()
Copyright © 2018. All rights reserved.