network_append_tensor#
-
cuquantum.
bindings. cutensornet. network_append_tensor( - intptr_t handle,
- intptr_t network_desc,
- int32_t num_modes,
- extents,
- mode_labels,
- intptr_t qualifiers,
- int data_type,
Appends an input tensor to the network.
- Parameters:
handle (intptr_t) – Opaque handle holding cuTensorNet’s library context.
network_desc (intptr_t) – Opaque handle to a tensor network descriptor, created using
create_network()
.num_modes (int32_t) – The number of modes of the tensor.
extents (object) –
Array of size
num_modes
;extents[j]
corresponding to the extent of the j-th mode of the tensor. It can be:an
int
as the pointer address to the array, ora Python sequence of
int64_t
.
mode_labels (object) –
Array of size
num_modes
;mode_labels[j]
denotes the label of j-th mode of the tensor. It can be:an
int
as the pointer address to the array, ora Python sequence of
int32_t
.
qualifiers (intptr_t) – Denotes the qualifiers of the input tensor in relation to
network_desc
. Refer tocutensornetTensorQualifiers_t
.data_type (int) – Denotes the data type of the tensor.
- Returns:
On return, if not NULL, will hold the tensor identifier within the
network_desc
(may be not sequential, but is unique).- Return type:
int64_t
See also