PytorchBackend.power#

PytorchBackend.power(*args, **kwargs)[source]#

Compute the n-th power of an array.

Parameters:
arrBackendArray

Input data.

powerBackendArray

Power to raise arr to.

arrBackendArray

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

Returns:
BackendArray

N-th power of arr.