summaryrefslogtreecommitdiff
path: root/candle-core/tests/quantized_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'candle-core/tests/quantized_tests.rs')
-rw-r--r--candle-core/tests/quantized_tests.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/candle-core/tests/quantized_tests.rs b/candle-core/tests/quantized_tests.rs
index 5f7e4825..d767531a 100644
--- a/candle-core/tests/quantized_tests.rs
+++ b/candle-core/tests/quantized_tests.rs
@@ -231,10 +231,6 @@ fn quantize_q4_1(device: &Device) -> Result<()> {
}
fn quantize_q5_0(device: &Device) -> Result<()> {
- // TODO Enable this later when we enable cuda.
- if device.is_cuda() {
- return Ok(());
- }
let src = (0..32 * 4).map(|v| v as f32).collect::<Vec<_>>();
let src = Tensor::from_slice(&src, (32 * 4,), device)?;
let quant = quantized::QTensor::quantize(&src, GgmlDType::Q5_0)?;
@@ -261,10 +257,6 @@ fn quantize_q5_0(device: &Device) -> Result<()> {
}
fn quantize_q5_1(device: &Device) -> Result<()> {
- // TODO Enable this later when we enable cuda.
- if device.is_cuda() {
- return Ok(());
- }
let src = (0..32 * 4).map(|v| v as f32).collect::<Vec<_>>();
let src = Tensor::from_slice(&src, (32 * 4,), device)?;
let quant = quantized::QTensor::quantize(&src, GgmlDType::Q5_1)?;