mirror of
https://github.com/AntoineHX/BU_Stoch_pool.git
synced 2025-05-04 09:40:46 +02:00
added forward fast in stoch.py, but it works only with ceil_mode=False
This commit is contained in:
parent
f7436d0002
commit
286921f8a0
3 changed files with 197 additions and 59 deletions
|
@ -26,7 +26,7 @@ class SAvg_Pool2d(nn.Module):
|
|||
out = savg_pool2d(x, self.stride, mode = self.mode,ceil_mode = self.ceil_mode)
|
||||
return out
|
||||
|
||||
stochmode = 'sim'#'sim'#'stride''stoch'''
|
||||
stochmode = 'stoch'#'sim'#'stride''stoch'''
|
||||
finalstochpool = True
|
||||
simmode = 'sbc'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue