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

Address design review and feedback from MXNet commiters #8

Merged

Conversation

KellenSunderland
Copy link

@KellenSunderland KellenSunderland commented Aug 9, 2018

Combining the feedback from the PR, the dev list, and in-person communication, this PR attempts to:

  • Maintain all interface const'ness (a major concern).
  • Encapsulate TRT logic using OO mechanisms. Only include TRT objects in TRT builds.
  • Minimize the code change for non-TRT users to ensure they can’t run into regressions.
  • Move all user python code to contrib to indicate it’s a work in progress.
  • Add more validation logic, earlier in execution, with more descriptive error messages.
  • Add negative case testing for incorrect usage attempts.

Follow up improvements which I’ll leave to other PRs are:

  • Remove some duplicated code between TRT and non-TRT classes (it’s there, but pretty minimal).
  • Migrate to the sub-graph API.
  • Migrate from shared-buffer to sub-graph work, or a temporary third approach.

We don't want to use environment variables with TensorRT yet, the
logic being that we want to try and have as much fwd compatiblity as
possible when working on an experimental feature.  Were we to add
env vars they would have to be gaurenteed to work in the future until
a major version change.  Moving the functionality to a contrib call
reduces this risk.
This is change applies to both TensorRT and non-TensorRT builds.
@KellenSunderland KellenSunderland changed the title Address design review and freedback from MXNet commiters Address design review and feedback from MXNet commiters Aug 9, 2018
@mkolod
Copy link
Owner

mkolod commented Aug 9, 2018

Thanks @KellenSunderland!

@mkolod mkolod merged commit f7ff036 into mkolod:tensorrt_integration Aug 9, 2018
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.

2 participants