[][src]Crate tension

Structs

DeviceBuffer

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

HostBuffer

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

Range

Struture representing range for one dimension for tensor slicing operation.

Tensor

Tensor structure. It consists of a contiguous one-dimensional array and a shape.

Enums

Buffer

Generic buffer that can be either host-side and device-side.

Error
Index

Index for one dimension for tensor slicing operaion.

Location

Memory location. Can be either host or some of devices.

Traits

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.

Zero

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