Skip to content

Conversation

@narendasan
Copy link
Collaborator

Description

Cherry pick of the change for main #4042

Fixes # (issue)

Type of change

Please delete options that are not relevant and/or add your own.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project (You can use the linters)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas and hacks
  • I have made corresponding changes to the documentation
  • I have added tests to verify my fix or my feature
  • New and existing unit tests pass locally with my changes
  • I have added the relevant labels to my PR in so that relevant reviewers are notified

@meta-cla meta-cla bot added the cla signed label Jan 26, 2026
@github-actions github-actions bot added component: tests Issues re: Tests component: core Issues re: The core compiler component: runtime labels Jan 26, 2026
@github-actions github-actions bot requested a review from cehongwang January 26, 2026 20:43
Copy link

@github-actions github-actions bot left a 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/tests/py/ts/api/test_classes.py	2026-01-26 20:43:20.314235+00:00
+++ /home/runner/work/TensorRT/TensorRT/tests/py/ts/api/test_classes.py	2026-01-26 20:44:02.246054+00:00
@@ -336,11 +336,14 @@
            TestTorchTensorRTModule._get_trt_mod(),
            TestTorchTensorRTModule._get_trt_mod(via_ts=True),
        ):
            layer_info = trt_mod.get_layer_info()
            trt_json = json.loads(layer_info)
-            [self.assertTrue(k in trt_json.keys(), f"Key {k} is missing") for k in ["Layers", "Bindings"]]
+            [
+                self.assertTrue(k in trt_json.keys(), f"Key {k} is missing")
+                for k in ["Layers", "Bindings"]
+            ]
            self.assertTrue(len(trt_json["Layers"]) == 4, "Not enough layers found")
            self.assertTrue(len(trt_json["Bindings"]) == 2, "Not enough bindings found")


if __name__ == "__main__":

Copy link

@github-actions github-actions bot left a 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/tests/py/ts/api/test_classes.py	2026-01-27 00:14:54.946736+00:00
+++ /home/runner/work/TensorRT/TensorRT/tests/py/ts/api/test_classes.py	2026-01-27 00:15:36.540336+00:00
@@ -369,6 +369,6 @@
            self.assertTrue(len(trt_json["Layers"]) == num_layers)
            self.assertTrue(len(trt_json["Bindings"]) == 2)


if __name__ == "__main__":
-    unittest.main()
\ No newline at end of file
+    unittest.main()

@lanluo-nvidia lanluo-nvidia merged commit a647c6c into release/2.10 Jan 27, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants