The gradients aren’t null. LinearAlgebra.norm() can’t take nothing as an argument. Using LinearAlgebra.norm(::Nothing, p::Real = 2) = false, the norms of the gradients are calculated as expected.
The gradients aren’t null. LinearAlgebra.norm() can’t take nothing as an argument. Using LinearAlgebra.norm(::Nothing, p::Real = 2) = false, the norms of the gradients are calculated as expected.