With pytest 7.4.1, using tvm.testing.parameters no longer works. Example:
import pytest
import tvm
import tvm.testing
param_x, param_y = tvm.testing.parameters((1, 2))
def test(param_x, param_y):
return True
gives the following error:
request = <SubRequest 'param_x' for <Function test>>, _cls = ()
def fixture_func(*_cls, request):
> return request.param
E AttributeError: 'SubRequest' object has no attribute 'param'
I tried adding params=param_values, ids=ids
in the call to pytest.fixture in tvm/testing/utils.py. It fixed the unit test above, but caused hangs when running the TVM test suite.
Does anyone know how to fix this?