MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / encode

Method encode

python/cpp/whisper.cc:26–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>>>

Calls 1

getMethod · 0.45