You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ee184a9
Browse filesBrowse the repository at this point in the historyBrowse files
No behavioural changes; each hunk silences a report that JET cannot see through.
Inference cannot narrow a `local` binding that is only assigned inside a branch,
so replace the sentinel-by-undefinedness idiom with real sentinel values:
`@cached`'s `hasparams`/`typed` flags become `nothing` checks on `params`/`typeex`,
`planar_trace`'s `local i, j` becomes `i = j = 0`, and `_construct_braidingtensors!`
tracks `V1`/`V2` as `nothing` rather than via `foundV1`/`foundV2`.
`OneOrNoneIterator`'s default `state = true` is a `Bool`, but a recursive call
passes an `Int`, so `if state` is reported as a non-boolean context; `isone`
accepts both and keeps the `Bool` default.
Untyped kernel arguments that inference can only narrow to a union get
annotated, so the union split no longer reaches branches with no method:
`_trace_permute!`, the three `tensoroperations` pullback primals, `_braid!` and
`_transpose!` (`Union{AbstractTensorMap, TensorMapSpace}`), and the
`UniqueTreeTransformer`/`GenericTreeTransformer` constructors (`::HomSpace`),
whose only caller `TreeTransformer` always passes a `HomSpace`. Likewise
`parenttype(::Type{Union{}})`, which `typeintersect` manufactures and which
otherwise reaches no method at all.
`fusiontensor` used `TupleTools.prod(d)` on a value inferred as
`Union{Tuple, NamedTuple}`; `reshape(F, :, sz[end])` computes the same leading
dimension without the union split.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments