"src/vscode:/vscode.git/clone" did not exist on "07ffe73f796db1c19555fee04711f1ab71a92de2"
  • Fanli Lin's avatar
    [tests] make tests device-agnostic (part 3) (#10437) · ec37e209
    Fanli Lin authored
    
    
    * initial comit
    
    * fix empty cache
    
    * fix one more
    
    * fix style
    
    * update device functions
    
    * update
    
    * update
    
    * Update src/diffusers/utils/testing_utils.py
    Co-authored-by: default avatarhlky <hlky@hlky.ac>
    
    * Update src/diffusers/utils/testing_utils.py
    Co-authored-by: default avatarhlky <hlky@hlky.ac>
    
    * Update src/diffusers/utils/testing_utils.py
    Co-authored-by: default avatarhlky <hlky@hlky.ac>
    
    * Update tests/pipelines/controlnet/test_controlnet.py
    Co-authored-by: default avatarhlky <hlky@hlky.ac>
    
    * Update src/diffusers/utils/testing_utils.py
    Co-authored-by: default avatarhlky <hlky@hlky.ac>
    
    * Update src/diffusers/utils/testing_utils.py
    Co-authored-by: default avatarhlky <hlky@hlky.ac>
    
    * Update tests/pipelines/controlnet/test_controlnet.py
    Co-authored-by: default avatarhlky <hlky@hlky.ac>
    
    * with gc.collect
    
    * update
    
    * make style
    
    * check_torch_dependencies
    
    * add mps empty cache
    
    * bug fix
    
    * Apply suggestions from code review
    
    ---------
    Co-authored-by: default avatarhlky <hlky@hlky.ac>
    ec37e209
testing_utils.py 42.4 KB