mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 07:57:35 +03:00 
			
		
		
		
	Fix init for padding
This commit is contained in:
		
							parent
							
								
									85ed5730a2
								
							
						
					
					
						commit
						233945bfe0
					
				|  | @ -110,6 +110,7 @@ def init(model, X=None, Y=None): | ||||||
| 
 | 
 | ||||||
|     ops = model.ops |     ops = model.ops | ||||||
|     W = normal_init(ops, W.shape, mean=float(ops.xp.sqrt(1.0 / nF * nI))) |     W = normal_init(ops, W.shape, mean=float(ops.xp.sqrt(1.0 / nF * nI))) | ||||||
|  |     pad = normal_init(ops, pad.shape, mean=1.0) | ||||||
|     model.set_param("W", W) |     model.set_param("W", W) | ||||||
|     model.set_param("b", b) |     model.set_param("b", b) | ||||||
|     model.set_param("pad", pad) |     model.set_param("pad", pad) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user