コード例 #1
0
ファイル: test_array.py プロジェクト: vermashresth/chainer
def test_init_with_device(shape, dtype_spec, device):
    array = chainerx.ndarray(shape, dtype_spec, device=device)
    _check_array(array, dtype_spec, shape, device=device)
コード例 #2
0
ファイル: test_array.py プロジェクト: hvy/chainer
def test_init_with_device(shape, dtype_spec, device):
    array = chainerx.ndarray(shape, dtype_spec, device=device)
    _check_array(array, dtype_spec, shape, device=device)
コード例 #3
0
ファイル: test_array.py プロジェクト: vermashresth/chainer
def test_init(shape, dtype_spec):
    array = chainerx.ndarray(shape, dtype_spec)
    _check_array(array, dtype_spec, shape)
コード例 #4
0
ファイル: test_array.py プロジェクト: hvy/chainer
def test_init(shape, dtype_spec):
    array = chainerx.ndarray(shape, dtype_spec)
    _check_array(array, dtype_spec, shape)