__init__.py 369 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
import pytest
import backend as F

if F._default_context_str == 'cpu':
    parametrize_dtype = pytest.mark.parametrize("idtype", [F.int32, F.int64])
else:
    # only test int32 on GPU because many graph operators are not supported for int64.
    parametrize_dtype = pytest.mark.parametrize("idtype", [F.int32])

from .checks import *
from .graph_cases import get_cases