A container for stream attributes. More...
#include <dnnl.hpp>


Public Member Functions | |
| stream_attr ()=default | |
| Constructs default (empty) stream attributes. | |
| stream_attr (engine::kind kind) | |
| Constructs stream attributes for a stream that runs on an engine of a particular kind. | |
| handle ()=default | |
| Constructs an empty handle object. | |
| handle (const handle< T, traits > &)=default | |
| Copy constructor. | |
| handle (handle< T, traits > &&)=default | |
| Move constructor. | |
| handle (T t, bool weak=false) | |
| Constructs a handle wrapper object from a C API handle. | |
| Public Member Functions inherited from dnnl::handle< dnnl_stream_attr_t > | |
| handle ()=default | |
| Constructs an empty handle object. | |
| handle< dnnl_stream_attr_t, handle_traits< dnnl_stream_attr_t > > & | operator= (const handle< dnnl_stream_attr_t, handle_traits< dnnl_stream_attr_t > > &)=default |
| Assignment operator. | |
| void | reset (dnnl_stream_attr_t t, bool weak=false) |
| Resets the handle wrapper objects to wrap a new C API handle. | |
| dnnl_stream_attr_t | get (bool allow_empty=false) const |
| Returns the underlying C API handle. | |
| operator dnnl_stream_attr_t () const | |
| Converts a handle to the underlying C API handle type. | |
| operator bool () const | |
| Checks whether the object is empty. | |
A container for stream attributes.
|
inline |
Constructs stream attributes for a stream that runs on an engine of a particular kind.
| kind | Target engine kind. |
|
default |
Constructs an empty handle object.
|
inlineexplicit |
Constructs a handle wrapper object from a C API handle.
| t | The C API handle to wrap. |
| weak | A flag specifying whether to construct a weak wrapper; defaults to false. |