mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-12 11:56:36 +00:00
feat: add minimax-h3 support (#1854)
This commit is contained in:
1 parent
b4e67d1221
commit
ea7f0c87cf
26 files changed
+4293
-91
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#ifndef __SD_MODEL_VAE_AUDIO_VAE_HPP__
|
||||
#define __SD_MODEL_VAE_AUDIO_VAE_HPP__
|
||||
|
||||
#include "core/ggml_extend.hpp"
|
||||
|
||||
struct AudioVAERunner : public GGMLRunner {
|
||||
AudioVAERunner(ggml_backend_t backend,
|
||||
std::shared_ptr<RunnerWeightManager> weight_manager = nullptr)
|
||||
: GGMLRunner(backend, weight_manager) {}
|
||||
|
||||
virtual void get_param_tensors(std::map<std::string, ggml_tensor*>& tensors) = 0;
|
||||
virtual size_t get_params_mem_size() = 0;
|
||||
virtual std::string get_desc() = 0;
|
||||
virtual sd::Tensor<float> encode(int n_threads,
|
||||
const sd::Tensor<float>& waveform) {
|
||||
SD_UNUSED(n_threads);
|
||||
SD_UNUSED(waveform);
|
||||
return {};
|
||||
}
|
||||
virtual sd::Tensor<float> decode(int n_threads,
|
||||
const sd::Tensor<float>& latent_tensor) = 0;
|
||||
virtual int input_sample_rate() const {
|
||||
return output_sample_rate();
|
||||
}
|
||||
virtual int output_sample_rate() const = 0;
|
||||
};
|
||||
|
||||
#endif // __SD_MODEL_VAE_AUDIO_VAE_HPP__
|
||||
Reference in new issue
Block a user