Functions | |
| dnnl_status_t DNNL_API | dnnl_get_primitive_cache_capacity (int *capacity) |
| Returns a number of primitives that can be held in the primitive cache at a time. More... | |
| dnnl_status_t DNNL_API | dnnl_set_primitive_cache_capacity (int capacity) |
| Sets a number of primitives that can be held in the primitive cache at a time. More... | |
| int | dnnl::get_primitive_cache_capacity () |
| Returns a number of primitives that can be held in the primitive cache at a time. More... | |
| void | dnnl::set_primitive_cache_capacity (int capacity) |
| Sets a number of primitives that can be held in the primitive cache at a time. More... | |
| dnnl_status_t DNNL_API dnnl_get_primitive_cache_capacity | ( | int * | capacity | ) |
Returns a number of primitives that can be held in the primitive cache at a time.
| capacity | Primitive cache capacity to query. Concurrently accessing capacity is safe. |
capacity value is invalid, and dnnl_success/dnnl::status::success on success. | dnnl_status_t DNNL_API dnnl_set_primitive_cache_capacity | ( | int | capacity | ) |
Sets a number of primitives that can be held in the primitive cache at a time.
| capacity | Primitive cache capacity to set. If a new capacity is less than a number of primitives that the primitive cache already has then the excess entries will be evicted. Setting the capacity to 0 clears the primitive cache and disables it. Concurrently modifying capacity is safe. |
capacity value is invalid, and dnnl_success/dnnl::status::success on success.
|
inline |
Returns a number of primitives that can be held in the primitive cache at a time.
| capacity | Primitive cache capacity to query. Concurrently accessing capacity is safe. |
capacity value is invalid, and dnnl_success/dnnl::status::success on success.
|
inline |
Sets a number of primitives that can be held in the primitive cache at a time.
| capacity | Primitive cache capacity to set. If a new capacity is less than a number of primitives that the primitive cache already has then the excess entries will be evicted. Setting the capacity to 0 clears the primitive cache and disables it. Concurrently modifying capacity is safe. |
capacity value is invalid, and dnnl_success/dnnl::status::success on success.