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
24 lines
609 B
C++
24 lines
609 B
C++
#pragma once
|
|
|
|
#include "engine/framework/core/module.h"
|
|
|
|
namespace engine::sampling {
|
|
|
|
struct VADGateConfig {
|
|
float threshold = 0.0f;
|
|
};
|
|
|
|
class VADGateModule {
|
|
public:
|
|
explicit VADGateModule(VADGateConfig config);
|
|
|
|
const VADGateConfig & config() const noexcept;
|
|
const engine::core::ModuleSchema & schema() const noexcept;
|
|
engine::core::TensorValue build(engine::core::ModuleBuildContext & ctx, const engine::core::TensorValue & energy) const;
|
|
static const engine::core::ModuleSchema & static_schema() noexcept;
|
|
|
|
private:
|
|
VADGateConfig config_;
|
|
};
|
|
|
|
} // namespace engine::sampling
|