Skip to content

Programmatically defining the model #93

Closed as not planned
Closed as not planned

Description

@rcnlee

I'm finding the MNIST example on the MNIST branch very insightful.

In the example, the structure of model is hardcoded. What is the best way, in the ReverseDiff framework, to programmatically define the structure? For example, if I wanted the user to be able to specify at runtime the number of hidden layers and the size and activation functions of each.

Thanks!

Activity

  1. devmotion commented on Sep 24, 2026

    @devmotion
    Member

    Closing, as #38 was never merged and made available officially.

    ReverseDiff is merely a package for reverse-mode automatic differentiation, check out eg Flux.jl (https://fluxml.ai/Flux.jl/stable/) for defining models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions