JuliaGaussianProcesses / JuliaGaussianProcesses/ParameterHandling.jl

Increased AD compilation times induced by the change in #67

Open
#73 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
74
Forks
10
PR merge metrics
No merged PRs in 30d

Description

While the compiled function runs much faster due to type instability, for bigger tuples this leads to a blowup of compilation time for Zygote when differentiating through the unflatten function defined recursively (unsurprisingly perhaps). We should maybe add an rrule.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the recursively defined unflatten function and reviewing the change in #67. Measure compilation time when Zygote differentiates through unflatten for bigger tuples, then verify that the completed work avoids the compilation-time blowup while preserving differentiation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
performance, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.