提交 56b57f14 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Stop skipping tests when there is no compiler.

上级 46c9f38a
...@@ -1503,9 +1503,6 @@ class TestAdvancedSubtensor(unittest.TestCase): ...@@ -1503,9 +1503,6 @@ class TestAdvancedSubtensor(unittest.TestCase):
utt.assert_allclose(rval, aval) utt.assert_allclose(rval, aval)
def test_inc_adv_subtensor_w_2vec(self): def test_inc_adv_subtensor_w_2vec(self):
if not config.cxx:
raise SkipTest('config.cxx empty')
subt = self.m[self.ix1, self.ix12] subt = self.m[self.ix1, self.ix12]
a = inc_subtensor(subt, subt) a = inc_subtensor(subt, subt)
...@@ -1524,9 +1521,6 @@ class TestAdvancedSubtensor(unittest.TestCase): ...@@ -1524,9 +1521,6 @@ class TestAdvancedSubtensor(unittest.TestCase):
[.5, .3 * 2, .15]]), aval [.5, .3 * 2, .15]]), aval
def test_inc_adv_subtensor_with_broadcasting(self): def test_inc_adv_subtensor_with_broadcasting(self):
if not config.cxx:
raise SkipTest('config.cxx empty')
inc = dscalar() inc = dscalar()
a = inc_subtensor(self.m[self.ix1, self.ix12], inc) a = inc_subtensor(self.m[self.ix1, self.ix12], inc)
g_inc = tensor.grad(a.sum(), inc) g_inc = tensor.grad(a.sum(), inc)
...@@ -1547,9 +1541,6 @@ class TestAdvancedSubtensor(unittest.TestCase): ...@@ -1547,9 +1541,6 @@ class TestAdvancedSubtensor(unittest.TestCase):
assert np.allclose(gval, 3.0), gval assert np.allclose(gval, 3.0), gval
def test_inc_adv_subtensor1_with_broadcasting(self): def test_inc_adv_subtensor1_with_broadcasting(self):
if not config.cxx:
raise SkipTest('config.cxx empty')
inc = dscalar() inc = dscalar()
a = inc_subtensor(self.m[self.ix1], inc) a = inc_subtensor(self.m[self.ix1], inc)
g_inc = tensor.grad(a.sum(), inc) g_inc = tensor.grad(a.sum(), inc)
...@@ -1569,9 +1560,6 @@ class TestAdvancedSubtensor(unittest.TestCase): ...@@ -1569,9 +1560,6 @@ class TestAdvancedSubtensor(unittest.TestCase):
assert np.allclose(gval, 9.0), gval assert np.allclose(gval, 9.0), gval
def test_inc_adv_subtensor_with_index_broadcasting(self): def test_inc_adv_subtensor_with_index_broadcasting(self):
if not config.cxx:
raise SkipTest('config.cxx empty')
a = inc_subtensor(self.m[self.ix1, self.ix2], 2.1) a = inc_subtensor(self.m[self.ix1, self.ix2], 2.1)
assert a.type == self.m.type, (a.type, self.m.type) assert a.type == self.m.type, (a.type, self.m.type)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论