Math Functions
simplegrad.functions.math.log(x: Tensor) -> Tensor
Compute element-wise natural logarithm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
Tensor
|
Input tensor. All values must be positive. |
required |
Returns:
| Type | Description |
|---|---|
Tensor
|
Tensor of ln(x). |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any value in x is <= 0 (checked in eager mode only). |