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:
committed by
redclawsystems
parent
8045ba79d4
commit
6a03aeba61
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user