Skip to content

[Refactor] Parse TVM-FFI shape specs with nlohmann/json #972

Closed

Description

@chaofengw-nv

Parent

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.

Blocked by

None - can start immediately.

Activity

  1. added
    enhancement
    on Aug 21, 2026
  2. EvanGruhlkey commented on Aug 27, 2026

    @EvanGruhlkey
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions