tensor.atan
fn atan(self: @Tensor<T>) -> Tensor<T>;Args
Returns
Type Constraints
Example
use core::array::{ArrayTrait, SpanTrait};
use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor};
use orion::numbers::{FixedTrait, FP8x23};
fn atan_example() -> Tensor<FP8x23> {
let tensor = TensorTrait::<FP8x23>::new(
shape: array![3].span(),
data: array![
FixedTrait::new_unscaled(0, false),
FixedTrait::new_unscaled(1, false),
FixedTrait::new_unscaled(2, false),
]
.span(),
);
return tensor.atan();
}
>>> [0,6588397,9287028]
// The fixed point representation of
// [0,0.7853...,1.1071...]Last updated