run method

  1. @override
Future<Float32List> run(
  1. Int32List ids
)
override

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.

Implementation

@override
Future<Float32List> run(Int32List ids) async =>
    (await _runJs(_engineId.toJS, ids.toJS).toDart).toDart;