Skip to content

Debug Windows error(WIP) #3613

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

Closed
wants to merge 2 commits into from
Closed

Debug Windows error(WIP) #3613

wants to merge 2 commits into from

Conversation

lanluo-nvidia
Copy link
Collaborator

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

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)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

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

@lanluo-nvidia lanluo-nvidia self-assigned this Jun 24, 2025
@lanluo-nvidia lanluo-nvidia added the WIP Work is in progress, pull request should not be merged yet label Jun 24, 2025
@github-actions github-actions bot added the component: api [Python] Issues re: Python API label Jun 24, 2025
@github-actions github-actions bot requested a review from gs-olive June 24, 2025 16:29
@lanluo-nvidia lanluo-nvidia added the ciflow/binaries/all Build for all Python Versions label Jun 24, 2025
Copy link

pytorch-bot bot commented Jun 24, 2025

No ciflow labels are configured for this repo.
For information on how to enable CIFlow bot see this wiki

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/py/torch_tensorrt/__init__.py	2025-06-24 18:25:25.434018+00:00
+++ /home/runner/work/TensorRT/TensorRT/py/torch_tensorrt/__init__.py	2025-06-24 18:25:48.533469+00:00
@@ -104,16 +104,20 @@

    try:
        if os.path.isfile(linked_file_full_path):
            assert ENABLED_FEATURES.torchscript_frontend
            assert ENABLED_FEATURES.torch_tensorrt_runtime
-            print(f"Loading library: {linked_file_full_path=} {torch.__version__=} {torch.cuda.is_available()=}")
+            print(
+                f"Loading library: {linked_file_full_path=} {torch.__version__=} {torch.cuda.is_available()=}"
+            )
            torch.ops.load_library(linked_file_full_path)

        elif os.path.isfile(linked_file_runtime_full_path):
            assert ENABLED_FEATURES.torch_tensorrt_runtime
-            print(f"Loading library: {linked_file_runtime_full_path=} {torch.__version__=} {torch.cuda.is_available()=}")
+            print(
+                f"Loading library: {linked_file_runtime_full_path=} {torch.__version__=} {torch.cuda.is_available()=}"
+            )
            torch.ops.load_library(linked_file_runtime_full_path)
    except Exception as e:
        print(f"Error loading library: {e}")
        print(traceback.format_exc())
        raise e from e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/binaries/all Build for all Python Versions cla signed component: api [Python] Issues re: Python API WIP Work is in progress, pull request should not be merged yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants