Created
July 30, 2017 04:01
-
-
Save joelouismarino/330d77b54c4e98c0bd2247a5554a362f to your computer and use it in GitHub Desktop.
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
class PoolHelper(Layer): | |
def __init__(self, **kwargs): | |
super(PoolHelper, self).__init__(**kwargs) | |
def call(self, x, mask=None): | |
return x[:,:,1:,1:] | |
def get_config(self): | |
config = {} | |
base_config = super(PoolHelper, self).get_config() | |
return dict(list(base_config.items()) + list(config.items())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment