Skip to content

Instantly share code, notes, and snippets.

@joelouismarino
Created July 30, 2017 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelouismarino/330d77b54c4e98c0bd2247a5554a362f to your computer and use it in GitHub Desktop.
Save joelouismarino/330d77b54c4e98c0bd2247a5554a362f to your computer and use it in GitHub Desktop.
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