NativeWolfDefenderOnnxBackend class final
Runs Wolf Defender with ORT through FFI.
- Implemented types
Constructors
- NativeWolfDefenderOnnxBackend(String modelPath)
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> -
override
-
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.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited