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

Method encode

python/cpp/wav2vec2.cc:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 using ReplicaPoolHelper::ReplicaPoolHelper;
13
14 StorageView encode(const StorageView& features, const bool to_cpu) {
15 std::shared_lock lock(_mutex);
16 assert_model_is_ready();
17 return _pool->encode(features, to_cpu).get();
18 }
19 };
20
21

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected