Skip to content

Commit

Permalink
fix CUDA test error
Browse files Browse the repository at this point in the history
  • Loading branch information
gRox167 committed Jan 24, 2025
1 parent 39b0176 commit e02fedb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/NNlibCUDAExt/sampling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ end
function ∇grid_sample_kernel!(n_elem, dx::AbstractArray{T, 5}, dgrid::AbstractArray{V, 5}, Δ::AbstractArray{T, 5}, input::AbstractArray{T, 5}, grid::AbstractArray{V, 5}, padding_mode) where {T,V}
index = (threadIdx().x - 1) + (blockIdx().x - 1) * blockDim().x
if index < n_elem
iW, iH, iC, _ = size(input)
iW, iH, iD, iC, _ = size(input)
_, gW, gH, gD, _ = size(grid)

Check warning on line 90 in ext/NNlibCUDAExt/sampling.jl

View check run for this annotation

Codecov / codecov/patch

ext/NNlibCUDAExt/sampling.jl#L86-L90

Added lines #L86 - L90 were not covered by tests

w = index % gW + 1
Expand Down

0 comments on commit e02fedb

Please sign in to comment.