cuquantum.cutensornet.contraction_autotune

cuquantum.cutensornet.contraction_autotune(intptr_t handle, intptr_t plan, raw_data_in, intptr_t raw_data_out, intptr_t workspace, intptr_t pref, intptr_t stream)[source]

Autotune the contraction plan to find the best kernels for each pairwise tensor contraction.

The input tensors should form a tensor network that is prescribed by the tensor network descriptor that was used to create the contraction plan.

Parameters
  • handle (intptr_t) – The library handle.

  • plan (intptr_t) – The contraction plan handle.

  • raw_data_in

    A host array of pointer addresses (as Python int) for each input tensor (on device). It can be

    • an int as the pointer address to the array

    • a Python sequence of int

  • raw_data_out (intptr_t) – The pointer address (as Python int) to the output tensor (on device).

  • workspace (intptr_t) – The workspace descriptor.

  • pref (intptr_t) – The autotune preference handle.

  • stream (intptr_t) – The CUDA stream handle (cudaStream_t as Python int).