Skip to content

Fix missing import for torch in test.py#29

Open
giovi1 wants to merge 1 commit into
SmartForest-no:mainfrom
giovi1:patch-1
Open

Fix missing import for torch in test.py#29
giovi1 wants to merge 1 commit into
SmartForest-no:mainfrom
giovi1:patch-1

Conversation

@giovi1

@giovi1 giovi1 commented Apr 15, 2026

Copy link
Copy Markdown

Hi!
While running inference with tools/test.py, I encountered a NameError: name 'torch' is not defined around line 123. It seems the import torch statement was missing when applying the spconv checkpoint fix in-memory.

This PR simply adds the missing import at the top of the file to resolve the crash and allow the script to run smoothly.

Added missing import for torch in test.py
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.

1 participant