File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 33setup (
44  name  =  'vector_quantize_pytorch' ,
55  packages  =  find_packages (),
6-   version  =  '1.11.1 ' ,
6+   version  =  '1.11.2 ' ,
77  license = 'MIT' ,
88  description  =  'Vector Quantization - Pytorch' ,
99  long_description_content_type  =  'text/markdown' ,
Original file line number Diff line number Diff line change @@ -163,7 +163,6 @@ def forward(
163163
164164                if  should_quantize_dropout  and  quantizer_index  >  rand_quantize_dropout_index :
165165                    all_indices .append (null_indices )
166-                     all_losses .append (null_loss )
167166                    continue 
168167
169168                quantized , indices  =  layer (residual  /  scale )
@@ -178,7 +177,7 @@ def forward(
178177
179178        quantized_out  =  self .project_out (quantized_out )
180179
181-         # stack all losses and  indices 
180+         # stack all indices 
182181
183182        all_indices  =  torch .stack (all_indices , dim  =  - 1 )
184183
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments