PytorchBackend.add#

PytorchBackend.add(*args, **kwargs)#

Element-wise addition of arrays.

Parameters:
arr1BackendArray

Input array.

arr2BackendArray

Input array.

outBackendArray, optional

Output array to write the result to. Returns a new array by default.

Returns:
BackendArray

Element-wise sum of the input arrays.