"tests/vscode:/vscode.git/clone" did not exist on "9f7b2cf2dcaf3c76ebed3bd2bb4002795a813ed8"
Commit c16689ca authored by rusty1s's avatar rusty1s
Browse files

beginning of max pool voxel

parent 5c165b81
......@@ -141,9 +141,8 @@ class EdgewiseSplineWeightingGPU(Function):
K, M_in, M_out = weight.size()
k_max = self.amount.size(1)
num_edges = input.size(0)
grad_input = grad_output.new(num_edges, M_in).fill_(0)
grad_input = grad_output.new(input.size(0), M_in).fill_(0)
grad_weight = grad_output.new(K, M_in, M_out).fill_(0)
num_threads = grad_output.numel()
......@@ -154,7 +153,6 @@ class EdgewiseSplineWeightingGPU(Function):
_edgewise_spline_weighting_backward_kernel,
Dtype=Dtype(input),
num_threads=num_threads,
num_edges=num_edges,
M_in=M_in,
M_out=M_out,
k_max=k_max,
......
import unittest
import torch
from torch.autograd import Variable, gradcheck
from numpy.testing import assert_equal
......
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