pub struct Tuple<T>(/* private fields */);
Trait Implementations§
Source§impl<A, B, C, OUT, FUNC> Func<Tuple<(A, B, C)>, (A, B, C), OUT> for FUNCwhere
FUNC: Fn(A, B, C) -> OUT,
impl<A, B, C, OUT, FUNC> Func<Tuple<(A, B, C)>, (A, B, C), OUT> for FUNCwhere
FUNC: Fn(A, B, C) -> OUT,
Source§impl<A, B, C, D, OUT, FUNC> Func<Tuple<(A, B, C, D)>, (A, B, C, D), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D) -> OUT,
impl<A, B, C, D, OUT, FUNC> Func<Tuple<(A, B, C, D)>, (A, B, C, D), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D) -> OUT,
fn invoke(&self, input: (A, B, C, D)) -> OUT
Source§impl<A, B, C, D, E, OUT, FUNC> Func<Tuple<(A, B, C, D, E)>, (A, B, C, D, E), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E) -> OUT,
impl<A, B, C, D, E, OUT, FUNC> Func<Tuple<(A, B, C, D, E)>, (A, B, C, D, E), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E) -> OUT,
fn invoke(&self, input: (A, B, C, D, E)) -> OUT
Source§impl<A, B, C, D, E, F, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F)>, (A, B, C, D, E, F), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F) -> OUT,
impl<A, B, C, D, E, F, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F)>, (A, B, C, D, E, F), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F) -> OUT,
fn invoke(&self, input: (A, B, C, D, E, F)) -> OUT
Source§impl<A, B, C, D, E, F, G, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F, G)>, (A, B, C, D, E, F, G), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F, G) -> OUT,
impl<A, B, C, D, E, F, G, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F, G)>, (A, B, C, D, E, F, G), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F, G) -> OUT,
fn invoke(&self, input: (A, B, C, D, E, F, G)) -> OUT
Source§impl<A, B, C, D, E, F, G, H, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F, G, H)>, (A, B, C, D, E, F, G, H), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F, G, H) -> OUT,
impl<A, B, C, D, E, F, G, H, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F, G, H)>, (A, B, C, D, E, F, G, H), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F, G, H) -> OUT,
fn invoke(&self, input: (A, B, C, D, E, F, G, H)) -> OUT
Source§impl<A, B, C, D, E, F, G, H, I, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F, G, H, I)>, (A, B, C, D, E, F, G, H, I), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F, G, H, I) -> OUT,
impl<A, B, C, D, E, F, G, H, I, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F, G, H, I)>, (A, B, C, D, E, F, G, H, I), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F, G, H, I) -> OUT,
fn invoke(&self, input: (A, B, C, D, E, F, G, H, I)) -> OUT
Source§impl<A, B, C, D, E, F, G, H, I, J, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F, G, H, I, J)>, (A, B, C, D, E, F, G, H, I, J), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F, G, H, I, J) -> OUT,
impl<A, B, C, D, E, F, G, H, I, J, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F, G, H, I, J)>, (A, B, C, D, E, F, G, H, I, J), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F, G, H, I, J) -> OUT,
fn invoke(&self, input: (A, B, C, D, E, F, G, H, I, J)) -> OUT
Source§impl<A, B, C, D, E, F, G, H, I, J, K, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F, G, H, I, J, K)>, (A, B, C, D, E, F, G, H, I, J, K), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F, G, H, I, J, K) -> OUT,
impl<A, B, C, D, E, F, G, H, I, J, K, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F, G, H, I, J, K)>, (A, B, C, D, E, F, G, H, I, J, K), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F, G, H, I, J, K) -> OUT,
fn invoke(&self, input: (A, B, C, D, E, F, G, H, I, J, K)) -> OUT
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F, G, H, I, J, K, L)>, (A, B, C, D, E, F, G, H, I, J, K, L), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F, G, H, I, J, K, L) -> OUT,
impl<A, B, C, D, E, F, G, H, I, J, K, L, OUT, FUNC> Func<Tuple<(A, B, C, D, E, F, G, H, I, J, K, L)>, (A, B, C, D, E, F, G, H, I, J, K, L), OUT> for FUNCwhere
FUNC: Fn(A, B, C, D, E, F, G, H, I, J, K, L) -> OUT,
fn invoke(&self, input: (A, B, C, D, E, F, G, H, I, J, K, L)) -> OUT
Source§impl<A> GenericValue<Tuple<(A,)>, <A as ValueSpec>::Tensors, <A as ValueSpec>::Gradient> for (A,)
impl<A> GenericValue<Tuple<(A,)>, <A as ValueSpec>::Tensors, <A as ValueSpec>::Gradient> for (A,)
Source§impl<A, B> GenericValue<Tuple<(A, B)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient)> for (A, B)
impl<A, B> GenericValue<Tuple<(A, B)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient)> for (A, B)
fn gv_tensors(&self) -> (A::Tensors, B::Tensors)
fn gv_grad( tensors: &(A::Tensors, B::Tensors), grad_map: &HashMap<usize, Tensor>, ) -> (A::Gradient, B::Gradient)
fn gv_grad_map( tensors: &(A::Tensors, B::Tensors), grad: (A::Gradient, B::Gradient), out: &mut HashMap<usize, Tensor>, )
Source§impl<A, B, C> GenericValue<Tuple<(A, B, C)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient)> for (A, B, C)
impl<A, B, C> GenericValue<Tuple<(A, B, C)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient)> for (A, B, C)
fn gv_tensors(&self) -> (A::Tensors, B::Tensors, C::Tensors)
fn gv_grad( tensors: &(A::Tensors, B::Tensors, C::Tensors), grad_map: &HashMap<usize, Tensor>, ) -> (A::Gradient, B::Gradient, C::Gradient)
fn gv_grad_map( tensors: &(A::Tensors, B::Tensors, C::Tensors), grad: (A::Gradient, B::Gradient, C::Gradient), out: &mut HashMap<usize, Tensor>, )
Source§impl<A, B, C, D> GenericValue<Tuple<(A, B, C, D)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient)> for (A, B, C, D)
impl<A, B, C, D> GenericValue<Tuple<(A, B, C, D)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient)> for (A, B, C, D)
fn gv_tensors(&self) -> (A::Tensors, B::Tensors, C::Tensors, D::Tensors)
fn gv_grad( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors), grad_map: &HashMap<usize, Tensor>, ) -> (A::Gradient, B::Gradient, C::Gradient, D::Gradient)
fn gv_grad_map( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors), grad: (A::Gradient, B::Gradient, C::Gradient, D::Gradient), out: &mut HashMap<usize, Tensor>, )
Source§impl<A, B, C, D, E> GenericValue<Tuple<(A, B, C, D, E)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient)> for (A, B, C, D, E)
impl<A, B, C, D, E> GenericValue<Tuple<(A, B, C, D, E)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient)> for (A, B, C, D, E)
fn gv_tensors( &self, ) -> (A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors)
fn gv_grad( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors), grad_map: &HashMap<usize, Tensor>, ) -> (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient)
fn gv_grad_map( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors), grad: (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient), out: &mut HashMap<usize, Tensor>, )
Source§impl<A, B, C, D, E, F> GenericValue<Tuple<(A, B, C, D, E, F)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient)> for (A, B, C, D, E, F)
impl<A, B, C, D, E, F> GenericValue<Tuple<(A, B, C, D, E, F)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient)> for (A, B, C, D, E, F)
fn gv_tensors( &self, ) -> (A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors)
fn gv_grad( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors), grad_map: &HashMap<usize, Tensor>, ) -> (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient)
fn gv_grad_map( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors), grad: (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient), out: &mut HashMap<usize, Tensor>, )
Source§impl<A, B, C, D, E, F, G> GenericValue<Tuple<(A, B, C, D, E, F, G)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors, <G as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient, <G as ValueSpec>::Gradient)> for (A, B, C, D, E, F, G)
impl<A, B, C, D, E, F, G> GenericValue<Tuple<(A, B, C, D, E, F, G)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors, <G as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient, <G as ValueSpec>::Gradient)> for (A, B, C, D, E, F, G)
fn gv_tensors( &self, ) -> (A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors)
fn gv_grad( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors), grad_map: &HashMap<usize, Tensor>, ) -> (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient, G::Gradient)
fn gv_grad_map( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors), grad: (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient, G::Gradient), out: &mut HashMap<usize, Tensor>, )
Source§impl<A, B, C, D, E, F, G, H> GenericValue<Tuple<(A, B, C, D, E, F, G, H)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors, <G as ValueSpec>::Tensors, <H as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient, <G as ValueSpec>::Gradient, <H as ValueSpec>::Gradient)> for (A, B, C, D, E, F, G, H)
impl<A, B, C, D, E, F, G, H> GenericValue<Tuple<(A, B, C, D, E, F, G, H)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors, <G as ValueSpec>::Tensors, <H as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient, <G as ValueSpec>::Gradient, <H as ValueSpec>::Gradient)> for (A, B, C, D, E, F, G, H)
fn gv_tensors( &self, ) -> (A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors)
fn gv_grad( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors), grad_map: &HashMap<usize, Tensor>, ) -> (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient, G::Gradient, H::Gradient)
fn gv_grad_map( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors), grad: (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient, G::Gradient, H::Gradient), out: &mut HashMap<usize, Tensor>, )
Source§impl<A, B, C, D, E, F, G, H, I> GenericValue<Tuple<(A, B, C, D, E, F, G, H, I)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors, <G as ValueSpec>::Tensors, <H as ValueSpec>::Tensors, <I as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient, <G as ValueSpec>::Gradient, <H as ValueSpec>::Gradient, <I as ValueSpec>::Gradient)> for (A, B, C, D, E, F, G, H, I)
impl<A, B, C, D, E, F, G, H, I> GenericValue<Tuple<(A, B, C, D, E, F, G, H, I)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors, <G as ValueSpec>::Tensors, <H as ValueSpec>::Tensors, <I as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient, <G as ValueSpec>::Gradient, <H as ValueSpec>::Gradient, <I as ValueSpec>::Gradient)> for (A, B, C, D, E, F, G, H, I)
fn gv_tensors( &self, ) -> (A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors, I::Tensors)
fn gv_grad( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors, I::Tensors), grad_map: &HashMap<usize, Tensor>, ) -> (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient, G::Gradient, H::Gradient, I::Gradient)
fn gv_grad_map( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors, I::Tensors), grad: (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient, G::Gradient, H::Gradient, I::Gradient), out: &mut HashMap<usize, Tensor>, )
Source§impl<A, B, C, D, E, F, G, H, I, J> GenericValue<Tuple<(A, B, C, D, E, F, G, H, I, J)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors, <G as ValueSpec>::Tensors, <H as ValueSpec>::Tensors, <I as ValueSpec>::Tensors, <J as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient, <G as ValueSpec>::Gradient, <H as ValueSpec>::Gradient, <I as ValueSpec>::Gradient, <J as ValueSpec>::Gradient)> for (A, B, C, D, E, F, G, H, I, J)
impl<A, B, C, D, E, F, G, H, I, J> GenericValue<Tuple<(A, B, C, D, E, F, G, H, I, J)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors, <G as ValueSpec>::Tensors, <H as ValueSpec>::Tensors, <I as ValueSpec>::Tensors, <J as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient, <G as ValueSpec>::Gradient, <H as ValueSpec>::Gradient, <I as ValueSpec>::Gradient, <J as ValueSpec>::Gradient)> for (A, B, C, D, E, F, G, H, I, J)
fn gv_tensors( &self, ) -> (A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors, I::Tensors, J::Tensors)
fn gv_grad( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors, I::Tensors, J::Tensors), grad_map: &HashMap<usize, Tensor>, ) -> (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient, G::Gradient, H::Gradient, I::Gradient, J::Gradient)
fn gv_grad_map( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors, I::Tensors, J::Tensors), grad: (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient, G::Gradient, H::Gradient, I::Gradient, J::Gradient), out: &mut HashMap<usize, Tensor>, )
Source§impl<A, B, C, D, E, F, G, H, I, J, K> GenericValue<Tuple<(A, B, C, D, E, F, G, H, I, J, K)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors, <G as ValueSpec>::Tensors, <H as ValueSpec>::Tensors, <I as ValueSpec>::Tensors, <J as ValueSpec>::Tensors, <K as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient, <G as ValueSpec>::Gradient, <H as ValueSpec>::Gradient, <I as ValueSpec>::Gradient, <J as ValueSpec>::Gradient, <K as ValueSpec>::Gradient)> for (A, B, C, D, E, F, G, H, I, J, K)
impl<A, B, C, D, E, F, G, H, I, J, K> GenericValue<Tuple<(A, B, C, D, E, F, G, H, I, J, K)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors, <G as ValueSpec>::Tensors, <H as ValueSpec>::Tensors, <I as ValueSpec>::Tensors, <J as ValueSpec>::Tensors, <K as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient, <G as ValueSpec>::Gradient, <H as ValueSpec>::Gradient, <I as ValueSpec>::Gradient, <J as ValueSpec>::Gradient, <K as ValueSpec>::Gradient)> for (A, B, C, D, E, F, G, H, I, J, K)
fn gv_tensors( &self, ) -> (A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors, I::Tensors, J::Tensors, K::Tensors)
fn gv_grad( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors, I::Tensors, J::Tensors, K::Tensors), grad_map: &HashMap<usize, Tensor>, ) -> (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient, G::Gradient, H::Gradient, I::Gradient, J::Gradient, K::Gradient)
fn gv_grad_map( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors, I::Tensors, J::Tensors, K::Tensors), grad: (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient, G::Gradient, H::Gradient, I::Gradient, J::Gradient, K::Gradient), out: &mut HashMap<usize, Tensor>, )
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L> GenericValue<Tuple<(A, B, C, D, E, F, G, H, I, J, K, L)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors, <G as ValueSpec>::Tensors, <H as ValueSpec>::Tensors, <I as ValueSpec>::Tensors, <J as ValueSpec>::Tensors, <K as ValueSpec>::Tensors, <L as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient, <G as ValueSpec>::Gradient, <H as ValueSpec>::Gradient, <I as ValueSpec>::Gradient, <J as ValueSpec>::Gradient, <K as ValueSpec>::Gradient, <L as ValueSpec>::Gradient)> for (A, B, C, D, E, F, G, H, I, J, K, L)
impl<A, B, C, D, E, F, G, H, I, J, K, L> GenericValue<Tuple<(A, B, C, D, E, F, G, H, I, J, K, L)>, (<A as ValueSpec>::Tensors, <B as ValueSpec>::Tensors, <C as ValueSpec>::Tensors, <D as ValueSpec>::Tensors, <E as ValueSpec>::Tensors, <F as ValueSpec>::Tensors, <G as ValueSpec>::Tensors, <H as ValueSpec>::Tensors, <I as ValueSpec>::Tensors, <J as ValueSpec>::Tensors, <K as ValueSpec>::Tensors, <L as ValueSpec>::Tensors), (<A as ValueSpec>::Gradient, <B as ValueSpec>::Gradient, <C as ValueSpec>::Gradient, <D as ValueSpec>::Gradient, <E as ValueSpec>::Gradient, <F as ValueSpec>::Gradient, <G as ValueSpec>::Gradient, <H as ValueSpec>::Gradient, <I as ValueSpec>::Gradient, <J as ValueSpec>::Gradient, <K as ValueSpec>::Gradient, <L as ValueSpec>::Gradient)> for (A, B, C, D, E, F, G, H, I, J, K, L)
fn gv_tensors( &self, ) -> (A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors, I::Tensors, J::Tensors, K::Tensors, L::Tensors)
fn gv_grad( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors, I::Tensors, J::Tensors, K::Tensors, L::Tensors), grad_map: &HashMap<usize, Tensor>, ) -> (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient, G::Gradient, H::Gradient, I::Gradient, J::Gradient, K::Gradient, L::Gradient)
fn gv_grad_map( tensors: &(A::Tensors, B::Tensors, C::Tensors, D::Tensors, E::Tensors, F::Tensors, G::Tensors, H::Tensors, I::Tensors, J::Tensors, K::Tensors, L::Tensors), grad: (A::Gradient, B::Gradient, C::Gradient, D::Gradient, E::Gradient, F::Gradient, G::Gradient, H::Gradient, I::Gradient, J::Gradient, K::Gradient, L::Gradient), out: &mut HashMap<usize, Tensor>, )
Source§impl<'a, A, T, G, X> GenericValue<Tuple<A>, T, G> for &'a Xwhere
X: GenericValue<Tuple<A>, T, G>,
impl<'a, A, T, G, X> GenericValue<Tuple<A>, T, G> for &'a Xwhere
X: GenericValue<Tuple<A>, T, G>,
impl<T: Copy> Copy for Tuple<T>
Auto Trait Implementations§
impl<T> Freeze for Tuple<T>where
T: Freeze,
impl<T> RefUnwindSafe for Tuple<T>where
T: RefUnwindSafe,
impl<T> Send for Tuple<T>where
T: Send,
impl<T> Sync for Tuple<T>where
T: Sync,
impl<T> Unpin for Tuple<T>where
T: Unpin,
impl<T> UnwindSafe for Tuple<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T, M> ApplyModule<M> for Twhere
M: Module<Input = T>,
impl<T, M> ApplyModule<M> for Twhere
M: Module<Input = T>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more