Skip to content
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

a bug when add data to device #13

Open
FlyingDita opened this issue Feb 29, 2024 · 2 comments
Open

a bug when add data to device #13

FlyingDita opened this issue Feb 29, 2024 · 2 comments

Comments

@FlyingDita
Copy link

past version:
def to_cuda(self, batch):
for k in batch:
if not isinstance(k, torch.Tensor):
continue
batch[k] = batch[k].cuda()
return batch

it should be:
def to_cuda(self, batch):
for k in batch:
if not isinstance(batch[k], torch.Tensor):
continue
batch[k] = batch[k].cuda()

@zillur-av
Copy link
Owner

could you please point out the code lines from the repo?

@FlyingDita
Copy link
Author

LVLane/lanedet/engine/runner.py line54

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

No branches or pull requests

2 participants