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
14 lines
420 B
C++
14 lines
420 B
C++
#pragma once
|
|
|
|
#include "engine/framework/core/module.h"
|
|
|
|
namespace engine::sampling {
|
|
|
|
class GreedyDecodeModule {
|
|
public:
|
|
const engine::core::ModuleSchema & schema() const noexcept;
|
|
engine::core::TensorValue build(engine::core::ModuleBuildContext & ctx, const engine::core::TensorValue & logits) const;
|
|
static const engine::core::ModuleSchema & static_schema() noexcept;
|
|
};
|
|
|
|
} // namespace engine::sampling
|