contraction_optimizer_config_get_attribute#
-
cuquantum.
bindings. cutensornet. contraction_optimizer_config_get_attribute( - intptr_t handle,
- intptr_t optimizer_config,
- int attr,
- intptr_t buffer,
- size_t size_in_bytes,
Gets attributes of
optimizer_config
.- Parameters:
handle (intptr_t) – Opaque handle holding cuTensorNet’s library context.
optimizer_config (intptr_t) – Opaque structure that is accessed.
attr (ContractionOptimizerConfigAttribute) – Specifies the attribute that is requested.
buffer (intptr_t) – On return, this buffer (of size
size_in_bytes
) holds the value that corresponds toattr
withinoptimizer_config
.size_in_bytes (size_t) – Size of
buffer
(in bytes).
Note
To compute the attribute size, use the itemsize of the corresponding data type, which can be queried using
get_contraction_optimizer_config_attribute_dtype()
.