pub trait Init {
// Required method
fn new_tensor<T: Type>(
&self,
shape: impl Shape,
dtype: T,
device: impl AsDevice
) -> Tensor;
}Required Methods§
Object Safety§
This trait is not object safe.
pub trait Init {
// Required method
fn new_tensor<T: Type>(
&self,
shape: impl Shape,
dtype: T,
device: impl AsDevice
) -> Tensor;
}