plan_get_attribute#

nvmath.bindings.cutensor.plan_get_attribute(
intptr_t handle,
intptr_t plan,
int attr,
intptr_t buf,
size_t size_in_bytes,
)[source]#

Retrieves information about an already-created plan (see cutensorPlanAttribute_t).

Parameters:
  • handle (intptr_t) – Denotes an already-created plan (e.g., via cutensorCreatePlan or cutensorCreatePlanAutotuned).

  • plan (intptr_t) – Requested attribute.

  • attr (PlanAttribute) – On successful exit: Holds the information of the requested attribute.

  • buf (intptr_t) – size of buf in bytes.

  • size_in_bytes (size_t) – The operation completed successfully.

Note

To compute the attribute size, use the itemsize of the corresponding data type, which can be queried using get_plan_attribute_dtype().

See also

cutensorPlanGetAttribute