(_name: String, ctx: &Context)
| 24 | #[async_trait] |
| 25 | impl Forwarder for VAE { |
| 26 | fn load(_name: String, ctx: &Context) -> anyhow::Result<Box<Self>> |
| 27 | where |
| 28 | Self: Sized, |
| 29 | { |
| 30 | let sd_config = get_sd_config(ctx)?; |
| 31 | |
| 32 | Self::load_model( |
| 33 | ctx.args.sd_args.vae.clone(), |
| 34 | ctx.args.sd_args.sd_version, |
| 35 | ctx.args.sd_args.use_f16, |
| 36 | &ctx.device, |
| 37 | ctx.dtype, |
| 38 | ctx.args.model.clone(), |
| 39 | &sd_config, |
| 40 | ) |
| 41 | } |
| 42 | |
| 43 | async fn forward( |
| 44 | &self, |
nothing calls this directly
no test coverage detected