inputs are weird
Package:
torch
50580

Exception Class:
RuntimeError
Raise code
def to_device(i, d):
if isinstance(i, torch.Tensor):
return i.to(device=d)
elif isinstance(i, (tuple, list)):
return tuple(to_device(e, d) for e in i)
else:
raise RuntimeError('inputs are weird')
class GPUWrapper(torch.nn.Module):
def __init__(self, root):
super().__init__()
self.models = []
self.streams = {}
for i in range(torch.cuda.device_count()):
Links to the raise (1)
https://github.com/pytorch/pytorch/blob/e56d3b023818f54553f2dc5d30b6b7aaf6b6a325/torch/csrc/deploy/example/gpu_wrapper.py#L11NO FIXES YET
Just press the button and we will add solution
to this exception as soon as possible
* As many users press the button, the faster we create a fix
Add a possible fix
Please authorize to post fix