GgufFile class final

Constructors

GgufFile.open(String path)
Maps and parses path. Needs the native kernels (for the mapping).
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, Object?>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tensors → Map<String, GgufTensor>
final

Methods

bytes(GgufTensor t) → Uint8List
close() → void
Releases the mapped GGUF after all tensor views have been consumed. The mapping is shared by path, so a second close must not give back another opener's reference.
f32(GgufTensor t) → Float32List
An F32 tensor's values, copied.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tensor(String name, GgufType type, List<int> dims) → GgufTensor
toString() → String
A string representation of this object.
inherited

Operators

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