Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/flux interface #62

Merged
merged 10 commits into from
May 12, 2023
Merged

Refactor/flux interface #62

merged 10 commits into from
May 12, 2023

Conversation

nic-barbara
Copy link
Member

The new Flux.jl architecture (to be made permanent in v0.14) requires:

  • Trainable types to be added with the Flux.@functor macro
  • If only certain fields are trainable (other than immutable Numbers, Functions, etc) then they should be specified with Flux.trainable() or as an extra argument to Flux.@functor.
  • Flux.trainable() now must return a NamedTuple, not just an array or Tuple.

RobustNeuralNetworks.jl has been updated to meet these new requirements, and I've added some tests to check them too.

@nic-barbara nic-barbara linked an issue May 12, 2023 that may be closed by this pull request
@ruigangwang7 ruigangwang7 merged commit 5a50f07 into main May 12, 2023
@nic-barbara nic-barbara deleted the refactor/flux-interface branch May 12, 2023 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trainable parameters should be specified with @functor
2 participants