Implementing kernel
C++ engine symbols that back this Python API.Element-wise tangent (input in radians).
Computes . Diverges at odd multiples of .
Parameters
inputTensorInput tensor.
Returns
TensorElement-wise result with the same shape as input.
Notes
Mathematical definition:
Gradient: .
Examples
>>> import lucid
>>> x = lucid.tensor([1.0, 2.0, 3.0])
>>> lucid.tan(x)
Tensor([...])