Commit ef2c346f authored by rusty1s's avatar rusty1s
Browse files

removed test file

parent 06933f89
import torch
from torch.autograd import Variable
size = torch.Size([2, 2])
index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long).cuda()
value = torch.tensor([1, 1], dtype=torch.float).cuda()
A = torch.cuda.sparse.FloatTensor(index, value, size)
index = torch.tensor([[0, 1], [0, 1]], dtype=torch.long)
value = torch.tensor([1, 1], dtype=torch.float)
B = torch.sparse.FloatTensor(index, value, size)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment