summaryrefslogtreecommitdiff
path: root/candle-examples/src/imagenet.rs
diff options
context:
space:
mode:
authorAnubhab Bandyopadhyay <4890833+AnubhabB@users.noreply.github.com>2024-11-29 03:30:21 +0530
committerGitHub <noreply@github.com>2024-11-28 23:00:21 +0100
commit54e7fc3c97a6d40e459cee4d4bf2eff5c82390da (patch)
tree8ef4da0e255884de729b8c70fdf642b7c807d631 /candle-examples/src/imagenet.rs
parent23ed8a9ded155df7b5961d6a5ae12b4e8096a9c2 (diff)
downloadcandle-54e7fc3c97a6d40e459cee4d4bf2eff5c82390da.tar.gz
candle-54e7fc3c97a6d40e459cee4d4bf2eff5c82390da.tar.bz2
candle-54e7fc3c97a6d40e459cee4d4bf2eff5c82390da.zip
Lint fixes introduced with Rust 1.83 (#2646)
* Fixes for lint errors introduced with Rust 1.83 * rustfmt * Fix more lints. --------- Co-authored-by: Laurent <laurent.mazare@gmail.com>
Diffstat (limited to 'candle-examples/src/imagenet.rs')
-rw-r--r--candle-examples/src/imagenet.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/candle-examples/src/imagenet.rs b/candle-examples/src/imagenet.rs
index a3b12423..ca77b5df 100644
--- a/candle-examples/src/imagenet.rs
+++ b/candle-examples/src/imagenet.rs
@@ -6,7 +6,6 @@ pub const IMAGENET_STD: [f32; 3] = [0.229f32, 0.224, 0.225];
/// Loads an image from disk using the image crate at the requested resolution,
/// using the given std and mean parameters.
/// This returns a tensor with shape (3, res, res). imagenet normalization is applied.
-
pub fn load_image_with_std_mean<P: AsRef<std::path::Path>>(
p: P,
res: usize,