mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Remove padding in with_array
This commit is contained in:
		
							parent
							
								
									3b2654db8f
								
							
						
					
					
						commit
						3cff201446
					
				| 
						 | 
				
			
			@ -478,7 +478,7 @@ def MaxoutWindowEncoder_ragged(
 | 
			
		|||
    model = clone(residual(cnn), depth)  # type: ignore[arg-type]
 | 
			
		||||
    model.set_dim("nO", width)
 | 
			
		||||
    receptive_field = window_size * depth
 | 
			
		||||
    return with_array(model, pad=receptive_field)  # type: ignore[arg-type]
 | 
			
		||||
    return with_array(model)  # type: ignore[arg-type]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@registry.architectures("spacy.MishWindowEncoder.v2")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user