chore: add .clang-format

This commit is contained in:
leejet committed 2023-11-19 19:35:33 +08:00
1 parent 64f6002457
commit 176a00b606
7 files changed
+585 -571

No files matched your search

+6 -6
View File
@@ -38,15 +38,15 @@ enum Schedule {
class StableDiffusionGGML;
class StableDiffusion {
private:
private:
std::shared_ptr<StableDiffusionGGML> sd;
public:
StableDiffusion(int n_threads = -1,
bool vae_decode_only = false,
public:
StableDiffusion(int n_threads = -1,
bool vae_decode_only = false,
bool free_params_immediately = false,
std::string lora_model_dir = "",
RNGType rng_type = STD_DEFAULT_RNG);
std::string lora_model_dir = "",
RNGType rng_type = STD_DEFAULT_RNG);
bool load_from_file(const std::string& file_path, Schedule d = DEFAULT);
std::vector<uint8_t> txt2img(
std::string prompt,