WolfDefenderOnnxBackend class abstract interface

Runs the Wolf Defender graph.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(Int32List ids) → Future<Float32List>
The two logits, benign and injection, of ids: <bos>, at most 2046 tokens, and <eos>. The graph takes int64; web has no Int64List, so each backend converts.
toString() → String
A string representation of this object.
inherited

Operators

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