ApplyTimestampRules implementation
| 228 | |
| 229 | // ApplyTimestampRules implementation |
| 230 | ApplyTimestampRules::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 | |
| 238 | mx::array ApplyTimestampRules::apply(const mx::array &Logits, |
| 239 | const mx::array &Tokens) { |
nothing calls this directly
no outgoing calls
no test coverage detected