Trait dfdx::tensor::PutTape

source ·
pub trait PutTape<T> {
    type Output;

    // Required method
    fn put_tape(self, tape: T) -> Self::Output;
}
Expand description

Put a tape of type T into the tensor

Required Associated Types§

Required Methods§

source

fn put_tape(self, tape: T) -> Self::Output

let a: Tensor<Rank2<2, 3>, f32, _, NoneTape> = dev.zeros();
let a: Tensor<Rank2<2, 3>, f32, _, OwnedTape<f32, Cpu>> = a.put_tape(Default::default());

Implementors§

source§

impl<S: Shape, E: Unit, D: DeviceStorage, T> PutTape<T> for Tensor<S, E, D>

§

type Output = Tensor<S, E, D, T>