-
Notifications
You must be signed in to change notification settings - Fork 22
Exposes base OptionsContext class in the API
#396
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
Conversation
mlir-tensorrt/compiler/include/mlir-tensorrt/Compiler/StableHloToExecutable.h
Outdated
Show resolved
Hide resolved
ba839d4 to
cd2393b
Compare
christopherbate
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it looks good. Noted in the comments a couple things that need to be tweaked before merging, but once that's done and it passes CI, then it should be good to merge.
One thing to note is that we currently have the CI building static libs. Since you're introducing static registration mechanisms, you definitely want to check the CMake build with -DBUILD_SHARED_LIBS=ON as well. Let me know if any questions.
mlir-tensorrt/compiler/include/mlir-tensorrt-c/Compiler/Compiler.h
Outdated
Show resolved
Hide resolved
mlir-tensorrt/compiler/include/mlir-tensorrt/Compiler/StableHloToExecutable.h
Outdated
Show resolved
Hide resolved
mlir-tensorrt/compiler/include/mlir-tensorrt-c/Compiler/Compiler.h
Outdated
Show resolved
Hide resolved
cd2393b to
0ddb923
Compare
64979d3 to
b7ddf31
Compare
christopherbate
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for some additional minor comments
mlir-tensorrt/compiler/include/mlir-tensorrt/Compiler/OptionsRegistry.h
Outdated
Show resolved
Hide resolved
mlir-tensorrt/compiler/include/mlir-tensorrt/Compiler/OptionsRegistry.h
Outdated
Show resolved
Hide resolved
b7ddf31 to
ce836cd
Compare
In order to support more than just the StableHloToExecutable pipeline, we need to be able to create different option types from the API. This commit exposes the base `OptionsContext` class in the Python API and includes a mechanism for child classes to register themselves with the client, allowing them to be created through a common API.
ce836cd to
8bb2572
Compare
In order to support more than just the StableHloToExecutable pipeline, we need to be able to create different option types from the API. This commit exposes the base
OptionsContextclass in the Python API and includes a mechanism for child classes to register themselves with the client, allowing them to be created through a common API.