Linear class final

Constructors

Linear.from(Float32List w, int rows, int cols, WeightFormat format)
Wraps a row-major rows, cols matrix, quantized to format unless that is f32.
factory
Linear.native(NativeMatrix m)
Wraps a native matrix that already exists (a mapped cache entry).
factory

Properties

cols → int
final
hashCode → int
The hash code for this object.
no setterinherited
native → NativeMatrix?
The native matrix behind this product, if it has one.
no setter
rows → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(Float32List xs, Float32List ys, int n) → void
yst * rows + r = (W xst)r for t < n, xs as n, cols. One vector uses a GEMV kernel, a batch a GEMM kernel.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited