-
Notifications
You must be signed in to change notification settings - Fork 23
Cannot use 0D tensor as int #33
Copy link
Copy link
Open
Description
Please look at this line.
https://github.com/ptillet/torch-blocksparse/blame/master/torch_blocksparse/matmul.py#L239
The error below occurs because width is used as an int.
TypeError: empty() received an invalid combination of arguments - got (Tensor, dtype=torch.dtype), but expected one of:
* (tuple of ints size, *, tuple of names names, torch.memory_format memory_format, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
* (tuple of ints size, *, torch.memory_format memory_format, Tensor out, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
This error is triggered when using "dsd" mode.
Testing with PyTorch 1.6.0.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels