Skip to content

Commit

Permalink
Merge pull request #8152 from niboshi/test-cast-avoid-empty
Browse files Browse the repository at this point in the history
Avoid `empty` in `F.cast` test that can cause overflow warning
  • Loading branch information
mergify[bot] committed Sep 24, 2019
2 parents e63c442 + 6834f27 commit 50cd64d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -108,7 +108,7 @@ class TestNoCast(unittest.TestCase):

def setUp(self):
self.dtype = numpy.float32
self.x = numpy.empty(1, self.dtype)
self.x = numpy.random.uniform(-100, 100, (1,)).astype(self.dtype)

def check_forward_no_cast(self, x_data):
y = functions.cast(x_data, self.dtype)
Expand Down

0 comments on commit 50cd64d

Please sign in to comment.