Skip to content

Commit

Permalink
fix: device(NN) should only give warning once (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpuri3 authored Jan 2, 2025
1 parent 1a0c480 commit 222e173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LuxCore/ext/LuxCoreMLDataDevicesExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MLDataDevices.isleaf(::AbstractLuxLayer) = true
function Adapt.adapt_storage(::AbstractDevice, x::AbstractLuxLayer)
@warn "Lux layers are stateless and hence don't participate in device transfers. \
Apply this function on the parameters and states generated using \
`LuxCore.setup`."
`LuxCore.setup`." maxlog=1
return x
end

Expand Down

0 comments on commit 222e173

Please sign in to comment.