-
Notifications
You must be signed in to change notification settings - Fork 362
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
bf16 support for elementwise operation #3462
base: main
Are you sure you want to change the base?
Conversation
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.
There are some changes that do not conform to Python style guidelines:
--- /home/runner/work/TensorRT/TensorRT/issue_3458.py 2025-04-02 16:05:16.971503+00:00
+++ /home/runner/work/TensorRT/TensorRT/issue_3458.py 2025-04-02 16:05:38.270778+00:00
@@ -31,6 +31,6 @@
enabled_precisions={dtype},
debug=True,
min_block_size=1,
)
-print(trt_model(inputs[0]))
\ No newline at end of file
+print(trt_model(inputs[0]))
62c6bbb
to
721a0ce
Compare
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.
There are some changes that do not conform to Python style guidelines:
--- /home/runner/work/TensorRT/TensorRT/py/torch_tensorrt/dynamo/conversion/impl/elementwise/base.py 2025-04-03 21:20:43.557819+00:00
+++ /home/runner/work/TensorRT/TensorRT/py/torch_tensorrt/dynamo/conversion/impl/elementwise/base.py 2025-04-03 21:21:04.124037+00:00
@@ -17,10 +17,11 @@
set_layer_name,
to_torch,
)
from torch_tensorrt.dynamo.types import TRTElementWiseOp, TRTTensor
import tensorrt as trt
+
def get_python_op_from_trt_elementwise_op(
trt_op: TRTElementWiseOp,
) -> Callable[[Any, Any], Any]:
if trt_op == trt.ElementWiseOperation.SUM:
@apbose what is the status of this PR? |
Passes locally, looks like CI was failing due to CI resource issue. Retriggered the build. Opened the PR for review |
#3458 bf16 support for elementwise