forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Operator Versioning][Test] Use hypothesis for better test input data…
… and broader coverage (pytorch#70263) Summary: Pull Request resolved: pytorch#70263 Leverage the hypothesis library as it's more systematic way for testing. To write a test, it needs two parts: 1. A function that looks like a normal test in your test framework of choice but with some additional arguments 2. A given decorator that specifies how to provide those arguments. ghstack-source-id: 146344955 Test Plan: ``` buck test mode/opt //caffe2/test:jit python test/test_jit.py TestSaveLoadForOpVersion ``` Reviewed By: iseeyuan Differential Revision: D33244389 fbshipit-source-id: c93d23f3d9575ebcb4e927a8caee42f4c3a6939d
- Loading branch information
1 parent
c627211
commit 18dd5cd
Showing
1 changed file
with
45 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters