Crate tensorgraph_sys

Source

Modules§

boxed
Provides implementation of a Device Box
device
Provides trait defintion and implementations of a Device
ptr
Provides standard pointer types

Structs§

Vec
Same as std::vec::Vec but using device allocators rather than host allocators. This allows you to have owned buffers on GPUs and CPUs using a single data structure.

Traits§

View
Represents a type that can be ‘viewed’ (derefed). Mimics the impl for std::ops::Deref but makes use of GAT’s in order to provide non & refs. Useful for things like tensor views.
ViewMut
Represents a type that can be mutably ‘viewed’ (derefed). Mimics the impl for std::ops::DerefMut but makes use of GAT’s in order to provide non &mut refs. Useful for things like tensor views.
Zero
This trait signifies that [0; size_of::<T>] is transmutable to a valid T safely, and that T fits some concept of ‘zero’.

Type Aliases§

DefaultVec
A Vec that uses the default allocator for the device