_abs
abs
ΒΆ
Compute the absolute value of a tensor.
This method can be used with Numpy data:
This method can be used with TensorFlow tensors:
This method can be used with PyTorch tensors:
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tensor
|
ArrayT
|
The input value. |
required |
Returns:
Type | Description |
---|---|
ArrayT
|
The absolute value of |
Raises:
Type | Description |
---|---|
ValueError
|
If |