- 
                Notifications
    
You must be signed in to change notification settings  - Fork 6.5k
 
fix "Expected all tensors to be on the same device, but found at least two devices" error #11690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            31 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      6001899
              
                xx
              
              
                yao-matrix 8a1d6e5
              
                fix
              
              
                yao-matrix 603257b
              
                Update model_loading_utils.py
              
              
                yao-matrix 8cdfdd8
              
                Update test_models_unet_2d_condition.py
              
              
                yao-matrix 45e29bd
              
                Update test_models_unet_2d_condition.py
              
              
                yao-matrix 2a7c17d
              
                Merge branch 'main' into xpu
              
              
                yao-matrix fae7c70
              
                fix style
              
              
                yao-matrix 80fdbfc
              
                Merge branch 'main' into xpu
              
              
                yao-matrix 97a37a1
              
                Merge branch 'main' into xpu
              
              
                yao-matrix 5f0c794
              
                Merge branch 'main' into xpu
              
              
                yao-matrix 8cd06b3
              
                Merge branch 'main' into xpu
              
              
                yao-matrix 02a6a35
              
                Merge branch 'main' into xpu
              
              
                yao-matrix ed1a788
              
                Merge branch 'main' into xpu
              
              
                yao-matrix 220ce94
              
                Merge branch 'main' into xpu
              
              
                yao-matrix e59cb0c
              
                Merge branch 'main' into xpu
              
              
                yao-matrix fd618b5
              
                Merge branch 'main' into xpu
              
              
                yao-matrix c340f9e
              
                Merge branch 'main' into xpu
              
              
                yao-matrix e674ce7
              
                Merge branch 'main' into xpu
              
              
                yao-matrix d389758
              
                Merge branch 'main' into xpu
              
              
                yao-matrix 7e8ae22
              
                Merge branch 'main' into xpu
              
              
                yao-matrix c43bb19
              
                Merge branch 'main' into xpu
              
              
                yao-matrix 49ac5d4
              
                Merge branch 'main' into xpu
              
              
                yao-matrix b7148d6
              
                Merge branch 'main' into xpu
              
              
                yao-matrix bda0afd
              
                Merge branch 'main' into xpu
              
              
                yao-matrix 1ba8a88
              
                fix comments
              
              
                yao-matrix fd9fa99
              
                Update unet_2d_blocks.py
              
              
                yao-matrix 692f0bd
              
                Merge branch 'main' into xpu
              
              
                sayakpaul ab5f55c
              
                Merge branch 'main' into xpu
              
              
                sayakpaul 9b41f3a
              
                Merge branch 'main' into xpu
              
              
                yao-matrix 9948c9c
              
                update
              
              
                yao-matrix 38ff983
              
                Merge branch 'main' into xpu
              
              
                yao-matrix File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or 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
    
  
  
    
              
  
    
      This file contains hidden or 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
    
  
  
    
              
  
    
      This file contains hidden or 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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -358,7 +358,7 @@ class UNet2DConditionModelTests(ModelTesterMixin, UNetTesterMixin, unittest.Test | |
| model_class = UNet2DConditionModel | ||
| main_input_name = "sample" | ||
| # We override the items here because the unet under consideration is small. | ||
| model_split_percents = [0.5, 0.3, 0.4] | ||
| model_split_percents = [0.5, 0.34, 0.4] | ||
| 
     | 
||
| 
         There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since   | 
||
| @property | ||
| def dummy_input(self): | ||
| 
          
            
          
           | 
    ||
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is unrelated to this PR. Going forward prefer not including unrelated changes in a particular PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, will follow the rule going forward.