JuliaDiff / JuliaDiff/ChainRulesTestUtils.jl

Better error message than Dimension mismatch

Open
#244 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Julia
Stars
50
Forks
18
PR merge metrics
No merged PRs in 30d

Description

The error message when to_vec of y and y\bar are not the same length is quite cryptic

DimensionMismatch("second dimension of A, 4, does not match length of x, 7")

we could catch it and give a better error

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

Locate the Julia implementation of to_vec and any tests covering mismatched lengths between y and y\bar. Reproduce the case shown in the issue, then verify that the resulting error explains the unequal lengths more clearly than the current DimensionMismatch message.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.