Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify type annotations for ImageT, TensorT and Batch #132

Merged
merged 2 commits into from
May 30, 2023

Conversation

spillai
Copy link
Contributor

@spillai spillai commented May 29, 2023

Summary

Removed tupled metadata and instead supports variadic metadata. This makes the type annotations much simpler and easier to use. See test_common_types.py for examples.

Related issues

Checks

  • make lint: I've run make lint to lint the changes in this PR.
  • make test: I've made sure the tests (make test-cpu or make test) are passing.
  • Additional tests:
    • Benchmark tests (when contributing new models)
    • GPU/HW tests

Removed tupled metadata and instead supports variadic metadata.
This makes the type annotations much simpler and easier to use.
See `test_common_types.py` for examples.
@spillai spillai added this to the NOS v0.0.4 milestone May 29, 2023
…ts_spec()`

This improves the overall API and makes it easier for users to digest
the different input/output signature types instead of having to parse
the `Annotated` field types.
@spillai spillai force-pushed the spillai/fix-annotated-metadata branch from a757fbc to 3c7dafb Compare May 30, 2023 19:18
@spillai spillai requested a review from outtanames May 30, 2023 19:26
@spillai spillai merged commit a48a68e into main May 30, 2023
@spillai spillai self-assigned this May 31, 2023
@spillai spillai deleted the spillai/fix-annotated-metadata branch June 1, 2023 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant