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

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

Build:
Build:
LAST BUILD BRANCH: dependabot/maven/maven-plugins-8e9ee1e54d
DEFAULT BRANCH: main
Ran 27 May 2026 08:06PM UTC
Jobs 1
Files 31
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

27 May 2026 08:03PM UTC coverage: 72.492% (+0.2%) from 72.276%
#1714

push

travis-pro

web-flow
Add `InputSignature.toTensorSpecList` formatter (#564)

* Add `InputSignature.toTensorSpecList` formatter

Phase 1 of #563. Adds the pure formatter that converts an `InputSignature`
to a Python source-code list of `tf.TensorSpec(shape=..., dtype=...)` calls
suitable for the `input_signature=` keyword argument of `@tf.function(...)`.
Handles dim discrimination (concrete `NumericDim` → integer literal; every
other dim sentinel → `None`), the rank-1 trailing-comma tuple form, scalar
empty-tuple form, all known dtypes, and the three import-prefix shapes
(`"tf."`, `"tensorflow."`, `""`).

Subsequent phases of #563 will wire this into `Function.convertToHybrid` and
implement the `Transformation.RECONFIGURE` case.

* Address Copilot findings on `toTensorSpecList`: shape-⊤ and locale

Two real defects flagged on PR #564:

1. `inferInputSignature()` can return `TensorType(dtype, null)` for shape-⊤
   (rank disagrees across contexts; see `Function.inferSpec` Step 2). The
   formatter dereferenced `t.getDims()` unconditionally, NPE-ing on this
   case. Now emits `shape=None`, matching TF's `tf.TensorSpec(shape=None,
   ...)` semantics for unknown rank.
2. `String.toLowerCase()` defaults to the JVM locale; under Turkish locale
   it lower-cases `I` to a non-ASCII dotless-i, corrupting `INT32` → `ınt32`
   and `STRING` → `strıng`. Now uses `Locale.ROOT`.

Two new tests pin the shape-⊤ path and lock locale-independence (sets the
default to `tr_TR` for the duration of the assertion).

* Drop unneeded `(List<Dimension<?>>) null` cast in `testShapeTopRendersAsNone`

13 of 13 new or added lines in 1 file covered. (100.0%)

1207 of 1665 relevant lines covered (72.49%)

0.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #1714.1 27 May 2026 08:06PM UTC 31
72.49
Source Files on build #1714
  • Tree
  • List 31
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 46992106 on github
  • Prev Build on main
  • Next Build on gh-readonly-queue/main/pr-564-796599b738c3cfd652a0324fd7bf0a1e09fb235c (#26535579898)
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