Created
November 28, 2019 10:46
-
-
Save sergei-mironov/e0dab4bd57bbfc4be025902789370dac to your computer and use it in GitHub Desktop.
demo_subcl.py
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 MyModel(keras.Model): | |
def __init__(self, **kwargs): | |
super(MyModel, self).__init__(**kwargs) | |
self.dense_1 = layers.Dense(64, activation='relu') | |
self.dense_2 = layers.Dense(10) | |
def call(self, inputs): | |
return self.dense_2(self.dense_1(inputs)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment