Skip to content

Commit

Permalink
docs: remove kernel example
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Jan 24, 2025
1 parent 06fe321 commit 49cd7be
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 94 deletions.
4 changes: 0 additions & 4 deletions docs/src/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,6 @@ export default defineConfig({
text: "Distributed Training",
link: "/manual/distributed_utils",
},
{
text: "Lux In GPU Kernels",
link: "/manual/nn_inside_gpu_kernels",
},
],
},
],
Expand Down
89 changes: 0 additions & 89 deletions docs/src/manual/nn_inside_gpu_kernels.md

This file was deleted.

2 changes: 1 addition & 1 deletion lib/LuxLib/src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ expand_batchdim(x::SVector{L, T}) where {L, T} = SMatrix{L, 1, T}(x)

function CRC.rrule(::typeof(expand_batchdim), x::AbstractMatrix)
∇expand_batchdim = @closure Δ -> begin
return ∂∅, CRC.@thunk(CRC.ProjectTo(x)(proj_x(view(recursive_unthunk(Δ), :, :, 1))))
return ∂∅, CRC.@thunk(CRC.ProjectTo(x)(view(recursive_unthunk(Δ), :, :, 1)))
end
return expand_batchdim(x), ∇expand_batchdim
end
Expand Down

0 comments on commit 49cd7be

Please sign in to comment.