MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / ApplyTimestampRules

Method ApplyTimestampRules

plugins/wasi_nn/MLX/model/whisper/decoding.cpp:230–236  ·  view source on GitHub ↗

ApplyTimestampRules implementation

Source from the content-addressed store, hash-verified

228
229// ApplyTimestampRules implementation
230ApplyTimestampRules::ApplyTimestampRules(
231 std::shared_ptr<whisper::Tokenizer> Tokenizer, int SampleBegin,
232 std::optional<int> MaxInitialTimestampIndex)
233 : Tokenizer(Tokenizer), SampleBegin(SampleBegin),
234 MaxInitialTimestampIndex(MaxInitialTimestampIndex) {
235 Name = "ApplyTimestampRules";
236}
237
238mx::array ApplyTimestampRules::apply(const mx::array &Logits,
239 const mx::array &Tokens) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected