| 24 | } |
| 25 | |
| 26 | StorageView encode(const StorageView& features, const bool to_cpu) { |
| 27 | return _pool->encode(features, to_cpu).get(); |
| 28 | } |
| 29 | |
| 30 | std::variant<std::vector<models::WhisperGenerationResult>, |
| 31 | std::vector<AsyncResult<models::WhisperGenerationResult>>> |