Some checks failed
Linux Build / Linux cpu (push) Has been cancelled
Linux Build / Linux cpu-clang (push) Has been cancelled
Linux Build / Linux vulkan (push) Has been cancelled
mac-build / macOS CPU (push) Has been cancelled
Nix Build / Nix (cpu) (push) Has been cancelled
Nix Build / Nix (vulkan) (push) Has been cancelled
windows-build / Windows CPU (push) Has been cancelled
20 lines
566 B
C++
20 lines
566 B
C++
#pragma once
|
|
|
|
#include "engine/framework/modules/speech_encoders/wav2vec2_bert_encoder.h"
|
|
|
|
namespace engine::models::sidon {
|
|
|
|
class SidonRuntime {
|
|
public:
|
|
SidonRuntime(std::shared_ptr<const assets::TensorSource> source, core::ExecutionContext & execution);
|
|
~SidonRuntime();
|
|
|
|
modules::Wav2Vec2BertEncoderOutput encode(const modules::Wav2Vec2BertEncoderInput & input);
|
|
std::vector<float> decode(const std::vector<float> & hidden, int64_t frames);
|
|
|
|
private:
|
|
struct State;
|
|
std::unique_ptr<State> state_;
|
|
};
|
|
|
|
} // namespace engine::models::sidon
|