Esempio n. 1
0
 def summary(self, line_length=None, positions=None, print_fn=None):
     from odin.backend.keras_helpers import layer2text
     return layer2text(self)
def _net2str(net):
    if isinstance(net, keras.Sequential):
        return layer2text(net)
    elif isinstance(net, tfl.DistributionLambda):
        return layer2text(net)
    return str(net)
Esempio n. 3
0
 def __str__(self):
     return layer2text(self)
Esempio n. 4
0
 def __repr__(self):
     return layer2text(self)