def __repr__(self):
    s = '{name}({layout}, {act})'
    return s.format(name=self.__class__.__name__, act=(self.act if self.act else 'linear'), layout=('{0} -> {1}'.format(self._in_units, self._units) if self._in_units else self._units))
def __repr__(self):
    s = '{name}({layout}, {act})'
    return s.format(name=self.__class__.__name__, act=(self.act if self.act else 'linear'), layout=('{0} -> {1}'.format(self._in_units, self._units) if self._in_units else self._units))