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

Method apply

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

Source from the content-addressed store, hash-verified

201}
202
203mx::array SuppressBlank::apply(const mx::array &Logits,
204 const mx::array &Tokens) {
205 if (Tokens.shape(1) == SampleBegin) {
206 return Logits + Mask;
207 }
208 return Logits;
209}
210
211// SuppressTokens implementation
212SuppressTokens::SuppressTokens(const std::vector<int> &SuppressTokens,

Callers 1

mainLoopMethod · 0.45

Calls 11

takeFunction · 0.85
getNoTimestampsMethod · 0.80
resizeMethod · 0.80
getTimestampBeginMethod · 0.80
getEotMethod · 0.80
backMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected