diff --git a/candle-core/src/conv.rs b/candle-core/src/conv.rs index f92c05b2..8e987664 100644 --- a/candle-core/src/conv.rs +++ b/candle-core/src/conv.rs @@ -25,7 +25,6 @@ impl ParamsConv1D { } } -#[allow(unused)] #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub enum CudnnFwdAlgo { ImplicitGemm, @@ -51,7 +50,7 @@ pub struct ParamsConv2D { pub(crate) padding: usize, pub(crate) stride: usize, pub(crate) dilation: usize, - pub(crate) cudnn_fwd_algo: Option, + pub cudnn_fwd_algo: Option, } impl ParamsConv2D { diff --git a/candle-examples/examples/stable-diffusion/main.rs b/candle-examples/examples/stable-diffusion/main.rs index 74e816d4..d982a209 100644 --- a/candle-examples/examples/stable-diffusion/main.rs +++ b/candle-examples/examples/stable-diffusion/main.rs @@ -104,7 +104,6 @@ enum StableDiffusionVersion { Xl, } -#[allow(unused)] #[derive(Debug, Clone, Copy, PartialEq, Eq)] enum ModelFile { Tokenizer, diff --git a/candle-examples/examples/wuerstchen/main.rs b/candle-examples/examples/wuerstchen/main.rs index 6e973e79..54f02114 100644 --- a/candle-examples/examples/wuerstchen/main.rs +++ b/candle-examples/examples/wuerstchen/main.rs @@ -1,5 +1,3 @@ -#![allow(unused)] - #[cfg(feature = "accelerate")] extern crate accelerate_src; @@ -10,7 +8,7 @@ use candle_transformers::models::stable_diffusion; use candle_transformers::models::wuerstchen; use anyhow::{Error as E, Result}; -use candle::{DType, Device, IndexOp, Module, Tensor, D}; +use candle::{DType, Device, IndexOp, Tensor}; use clap::Parser; use tokenizers::Tokenizer; @@ -80,14 +78,6 @@ struct Args { /// The file specifying the tokenizer to used for prior tokenization. prior_tokenizer: Option, - /// The size of the sliced attention or 0 for automatic slicing (disabled by default) - #[arg(long)] - sliced_attention_size: Option, - - /// The number of steps to run the diffusion for. - #[arg(long, default_value_t = 30)] - n_steps: usize, - /// The number of samples to generate. #[arg(long, default_value_t = 1)] num_samples: i64, @@ -220,10 +210,8 @@ fn run(args: Args) -> Result<()> { cpu, height, width, - n_steps, tokenizer, final_image, - sliced_attention_size, num_samples, clip_weights, prior_weights, diff --git a/candle-wasm-examples/segment-anything/src/bin/m.rs b/candle-wasm-examples/segment-anything/src/bin/m.rs index 2be59adc..e550a32f 100644 --- a/candle-wasm-examples/segment-anything/src/bin/m.rs +++ b/candle-wasm-examples/segment-anything/src/bin/m.rs @@ -3,7 +3,6 @@ use candle_nn::VarBuilder; use candle_wasm_example_sam as sam; use wasm_bindgen::prelude::*; -#[allow(unused)] struct Embeddings { original_width: u32, original_height: u32, diff --git a/candle-wasm-examples/whisper/src/worker.rs b/candle-wasm-examples/whisper/src/worker.rs index 85272fe7..a8646e3d 100644 --- a/candle-wasm-examples/whisper/src/worker.rs +++ b/candle-wasm-examples/whisper/src/worker.rs @@ -84,7 +84,6 @@ pub struct Segment { pub dr: DecodingResult, } -#[allow(unused)] pub struct Decoder { model: Model, rng: rand::rngs::StdRng,