oneflow.arccos¶
-
oneflow.
arccos
()¶ Returns a new tensor with the inverse cosine of the elements of
input
.\[\text{out}_{i} = \arccos(\text{input}_{i})\]- Parameters
input (Tensor) – the input tensor.
For example:
>>> import oneflow as flow >>> import numpy as np >>> arr = np.array([0.5, 0.6, 0.7]) >>> input = flow.tensor(arr, dtype=flow.float32) >>> output = flow.acos(input) >>> output tensor([1.0472, 0.9273, 0.7954], dtype=oneflow.float32)