This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import tensorflow as tf | |
import tensorflow.keras as keras | |
import tensorflow.keras.backend as K | |
def compute_amount_padding(L, F, S): | |
'''Compute the amount of padding to add prior to a 'valid' convolution to obtain | |
the same output size as for a 'same' convolution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am kvanhoey on github. | |
* I am kvanhoey (https://keybase.io/kvanhoey) on keybase. | |
* I have a public key ASBOPSr_2_VSeXm53EVeRQs9i0EBNzGHOaILXGVg64XnpAo | |
To claim this, I am signing this object: |