We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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()
The text was updated successfully, but these errors were encountered:
could you please point out the code lines from the repo?
Sorry, something went wrong.
LVLane/lanedet/engine/runner.py line54
No branches or pull requests
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()
The text was updated successfully, but these errors were encountered: