Trait tc_collection::tensor::TensorUnary
source · pub trait TensorUnary {
type Unary: TensorInstance;
// Required methods
fn abs(self) -> TCResult<Self::Unary>;
fn exp(self) -> TCResult<Self::Unary>;
fn ln(self) -> TCResult<Self::Unary>;
fn round(self) -> TCResult<Self::Unary>;
}
Expand description
Unary Tensor
operations
Required Associated Types§
sourcetype Unary: TensorInstance
type Unary: TensorInstance
The return type of a unary operation