Created
December 5, 2017 09:26
-
-
Save phizaz/bb16c863f93d2778ceebb79c6a3ab450 to your computer and use it in GitHub Desktop.
Keras Empty Layer
This file contains hidden or 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 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