public interface WhisperLogitsFilterCallback
extends com.sun.jna.Callback
| 限定符和类型 | 方法和说明 |
|---|---|
void |
callback(com.sun.jna.Pointer ctx,
com.sun.jna.Pointer state,
WhisperTokenData[] tokens,
int n_tokens,
float[] logits,
com.sun.jna.Pointer user_data)
Callback method to filter logits.
|
void callback(com.sun.jna.Pointer ctx,
com.sun.jna.Pointer state,
WhisperTokenData[] tokens,
int n_tokens,
float[] logits,
com.sun.jna.Pointer user_data)
ctx - The whisper context.state - The whisper state.tokens - The array of whisper_token_data.n_tokens - The number of tokens.logits - The array of logits.user_data - User data.Copyright © 2023. All rights reserved.