File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -225,12 +225,12 @@ def _populate_zero_collision_tbe_params(
225225    meta_header_lens  =  [0 ] *  len (config .embedding_tables )
226226    for  i , table  in  enumerate (config .embedding_tables ):
227227        # virtual_table_eviction_policy won't be None in reality: https://fburl.com/code/864a0w0f 
228-         if   table . virtual_table_eviction_policy   is   not   None : 
229-             meta_header_lens [ i ]  =  ( 
230-                  table . virtual_table_eviction_policy . get_meta_header_len () 
231-              )
232-              if  not  isinstance (table .virtual_table_eviction_policy , NoEvictionPolicy ):
233-                  enabled  =  True 
228+         assert  ( 
229+             table . virtual_table_eviction_policy   is   not   None 
230+         ),  "virtual_table_eviction_policy for kvzch table should not be None" 
231+         meta_header_lens [ i ]  =   table . virtual_table_eviction_policy . get_meta_header_len ( )
232+         if  not  isinstance (table .virtual_table_eviction_policy , NoEvictionPolicy ):
233+             enabled  =  True 
234234    if  enabled :
235235        counter_thresholds  =  [0 ] *  len (config .embedding_tables )
236236        ttls_in_mins  =  [0 ] *  len (config .embedding_tables )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments