You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is intentional; extending Base.ndims would be type piracy. I don't see why it should be renamed; that's just how Julia's namespacing works? It's an internal utility function that has no impact outside of Adapt.jl
Thanks for merging. Yes that's how julia's namespace system works but it can be confusing when one is debugging errors. For example, I spent some time trying to reproduce the error above with Base.ndims until I realized it's actually caused by Adapt.ndims
maleadt
changed the title
Adapt.ndims doesn't overload Base.ndims
Rename Adapt.ndims for clarity
Nov 1, 2023
If this is intentional, then
Adapt.ndims
should be renamed to make it clear that it's separate fromBase.ndims
.Adapt.jl/src/wrappers.jl
Lines 123 to 132 in 73ee022
Further, I came across this bug which can be resolved by adding a method for
LinearAlgebra.Symmetric
.The text was updated successfully, but these errors were encountered: