From b6617074023edafefeb5df87072b2819df272bcd Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Thu, 19 Mar 2026 00:11:07 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20clippy=20ScalarValue::as=5Ff32=E2=86=92t?= =?UTF-8?q?o=5Ff32=5Fscalar=20+=20CI=20infra=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ScalarValue trait: as_f32() → to_f32_scalar() (clippy wrong_self_convention) - CI template: test-gate uses ci-builder (CUDA) instead of ci-builder-cpu - VPC: enabled DefaultRoutePropagation for gateway DHCP - PVCs: all set to Retain reclaim policy - Argo CLI: configured server mode for archived log retrieval Co-Authored-By: Claude Opus 4.6 (1M context) --- crates/ml-core/src/cuda_autograd/gpu_tensor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ml-core/src/cuda_autograd/gpu_tensor.rs b/crates/ml-core/src/cuda_autograd/gpu_tensor.rs index 34af82c82..1a208d374 100644 --- a/crates/ml-core/src/cuda_autograd/gpu_tensor.rs +++ b/crates/ml-core/src/cuda_autograd/gpu_tensor.rs @@ -34,19 +34,19 @@ fn raw_ptr_mut(slice: &mut CudaSlice, stream: &CudaStream) -> u64 { /// Helper trait for scalar values that can be converted to f32. pub trait ScalarValue { - fn as_f32(self) -> f32; + fn to_f32_scalar(self) -> f32; } impl ScalarValue for f32 { - fn as_f32(self) -> f32 { self } + fn to_f32_scalar(self) -> f32 { self } } impl ScalarValue for f64 { - fn as_f32(self) -> f32 { self as f32 } + fn to_f32_scalar(self) -> f32 { self as f32 } } impl ScalarValue for &[f32] { - fn as_f32(self) -> f32 { self.first().copied().unwrap_or(0.0) } + fn to_f32_scalar(self) -> f32 { self.first().copied().unwrap_or(0.0) } } /// A GPU-resident f32 tensor with shape information.