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
[Refactor] Parse TVM-FFI shape specs with nlohmann/json #972
Inspired by #963, which identified the same dependency-reimplementation pattern in CLI configuration parsing. This is a separate scope and does not replace or modify #963.
What to build
Parse TVM-FFI kernel shape specifications with the repository's existing nlohmann/json dependency. Replace the local key, array-bound, and brace scanners with one typed parse of the shape specification, while preserving TensorRT plugin serialization compatibility and the current validation/defaulting contract.
Acceptance criteria
A shape specification is parsed once into typed values for inputs, outputs, dimensions, workspace size, and extra arguments.
Local find/substr scanners for outputs and extra_args are removed.
Missing optional fields retain their documented defaults, and invalid dimensions, indices, counts, and workspace values remain rejected.
Tests cover nested data, escaped strings, malformed JSON, truncated arrays/objects, and extra fields.
The standalone TVM-FFI plugin target consumes the existing nlohmann/json dependency without changing its TensorRT serialization ABI.
I noticed #1013 has now merged the parser refactor. I will focus this follow-up on the remaining #972 acceptance coverage for nested data, escaped strings, malformed and truncated JSON, extra fields, validation defaults, and serialization compatibility.
Activity
[Refactor] Parse TVM-FFI shape specs with nlohmann/json (#972) (#1013)
EvanGruhlkey commentedon Aug 27, 2026
I noticed #1013 has now merged the parser refactor. I will focus this follow-up on the remaining #972 acceptance coverage for nested data, escaped strings, malformed and truncated JSON, extra fields, validation defaults, and serialization compatibility.
fix(tvm-ffi): validate shape input indices
fix(tvm-ffi): validate shape input indices
fix(tvm-ffi): validate shape input indices