Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Learning to Optimize (LearningToOptimize) package that provides basic functionalities to help fit proxy models for parametric optimization problems.

Have a look at our sister [HugginFace Organization](https://huggingface.co/LearningToOptimize), for datasets, pre-trained models and benchmarks.
Have a look at our sister [HuggingFace Organization](https://huggingface.co/LearningToOptimize), for datasets, pre-trained models and benchmarks.

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://andrewrosemberg.github.io/LearningToOptimize.jl/stable/)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://andrewrosemberg.github.io/LearningToOptimize.jl/dev/)
Expand Down
2 changes: 1 addition & 1 deletion src/FullyConnected.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function train!(model, loss, opt_state, X, Y; _batchsize = 32, shuffle = true)
Y = Y |> gpu
data = Flux.DataLoader((X, Y), batchsize = batchsize, shuffle = shuffle)
for d in data
∇model, _ = gradient(model, d...) do m, x, y # calculate the gradients
∇model, _ = Flux.gradient(model, d...) do m, x, y # calculate the gradients
loss(m(x), y)
end
# insert what ever code you want here that needs gradient
Expand Down