• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ponder-lab / Hybridize-Functions-Refactoring / #1463 / 1
72%
main: 72%

Build:
DEFAULT BRANCH: main
Ran 19 May 2026 05:16PM UTC
Files 31
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 May 2026 05:08PM UTC coverage: 72.199% (+0.8%) from 71.393%
#1463.1

push

travis-pro

web-flow
Infer input signature for single-context tensor parameter (#480)

* Implement Algorithm 2 scenario 1: single-context input signature.

Adds `InputSignature` (record wrapping `List<TensorType>`) and
`Function.inferInputSignature(TensorTypeAnalysis)`, plus a regression
test covering scenario 1 of the input-signature inference algorithm:
single call site, single dtype, single concrete shape. The trivial
happy path of Algorithm 2.

`inferInputSignature` walks the function's parameters, skips `self`,
calls `Parameter.getTensorTypes` per parameter, and reduces the
multi-context set to a single `TensorType` via the private static
`inferSpec`. For scenario 1, the set is a singleton and `inferSpec`
returns the input unchanged. Parameters whose `getTensorTypes` return
an empty set are excluded from the signature; this is the documented
practical default pending the lattice-distinguishing Ariadne-side
query (`Parameter.getTensorTypes` Javadoc).

Subsequent PRs will extend `inferSpec` to multi-context cases
(scenarios 2-7) and address the open spec questions on scenarios 9
and 13.

The new test follows the two-assertion discipline: an Ariadne pin
(`getTensorTypes` returns the expected singleton) plus an algorithm
assertion (`inferInputSignature` returns a signature whose only entry
is the same `TensorType` instance, asserted via `assertSame` since
`TensorType` does not override `equals`).

* Reformat scenario 1 fixture with Black.

Local pre-commit hook missed this on the initial commit (likely because
the file was newly created/untracked at the time the hook ran); CI's
`black --check` caught it.

* Address Copilot review on scenario 1.

- `Function.inferSpec`: tighten the singleton-context branch to require
  both a concrete dtype (`getDType()` not null and not `DType.UNKNOWN`)
  and a concrete shape (`getDims()` non-null with every `Dimension`
  being a `NumericDim`). Without this guard, a singleton with an
  unknown/non-concrete dtype or non-numeric dim would ... (continued)

1192 of 1651 relevant lines covered (72.2%)

0.72 hits per line

Source Files on job #1463.1
  • Tree
  • List 31
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1463
  • e1e73275 on github
  • Prev Job for on main (##1440.1)
  • Next Job for on main (#26113123470.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc