Skip to content

Commit d24407a

Browse files
authored
fix ci (#28)
1 parent c06a8e9 commit d24407a

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

src/models/unet_2d_blocks.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,6 @@ pub struct CrossAttnDownBlock2D<B: Backend> {
567567

568568
impl CrossAttnDownBlock2DConfig {
569569
pub fn init<B: Backend>(&self, device: &B::Device) -> CrossAttnDownBlock2D<B> {
570-
let mut downblock = self.downblock;
571-
downblock.in_channels = self.in_channels;
572-
downblock.out_channels = self.out_channels;
573-
downblock.temb_channels = self.temb_channels;
574570
let downblock = self.downblock.init(device);
575571

576572
let attentions = (0..self.downblock.n_layers)

src/schedulers/ddim.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
use alloc::vec::Vec;
1212
use burn::tensor::{backend::Backend, Tensor};
1313

14-
use super::{betas_for_alpha_bar, BetaSchedule, PredictionType};
15-
1614
#[cfg(not(feature = "std"))]
1715
#[allow(unused_imports)]
1816
use num_traits::Float;
1917

18+
use super::{betas_for_alpha_bar, BetaSchedule, PredictionType};
19+
2020
/// The configuration for the DDIM scheduler.
2121
#[derive(Debug, Clone, Copy)]
2222
pub struct DDIMSchedulerConfig {

src/schedulers/dpmsolver_multistep.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ use alloc::vec;
1111
use alloc::vec::Vec;
1212
use burn::tensor::{backend::Backend, Tensor};
1313

14-
use super::{betas_for_alpha_bar, BetaSchedule, PredictionType};
15-
1614
#[cfg(not(feature = "std"))]
1715
#[allow(unused_imports)]
1816
use num_traits::Float;
1917

18+
use super::{betas_for_alpha_bar, BetaSchedule, PredictionType};
19+
2020
/// The algorithm type for the solver.
2121
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq)]
2222
pub enum DPMSolverAlgorithmType {

src/schedulers/euler_discrete.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ use alloc::vec;
88
use alloc::vec::Vec;
99
use burn::tensor::{backend::Backend, Distribution, Tensor};
1010

11+
#[cfg(not(feature = "std"))]
12+
#[allow(unused_imports)]
13+
use num_traits::Float;
14+
1115
use super::{BetaSchedule, PredictionType};
1216

1317
/// Configuration for the Euler Discrete Scheduler.

src/schedulers/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ use alloc::vec::Vec;
77
use burn::tensor::{backend::Backend, Tensor};
88
use core::f64::consts::FRAC_PI_2;
99

10+
#[cfg(not(feature = "std"))]
11+
#[allow(unused_imports)]
12+
use num_traits::Float;
13+
1014
pub mod ddim;
1115
pub mod ddpm;
1216
pub mod dpmsolver_multistep;

0 commit comments

Comments
 (0)