You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "Lunderberg (via GitHub)" <gi...@apache.org> on 2024/04/25 19:59:16 UTC

[PR] [UnitTest] Use pytest's scope='session' for tvm.testing.parameter [tvm]

Lunderberg opened a new pull request, #16930:
URL: https://github.com/apache/tvm/pull/16930

   Prior to this commit, the `tvm.testing.parameter` utility defined a fixture with the default `scope="function"`.  However, this prevents use of these parameters as arguments for other fixtures that are themselves cached using pytest.  Since these are parameters, not large values that would be expensive to compute, there is no downside to caching them at the pytest level.
   
   This commit updates the scope of fixtures generated using `tvm.testing.parameter` to use `scope="session"` instead of the default `scope="function"`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [UnitTest] Use pytest's scope='session' for tvm.testing.parameter [tvm]

Posted by "masahi (via GitHub)" <gi...@apache.org>.
masahi merged PR #16930:
URL: https://github.com/apache/tvm/pull/16930


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [UnitTest] Use pytest's scope='session' for tvm.testing.parameter [tvm]

Posted by "Lunderberg (via GitHub)" <gi...@apache.org>.
Lunderberg commented on PR #16930:
URL: https://github.com/apache/tvm/pull/16930#issuecomment-2080643950

   @tvm-bot rerun ci


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org