The following are code examples for showing how to use . They are extracted from open source Python projects. You can vote up the examples you like or vote down the exmaples you don’t like. You can also save this page to your account.
Example 1
def test_too_big_rank(self): x = self.type(self.dtype, broadcastable=())() y = x.dimshuffle(('x',) * (numpy.MAXDIMS + 1)) self.assertRaises(ValueError, y.eval, {x: 0})