fix(cuda+csm): P0 rtx-backend-cuda compile fix + P2 rtx-csm clippy cleanup (#9)

Co-authored-by: Omar Sobh <[email protected]>
Co-committed-by: Omar Sobh <[email protected]>
This commit is contained in:
Omar Sobh
2026-04-30 05:24:58 +00:00
committed by redclawsystems
parent 8045ba79d4
commit 6a03aeba61
24 changed files with 68 additions and 48 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ impl Module for PosConv {
let h = xs_bct.apply(&self.conv)?;
// SamePad strips 1 trailing frame because kernel=128 is even.
let out_len = h.dim(D::Minus1)?;
let h = if self.kernel % 2 == 0 && out_len > in_len {
let h = if self.kernel.is_multiple_of(2) && out_len > in_len {
h.narrow(D::Minus1, 0, in_len)?
} else {
h