pub trait ToTensorHandle<'a> {
    fn to_handle(&self, ctx: &'a Context) -> Result<TensorHandle<'a>>;
}
Expand description

A helper trait to convert a Tensor or some other types into a TensorHandle for use in eager execution.

Required Methods

Convert a Tensor or values into a new TensorHandle.

Implementations on Foreign Types

Convert any ndarray::ArrayBase type into a tensorflow::Tensor

Implementors