votes up 1

inputs are weird

Package:
torch
github stars 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()):
😲  Walkingbet is Android app that pays you real bitcoins for a walking. Withdrawable real money bonus is available now, hurry up! 🚶

NO 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