cuquantum.cutensornet.contraction_optimizer_info_pack_data

cuquantum.cutensornet.contraction_optimizer_info_pack_data(intptr_t handle, intptr_t optimizer_info, buffer, size_t size_in_bytes)[source]

Packs the optimizer_info object into the provided buffer.

Parameters
  • handle (intptr_t) – Opaque handle holding cuTensorNet’s library context.

  • optimizer_info (intptr_t) – Opaque structure of type cutensornetContractionOptimizerInfo_t.

  • buffer (bytes) – On return, this buffer holds the contents of optimizer_info in packed form.

  • size_in_bytes (size_t) – The size of the buffer (in bytes).