• moto's avatar
    Change parameterized testing system to be compatible with unittest (#712) · d2724481
    moto authored
    
    
    * Change parameterized testing system to be compatible with unittest
    
    Summary: The previous implementation of parameterized testing worked by modifying test.common_utils inplace.  This doesn't work in general because unittest's contract with test modules is such that it must be able to load the module and run the test itself.  Because the previous implementation needed to load the module and modify it, it is incompatible.
    
    Reviewed By: mthrok
    
    Differential Revision: D21964676
    Co-authored-by: default avatarBen Mehne <bmehne@fb.com>
    d2724481
torchscript_consistency_cpu_test.py 420 Bytes