[][src]Crate tension

Modules

host_device

Host and device profile. Import all from it if you are planning to use both host-side and device-side tensors.

host_only

Host-only profile. Import all from it if you are planning to use only host-side tensors.

prelude

Structs

DeviceBuffer

Buffer that stores data on device. Wrapper over OpenCL buffer.

DeviceLocation

Buffer location. For now it's simply the wrapper around ocl::Queue, but it could be changed in future.

DeviceTensor

Tensor structure. It consists of a contiguous one-dimensional array and a shape. Tensor tries to reuse resources as long as possible and implements copy-on-write mechanism.

HostBuffer

Buffer that stores data on the host. Simply a wrapper around Vec.

HostTensor

Tensor structure. It consists of a contiguous one-dimensional array and a shape. Tensor tries to reuse resources as long as possible and implements copy-on-write mechanism.

Range

Struture representing range for one dimension for tensor slicing operation.

Enums

Index

Index for one dimension for tensor slicing operaion.

Traits

Float

Wrapper for num_traits::Float.

IdentInterop

Type which representation remains the same for both host and device.

Interop

Types that can be transformed from host representation to device one and back.

Num

Wrapper for num_traits::Num.

One

Analog of num_traits::One but also implemented for bool type.

Prm

Type that could be put in tensor.

TensorTrait
Zero

Analog of num_traits::Zero but also implemented for bool type.