voice_audio_multi/include/engine/models/ace_step/diffusion.h
Fabio c36510c21e
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
Initial import: audio.cpp with Orange Pi documentation
2026-11-04 19:05:22 +01:00

34 lines
1 KiB
C++

#pragma once
#include "engine/framework/core/execution_context.h"
#include "engine/framework/core/attention_fallback.h"
#include "engine/models/ace_step/assets.h"
#include "engine/models/ace_step/dit_weights_runtime.h"
#include "engine/models/ace_step/types.h"
#include <memory>
namespace engine::models::ace_step {
class AceStepDiffusionRuntime {
public:
AceStepDiffusionRuntime(
std::shared_ptr<const AceStepAssets> assets,
core::ExecutionContext & execution,
std::shared_ptr<const AceStepDitWeightsRuntime> dit_weights_runtime,
size_t graph_arena_bytes = 256ull * 1024ull * 1024ull,
core::AttentionPreference attention = core::AttentionPreference::Auto);
~AceStepDiffusionRuntime();
AceStepLatents generate_latents(
const AceStepDiffusionConditioning & conditioning,
const AceStepGenerationOptions & options) const;
void release_graph_workspace() const;
private:
class Impl;
std::unique_ptr<Impl> impl_;
};
} // namespace engine::models::ace_step