pub struct DefaultCollate;Expand description
The default collation policy for common scalar, tuple, and tensor samples.
Trait Implementations§
Source§impl Clone for DefaultCollate
impl Clone for DefaultCollate
Source§impl<A, B> Collate<(A, B)> for DefaultCollate
impl<A, B> Collate<(A, B)> for DefaultCollate
Source§impl<A, B, C> Collate<(A, B, C)> for DefaultCollate
impl<A, B, C> Collate<(A, B, C)> for DefaultCollate
Source§type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output, <DefaultCollate as Collate<C>>::Output)
type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output, <DefaultCollate as Collate<C>>::Output)
Output.
Source§impl Collate<String> for DefaultCollate
impl Collate<String> for DefaultCollate
Source§impl<S, B, K, G> Collate<Tensor<S, B, K, G>> for DefaultCollate
impl<S, B, K, G> Collate<Tensor<S, B, K, G>> for DefaultCollate
Source§impl Collate<bool> for DefaultCollate
impl Collate<bool> for DefaultCollate
Source§impl Collate<f32> for DefaultCollate
impl Collate<f32> for DefaultCollate
Source§impl Collate<f64> for DefaultCollate
impl Collate<f64> for DefaultCollate
Source§impl Collate<i8> for DefaultCollate
impl Collate<i8> for DefaultCollate
Source§impl Collate<i16> for DefaultCollate
impl Collate<i16> for DefaultCollate
Source§impl Collate<i32> for DefaultCollate
impl Collate<i32> for DefaultCollate
Source§impl Collate<i64> for DefaultCollate
impl Collate<i64> for DefaultCollate
Source§impl Collate<isize> for DefaultCollate
impl Collate<isize> for DefaultCollate
Source§impl Collate<u8> for DefaultCollate
impl Collate<u8> for DefaultCollate
Source§impl Collate<u16> for DefaultCollate
impl Collate<u16> for DefaultCollate
Source§impl Collate<u32> for DefaultCollate
impl Collate<u32> for DefaultCollate
Source§impl Collate<u64> for DefaultCollate
impl Collate<u64> for DefaultCollate
Source§impl Collate<usize> for DefaultCollate
impl Collate<usize> for DefaultCollate
impl Copy for DefaultCollate
Source§impl Debug for DefaultCollate
impl Debug for DefaultCollate
Auto Trait Implementations§
impl Freeze for DefaultCollate
impl RefUnwindSafe for DefaultCollate
impl Send for DefaultCollate
impl Sync for DefaultCollate
impl Unpin for DefaultCollate
impl UnsafeUnpin for DefaultCollate
impl UnwindSafe for DefaultCollate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DTypeEq<T> for T
impl<T> DTypeEq<T> for T
Source§const DTYPES_EQUAL: bool = true
const DTYPES_EQUAL: bool = true
A type is always dtype-equal to itself.
Source§const ASSERT_DTYPES_MATCH: ()
const ASSERT_DTYPES_MATCH: ()
Always passes, since T: DTypeEq<T> only reaches this impl when
the two types genuinely match.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<N> SameCount<N> for N
Source§impl<S> ShapeEq<S> for S
impl<S> ShapeEq<S> for S
Source§const SHAPES_EQUAL: bool = true
const SHAPES_EQUAL: bool = true
A type is always shape-equal to itself.
Source§const ASSERT_SHAPES_MATCH: ()
const ASSERT_SHAPES_MATCH: ()
Always passes, since S: ShapeEq<S> only reaches this impl when
the two types genuinely match.