pub trait EmptyLikeAPI<Inp> {
type Out;
// Required method
unsafe fn empty_like_f(self) -> Result<Self::Out>;
// Provided method
unsafe fn empty_like(self) -> Self::Out
where Self: Sized { ... }
}Required Associated Types§
Required Methods§
Sourceunsafe fn empty_like_f(self) -> Result<Self::Out>
unsafe fn empty_like_f(self) -> Result<Self::Out>
§Safety
This function is unsafe because it creates a tensor with uninitialized.
Provided Methods§
Sourceunsafe fn empty_like(self) -> Self::Outwhere
Self: Sized,
unsafe fn empty_like(self) -> Self::Outwhere
Self: Sized,
§Safety
This function is unsafe because it creates a tensor with uninitialized.