TensorLibrary

Trait TensorLibrary 

Source
pub trait TensorLibrary<B: Backend>: 'static + Debug {
    // Required method
    fn query<'a>(
        &'a mut self,
        query: TensorLibraryQuery,
    ) -> Pin<Box<dyn Future<Output = Result<Option<DynTensor<B>>, TensorLibraryError>> + Send + 'a>>;
}

Required Methods§

Source

fn query<'a>( &'a mut self, query: TensorLibraryQuery, ) -> Pin<Box<dyn Future<Output = Result<Option<DynTensor<B>>, TensorLibraryError>> + Send + 'a>>

Query a tensor from the library.

Implementors§