Sets a number of primitives that can be held in the primitive cache at a time.
- Parameters
-
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. |
- Returns
- dnnl_invalid_arguments/#dnnl::status::invalid_arguments if the
capacity
value is invalid, and dnnl_success/#dnnl::status::success on success.