Skip to content

Instantly share code, notes, and snippets.

@phizaz
Created December 5, 2017 09:26
Show Gist options
  • Save phizaz/bb16c863f93d2778ceebb79c6a3ab450 to your computer and use it in GitHub Desktop.
Save phizaz/bb16c863f93d2778ceebb79c6a3ab450 to your computer and use it in GitHub Desktop.
Keras Empty Layer
class MyLayer(Layer):
def __init__(self, **kwargs):
...
super(MyConv, self).__init__(**kwargs)
def build(self, input_shape):
...
super(MyConv, self).build(input_shape)
def call(self, x):
...
return output
def compute_output_shape(self, input_shape):
...
return new_shape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment