taichi._testing
¶
Module Contents¶
Functions¶
|
Tweaked pytest.approx for OpenGL low precisions |
|
Same as: x == approx(y, **kwargs) |
|
Performs tests on archs in expected_archs() which are in arch and not in exclude and satisfy require |
- taichi._testing.get_rel_eps()¶
- taichi._testing.approx(expected, **kwargs)¶
Tweaked pytest.approx for OpenGL low precisions
- taichi._testing.test(arch=None, exclude=None, require=None, **options)¶
Performs tests on archs in expected_archs() which are in arch and not in exclude and satisfy require
- ti.test(arch=[], exclude=[], require=[], **options)¶
- Parameters
arch – backends to include
exclude – backends to exclude
require – extensions required
options – other options to be passed into
ti.init