summaryrefslogtreecommitdiff
path: root/candle-core/src/cuda_backend.rs
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-07-11 09:33:59 +0100
committerGitHub <noreply@github.com>2023-07-11 09:33:59 +0100
commit674eb35e101f08e02e1a53d22b2cbe614063d699 (patch)
tree4af310f6fca476ee968a146322ad4aa2e3470185 /candle-core/src/cuda_backend.rs
parentae79c00e48089d889f900b4c05f90a1201e610c6 (diff)
downloadcandle-674eb35e101f08e02e1a53d22b2cbe614063d699.tar.gz
candle-674eb35e101f08e02e1a53d22b2cbe614063d699.tar.bz2
candle-674eb35e101f08e02e1a53d22b2cbe614063d699.zip
Remove some dead-code pragmas. (#137)
Diffstat (limited to 'candle-core/src/cuda_backend.rs')
-rw-r--r--candle-core/src/cuda_backend.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/candle-core/src/cuda_backend.rs b/candle-core/src/cuda_backend.rs
index 9fc4ceca..c2d01a07 100644
--- a/candle-core/src/cuda_backend.rs
+++ b/candle-core/src/cuda_backend.rs
@@ -470,7 +470,6 @@ impl Map1 for Elu {
}
}
-#[allow(dead_code)]
struct Sum<'a>(&'a [usize]);
impl<'a> Map1 for Sum<'a> {
fn f<T: DeviceRepr + WithDType + ValidAsZeroBits>(
@@ -507,7 +506,6 @@ impl<'a> Map1 for Sum<'a> {
}
}
-#[allow(dead_code)]
struct FastSum<'a>(&'a [usize]);
impl<'a> Map1 for FastSum<'a> {
fn f<T: DeviceRepr + WithDType + ValidAsZeroBits>(