Module leaf::util [] [src]

Provides common utility functions

Traits

Axpby

Extends IBlas with Axpby

LayerOps

Encapsulates all traits used in Layers.

SolverOps

Encapsulates all traits required by Solvers.

Functions

cast_vec_usize_to_i32

Casts a Vec to as Vec

native_backend

Create a simple native backend.

native_scalar

Create a Collenchyma SharedTensor for a scalar value.

write_batch_sample

Write the ith sample of a batch into a SharedTensor.

write_to_memory

Write into a native Collenchyma Memory.

write_to_memory_offset

Write into a native Collenchyma Memory with a offset.

Type Definitions

ArcLock

Shared Lock used for our tensors