Avik Pal

Results 176 issues of Avik Pal

```julia using NNlib, Enzyme, Zygote gelu_act(x) = sum(abs2, gelu.(x)) x = randn(Float32, 32, 32, 1, 32) @btime Enzyme.gradient(Reverse, $gelu_act, $x); # 1.298 ms (65 allocations: 386.95 KiB) @btime Zygote.gradient($gelu_act, $x);...

```julia using CUDA, Enzyme w = cu(rand(Float32, 10, 10)) b = cu(rand(Float32, 10)) x = cu(rand(Float32, 10, 10)) act = x -> max(0f0, x) function loss_function(act, w, x, b) return...

This can be used to store the timer_outputs in the solution object, and we don't need to forcefully use the caching API in https://docs.sciml.ai/NonlinearSolve/stable/basics/diagnostics_api/#Example-Usage.

good first issue

Fixes https://github.com/SciML/NonlinearSolve.jl/issues/154 A bit more involved than I thought :cry:

## Example Usage Package is private currently ```julia using AutoBatching, SimpleNonlinearSolve function solve_nlprob(f::F, u0::AbstractVector, p::Number, alg) where {F} prob = NonlinearProblem(f, u0, p) return solve(prob, alg).u end u0 = rand(3)...

This is VERY Breaking * Move to NonlinearSolveBase, which is a significantly lighter version of DiffEqBase * ForwardDiff and FiniteDiff are moved into extensions, so no AD package is loaded...

I was playing around with JNFK for DEQs and the Nonlinear Solve implementation is a bit too complicated for those purposes - [x] Working Version - [ ] Batched Version...

We have an example of this in the paper, we just need to write it up as a tutorial.

documentation
good first issue

**Is your feature request related to a problem?** Special Trust Region Algorithm for NLLS Problems with bound constraints. **Describe the solution you’d like** See https://nmayorov.wordpress.com/2015/06/19/trust-region-reflective-algorithm/ for a description of the...