skoro v0.0.0

Crates

skoro-tensor

The layer over burn: tensors at an explicit precision on a supported device.

skoro-tensor is the one place skoro meets burn. It holds the tensor shapes the rest of skoro computes with: Points, a batch of continuous values laid out as rows of a space’s storage; Frame, a batch of tangent or cotangent frames, [rows, dimension, columns]; Integers, a batch of discrete values; and Value, either of the first and last. Each is made for a Target, a device and a precision checked once when the target is made: burn’s Flex device on the CPU, or a wgpu device, in single or double precision, never one wrapped for burn’s own automatic differentiation. Every float tensor in a wrapper has its target’s precision by construction, since nothing makes one without naming the target.

It also holds HostValue, a value on the host: what a model stores for a constant and what a query observes, either shared by every row of a batch or given row by row, and loaded onto a target when a program runs. The crate re-exports burn’s tensor module, for the kernels a later crate writes for an operation of its own.

Its broadcast and reshape stand for burn’s expand and reshape, which the rest of skoro calls through them: where a shape has a dimension of zero, which expand refuses and reshape reads as the source’s size, each gives the tensor of no entries of that shape, so that a value of no entries, a factor’s residual of no components among them, runs through every pass.

The point of the layer is containment. A burn upgrade touches this crate and the kernels, and nothing else; and the precision a computation runs at is chosen by each query’s target, not fixed by the model.

Reading order

The modules in an order that uses as little as possible before it is read, computed from the sources when the site was built. A dashed arc marks a module's use of one that comes later, with what it uses named beside it.

uses an earlier module uses a later module a cycle (2 modules)
The order in which to read skoro-tensorhost uses error: TensorErrorhost uses target: Targetvalue uses error: TensorErrorerror uses target: Precisionhost uses value: Integers, Points, Value, broadcast()target uses error: TensorErrorvalue uses target: Target1errorPrecision2target3value4host5crate

Hover over or tap a module to see everything it uses and everything that uses it.

1 use of a later module, naming 1 item: as few as any order allows.
ModuleUses, before it is readFrom
errorPrecisiontarget