f16866f142005d20fed2581bf48c3ba928d935ef,tests/chainer_tests/functions_tests/array_tests/test_cast.py,TestCast,setUp,#TestCast#,41
Before Change
class TestCast(unittest.TestCase):
def setUp(self):
self.x = numpy.random.uniform(-1, 1, self.shape).astype(self.in_type)
self.g = numpy.random.uniform(-1, 1, self.shape).astype(self.out_type)
def check_forward(self, x_data):
x = chainer.Variable(x_data)
After Change
// Skip e.g. uint64 for ChainerX.
self._skip_chainerx_unsupported_dtype()
if (numpy.dtype(self.in_type).kind != "f"
or numpy.dtype(self.out_type).kind != "f"):
self.skip_backward_test = True
self.skip_double_backward_test = True
self.check_backward_options = {
"eps": 2.0 ** -2, "atol": 1e-2, "rtol": 1e-3}
self.check_double_backward_options = {
"eps": 2.0 ** -2, "atol": 1e-2, "rtol": 1e-3}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: chainer/chainer
Commit Name: f16866f142005d20fed2581bf48c3ba928d935ef
Time: 2019-06-25
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: tests/chainer_tests/functions_tests/array_tests/test_cast.py
Class Name: TestCast
Method Name: setUp
Project Name: chainer/chainer
Commit Name: 15831b726cc8c83e6fe7d79cc97b401d2fec4001
Time: 2019-12-23
Author: kataoka@preferred.jp
File Name: tests/chainer_tests/functions_tests/loss_tests/test_decov.py
Class Name: TestDeCov
Method Name: setUp
Project Name: mindsdb/mindsdb
Commit Name: bb4109425da5a8ace9d1e045baf4bc0debb3eec7
Time: 2018-09-05
Author: jorge.torres.maldonado@gmail.com
File Name: libs/phases/model_predictor/model_predictor.py
Class Name: ModelPredictor
Method Name: run