qml.interfaces.torch.args_to_numpy

args_to_numpy(args)[source]

Converts all Torch tensors in a list to NumPy arrays

Parameters

args (list) – list containing QNode arguments, including Torch tensors

Returns

returns the same list, with all Torch tensors converted to NumPy arrays

Return type

list