Created
June 4, 2020 02:56
-
-
Save nudles/8682e94ead7e875e769716f4b835ac18 to your computer and use it in GitHub Desktop.
xceptionet get/set params
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 Block(layer.Layer): | |
def set_params(self, parameters): | |
for lyr in self.layers: | |
lyr.set_params(parameters) | |
def get_params(self): | |
params = {} | |
for lyr in self.layers: | |
params.update(lyr.get_params()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment