Error with Conv2d with groups > 1

Hello,
I’ve just downloaded ‘1.0.0a0+2d3cf98’ from github and built it.
When I run ‘python run_test.py’ in test directory, I got

======================================================================
FAIL: test_Conv2d_groups_nobias (__main__.TestNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/polphit/Downloads/pytorch/test/common_utils.py", line 117, in wrapper
    fn(*args, **kwargs)
  File "test_nn.py", line 3888, in test_Conv2d_groups_nobias
    self.assertEqual(output, torch.cat([output1, output2], 1))
  File "/home/polphit/Downloads/pytorch/test/common_utils.py", line 414, in assertEqual
    assertTensorsEqual(x, y)
  File "/home/polphit/Downloads/pytorch/test/common_utils.py", line 406, in assertTensorsEqual
    self.assertLessEqual(max_err, prec, message)
AssertionError: tensor(2.0663, dtype=torch.float32, grad_fn=<MaxBackward1>) not less than or equal to 1e-05 : 

======================================================================
FAIL: test_Conv2d_naive_groups (__main__.TestNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_nn.py", line 2848, in test_Conv2d_naive_groups
    self._test_Conv2d_naive_groups()
  File "test_nn.py", line 3851, in _test_Conv2d_naive_groups
    self.assertEqual(output, torch.cat([output1, output2], 1))
  File "/home/polphit/Downloads/pytorch/test/common_utils.py", line 414, in assertEqual
    assertTensorsEqual(x, y)
  File "/home/polphit/Downloads/pytorch/test/common_utils.py", line 406, in assertTensorsEqual
    self.assertLessEqual(max_err, prec, message)
AssertionError: tensor(2.3206, dtype=torch.float32, grad_fn=<MaxBackward1>) not less than or equal to 1e-05 : 

----------------------------------------------------------------------

Is the code for Conv2d broken? or can I just guess the test code is outdated?

I did ‘git pull’ to get the version ‘1.0.0a0+0b1b72e’ (commit 0b1b72e97593f878edb536b4e40660f28e173a9d), and now I get

======================================================================
ERROR: test_Conv1d_groups (__main__.TestNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/polphit/Downloads/pytorch/test/common_utils.py", line 117, in wrapper
    fn(*args, **kwargs)
  File "test_nn.py", line 6964, in <lambda>
    add(test_name, lambda self, test=test: test(self))
  File "/home/polphit/Downloads/pytorch/test/common_nn.py", line 2942, in __call__
    self._do_test(test_case, module, input)
  File "test_nn.py", line 315, in _do_test
    module(input)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 187, in forward
    self.padding, self.dilation, self.groups)
RuntimeError: std::exception

======================================================================
ERROR: test_Conv2d_depthwise (__main__.TestNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_nn.py", line 6964, in <lambda>
    add(test_name, lambda self, test=test: test(self))
  File "/home/polphit/Downloads/pytorch/test/common_nn.py", line 2942, in __call__
    self._do_test(test_case, module, input)
  File "test_nn.py", line 315, in _do_test
    module(input)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 320, in forward
    self.padding, self.dilation, self.groups)
RuntimeError: std::exception

======================================================================
ERROR: test_Conv2d_depthwise_padded (__main__.TestNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_nn.py", line 6964, in <lambda>
    add(test_name, lambda self, test=test: test(self))
  File "/home/polphit/Downloads/pytorch/test/common_nn.py", line 2942, in __call__
    self._do_test(test_case, module, input)
  File "test_nn.py", line 315, in _do_test
    module(input)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 320, in forward
    self.padding, self.dilation, self.groups)
RuntimeError: std::exception

======================================================================
ERROR: test_Conv2d_depthwise_strided (__main__.TestNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_nn.py", line 6964, in <lambda>
    add(test_name, lambda self, test=test: test(self))
  File "/home/polphit/Downloads/pytorch/test/common_nn.py", line 2942, in __call__
    self._do_test(test_case, module, input)
  File "test_nn.py", line 315, in _do_test
    module(input)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 320, in forward
    self.padding, self.dilation, self.groups)
RuntimeError: std::exception

======================================================================
ERROR: test_Conv2d_depthwise_with_multiplier (__main__.TestNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_nn.py", line 6964, in <lambda>
    add(test_name, lambda self, test=test: test(self))
  File "/home/polphit/Downloads/pytorch/test/common_nn.py", line 2942, in __call__
    self._do_test(test_case, module, input)
  File "test_nn.py", line 315, in _do_test
    module(input)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 320, in forward
    self.padding, self.dilation, self.groups)
RuntimeError: std::exception

======================================================================
ERROR: test_Conv2d_groups (__main__.TestNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/polphit/Downloads/pytorch/test/common_utils.py", line 117, in wrapper
    fn(*args, **kwargs)
  File "test_nn.py", line 6964, in <lambda>
    add(test_name, lambda self, test=test: test(self))
  File "/home/polphit/Downloads/pytorch/test/common_nn.py", line 2942, in __call__
    self._do_test(test_case, module, input)
  File "test_nn.py", line 315, in _do_test
    module(input)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 320, in forward
    self.padding, self.dilation, self.groups)
RuntimeError: std::exception

======================================================================
ERROR: test_Conv2d_groups_nobias (__main__.TestNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/polphit/Downloads/pytorch/test/common_utils.py", line 117, in wrapper
    fn(*args, **kwargs)
  File "test_nn.py", line 3872, in test_Conv2d_groups_nobias
    output = m(i)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 320, in forward
    self.padding, self.dilation, self.groups)
RuntimeError: std::exception

======================================================================
ERROR: test_Conv2d_groups_thnn (__main__.TestNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/polphit/Downloads/pytorch/test/common_utils.py", line 117, in wrapper
    fn(*args, **kwargs)
  File "test_nn.py", line 6964, in <lambda>
    add(test_name, lambda self, test=test: test(self))
  File "/home/polphit/Downloads/pytorch/test/common_nn.py", line 2942, in __call__
    self._do_test(test_case, module, input)
  File "test_nn.py", line 315, in _do_test
    module(input)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 320, in forward
    self.padding, self.dilation, self.groups)
RuntimeError: std::exception

======================================================================
ERROR: test_Conv2d_naive_groups (__main__.TestNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_nn.py", line 2848, in test_Conv2d_naive_groups
    self._test_Conv2d_naive_groups()
  File "test_nn.py", line 3833, in _test_Conv2d_naive_groups
    output = m(i)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 320, in forward
    self.padding, self.dilation, self.groups)
RuntimeError: std::exception

----------------------------------------------------------------------
Ran 1244 tests in 627.741s

FAILED (errors=9, skipped=9, expected failures=2)