TensorCommand

Trait TensorCommand 

Source
pub trait TensorCommand<T: Scalar, K: Kind> {
    // Required methods
    fn copy_tensor(
        &mut self,
        source: &TensorGpu<T, K>,
        destination: &TensorGpu<T, K>,
    ) -> Result<(), TensorError>;
    fn copy_tensor_batch(
        &mut self,
        source: &TensorGpu<T, K>,
        destination: &TensorGpu<T, K>,
        from: usize,
        to: usize,
    ) -> Result<(), TensorError>;
}

Required Methods§

Source

fn copy_tensor( &mut self, source: &TensorGpu<T, K>, destination: &TensorGpu<T, K>, ) -> Result<(), TensorError>

Source

fn copy_tensor_batch( &mut self, source: &TensorGpu<T, K>, destination: &TensorGpu<T, K>, from: usize, to: usize, ) -> Result<(), TensorError>

Implementations on Foreign Types§

Source§

impl<T: Scalar, K: Kind> TensorCommand<T, K> for CommandEncoder

Source§

fn copy_tensor( &mut self, source: &TensorGpu<T, K>, destination: &TensorGpu<T, K>, ) -> Result<(), TensorError>

Source§

fn copy_tensor_batch( &mut self, source: &TensorGpu<T, K>, destination: &TensorGpu<T, K>, from: usize, to: usize, ) -> Result<(), TensorError>

Implementors§