pub trait BorrowTensor<'a, Dtype> {
    type Output;

    // Required method
    fn create_borrowed_tensor(
        shape: TensorShape,
        data: &'a TensorStorage<Dtype>
    ) -> Self::Output;
}

Required Associated Types§

Required Methods§

source

fn create_borrowed_tensor( shape: TensorShape, data: &'a TensorStorage<Dtype> ) -> Self::Output

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, Dtype: 'a> BorrowTensor<'a, Dtype> for EphemeralView<'_, Dtype>

§

type Output = EphemeralView<'a, Dtype>

source§

impl<'a, Dtype: 'a> BorrowTensor<'a, Dtype> for Matrix<Dtype>

§

type Output = MatrixView<'a, Dtype>