mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-08-05 09:40:41 -05:00
24 lines
710 B
C++
24 lines
710 B
C++
#ifndef __SD_BACKEND_FIT_H__
|
|
#define __SD_BACKEND_FIT_H__
|
|
|
|
#include <string>
|
|
|
|
#include "core/ggml_graph_cut.h"
|
|
#include "model_loader.h"
|
|
#include "stable-diffusion.h"
|
|
|
|
namespace sd::backend_fit {
|
|
|
|
bool derive_backend_specs(ModelLoader& loader,
|
|
ggml_type override_wtype,
|
|
sd::ggml_graph_cut::MaxVramAssignment& budgets,
|
|
std::string& runtime_spec,
|
|
std::string& params_spec);
|
|
|
|
bool prepare_vae_decode_retry_tiling(sd_tiling_params_t& tiling_params,
|
|
bool prefer_temporal_tiling);
|
|
|
|
} // namespace sd::backend_fit
|
|
|
|
#endif // __SD_BACKEND_FIT_H__
|