Skip to content

Commit

Permalink
fixing docs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
achaiah committed May 7, 2019
1 parent c1471d2 commit 8e0b32f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pywick/models/segmentation/testnets/transition_down.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
from torch.nn import Sequential, BatchNorm2d, ReLU, Conv2d, Dropout2d, MaxPool2d
import re
from itertools import chain
from .utils import RichRepr


class TransitionDown(RichRepr, Sequential):
class TransitionDown(Sequential):
r"""
Transition Down Block as described in [FCDenseNet](https://arxiv.org/abs/1611.09326),
plus compression from [DenseNet](https://arxiv.org/abs/1608.06993)
Expand Down Expand Up @@ -40,7 +39,7 @@ def __init__(self, in_channels: int, compression: float = 1.0, dropout: float =
self.add_module('pool', MaxPool2d(kernel_size=2, stride=2))

def repr_in(self, *args, **kwargs):
res = super(RichRepr, self).__repr__()
res = self.__repr__()
args = filter(lambda s: len(s) > 0, map(str, args))
kwargs = (f'{k}={v}' for k, v in kwargs.items())
desc = ', '.join(chain(args, kwargs))
Expand Down

0 comments on commit 8e0b32f

Please sign in to comment.