File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 348348# Build the non-broadcasted `:*` size-inference cases the HEAD commit fixed.
349349# JuMP's surface syntax always lowers `c * W` to a broadcasted node, so to
350350# exercise the non-broadcasted code path we build the `MatrixExpr` directly
351- # (same pattern `_test_neural` uses for `wrap`). Before the fix, scalar-first
352- # returned `(1, 1)` and scalar-last produced an out-of-range `_size` read; the
353- # fix copies the matrix child's full shape in both orderings.
354- #
355- # The runtime forward/reverse pass for non-broadcasted scalar*matrix isn't
356- # wired up yet, so this test only asserts the inferred shape — that's exactly
357- # what the commit changed.
351+ # (same pattern `_test_neural` uses for `wrap`).
358352function test_size_inference_scalar_times_matrix ()
359353 mode = ArrayDiff. Mode ()
360354 ME = ArrayDiff. GenericMatrixExpr{VariableRef}
You can’t perform that action at this time.
0 commit comments