network_prepare_gradients_backward#

cuquantum.bindings.cutensornet.network_prepare_gradients_backward(
intptr_t handle,
intptr_t network_desc,
intptr_t work_desc,
)[source]#

Prepares the network for gradient computation.

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

  • network_desc (intptr_t) – The network descriptor whose internal contraction plan will be built.

  • work_desc (intptr_t) – Opaque structure describing the workspace. At the preparation of the network contraction, only the workspace size is needed; the pointer to the workspace memory may be left null.