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

ponder-lab / Hybridize-Functions-Refactoring / #2061
80%
main: 79%

Build:
Build:
LAST BUILD BRANCH: implement-709-tensor-op-advisory
DEFAULT BRANCH: main
Ran 22 Jun 2026 08:51PM UTC
Jobs 1
Files 32
Run time 1min
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

22 Jun 2026 08:48PM UTC coverage: 80.0% (+0.04%) from 79.96%
#2061

push

github

web-flow
Emit `SparseTensorSpec` for sparse tensor parameters (#644)

* Emit SparseTensorSpec for sparse tensor parameters (#533)

With Ariadne 0.51.0 typing SparseTensor parameters as sparse, route them to
`tf.SparseTensorSpec` in the inferred input signature, mirroring the ragged
path (#524):

- `InputSignature.specTypeName` returns `SparseTensorSpec` when the
  parameter's `TensorType.isSparse()`, ahead of the ragged and dense
  branches; `toTensorSpecList` and `requiredSpecTypeNames` follow from it.
- `Function.inferSpec` carries a sparseness consensus (every context sparse)
  onto the reduced `TensorType` via `asSparse()`, so the inferred signature
  preserves sparseness rather than collapsing it to a dense `TensorSpec`. A
  mixed sparse/dense parameter falls through to dense (pre-#533 behavior).

The nine `testHasLikelyTensorParameter*` sparse audits flip from the
`(sparse, dense)` divergence pinned in #636 to a single sparse expectation
now that both layers agree. Adds `InputSignatureTest` coverage for the
`SparseTensorSpec` emission and the sparse `requiredSpecTypeNames`.

Closes #533.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Update the sparse-test Javadocs for SparseTensorSpec emission

The six `sparse.eye`/`sparse.SparseTensor` test Javadocs described the
pre-#533 behavior (the inferred dense `TensorSpec` rejecting `SparseTensor`
arguments, emission "tracked separately"). With this PR emitting
`SparseTensorSpec`, reword them to state the parameter is inferred as sparse
and the signature emits a `SparseTensorSpec` that admits the sparse inputs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

7 of 7 new or added lines in 2 files covered. (100.0%)

1600 of 2000 relevant lines covered (80.0%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #2061.1 22 Jun 2026 08:51PM UTC 32
80.0
Source Files on build #2061
  • Tree
  • List 32
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4d8b2d6e on github
  • Prev Build on gh-readonly-queue/main/pr-645-1361ded4230c4f62a8776451cbf4a2a3d81c4345
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