File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed 
tests/models/autoencoders Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,22 @@ def test_effective_gradient_checkpointing(self):
173173                continue 
174174            self .assertTrue (torch_all_close (param .grad .data , named_params_2 [name ].grad .data , atol = 3e-2 ))
175175
176+     @unittest .skip ( 
177+         "The forward pass of AutoencoderTiny creates a torch.float32 tensor. This causes inference in compute_dtype=torch.bfloat16 to fail. To fix:\n "  
178+         "1. Change the forward pass to be dtype agnostic.\n "  
179+         "2. Unskip this test."  
180+     ) 
181+     def  test_layerwise_upcasting_inference (self ):
182+         pass 
183+ 
184+     @unittest .skip ( 
185+         "The forward pass of AutoencoderTiny creates a torch.float32 tensor. This causes inference in compute_dtype=torch.bfloat16 to fail. To fix:\n "  
186+         "1. Change the forward pass to be dtype agnostic.\n "  
187+         "2. Unskip this test."  
188+     ) 
189+     def  test_layerwise_upcasting_memory (self ):
190+         pass 
191+ 
176192
177193@slow  
178194class  AutoencoderTinyIntegrationTests (unittest .TestCase ):
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments