Struct parenchyma::Native [] [src]

pub struct Native;

The native framework

Example

use parenchyma::{Backend, Native, SharedTensor};

let ref host: Backend = Backend::new::<Native>().unwrap();

let sh: SharedTensor = SharedTensor::with(host, [2, 2], vec![1., 2., 3., 4.]).unwrap();

let tensor = sh.read(host).unwrap();

println!("{:#?}", tensor);

Trait Implementations

impl Debug for Native
[src]

Formats the value using the given formatter.

impl Framework for Native
[src]

The name of the framework. Read more

Returns the cached and available hardware.

impl<X> BoxContext<X> for Native where X: ExtensionPackage,
        NativeContext<X>: Unsize<X::Extension>
[src]

Create a context from a selection of hardware devices and then wrap it in a box.

impl TryDefault for Native
[src]

The type returned in the event of an error.

Returns the default value for a type.