Skip to content

Commit

Permalink
More ABC fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvm committed Jan 17, 2015
1 parent 19e306a commit 2e15141
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions blocks/bricks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
import inspect
import functools
import logging
from abc import ABCMeta
from collections import OrderedDict
from itertools import chain

import numpy
from six import add_metaclass
from theano import tensor

from blocks.utils import (pack, repr_attrs, reraise_as, shared_floatx_zeros,
Expand All @@ -18,7 +16,6 @@
logger = logging.getLogger(__name__)


@add_metaclass(ABCMeta)
class Brick(object):
"""A brick encapsulates Theano operations with parameters.
Expand Down
1 change: 0 additions & 1 deletion blocks/bricks/sequence_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ def feedback(self, outputs):
pass


@add_metaclass(ABCMeta)
class AbstractReadout(AbstractEmitter, AbstractFeedback):
"""The interface for the readout component of a sequence generator.
Expand Down
2 changes: 1 addition & 1 deletion blocks/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from six import add_metaclass


@add_metaclass(ABCMeta)
class TrainingExtension(object):
"""The base class for training extensions.
Expand Down Expand Up @@ -73,6 +72,7 @@ def on_interrupt(self):
pass


@add_metaclass(ABCMeta)
class SimpleExtension(TrainingExtension):
"""A base class for simple extensions.
Expand Down
2 changes: 1 addition & 1 deletion blocks/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def __iter__(self):
pass


@add_metaclass(ABCMeta)
class TrainingLogRow(object):
"""A convenience interface for a row of the training log.
Expand Down Expand Up @@ -73,6 +72,7 @@ def __iter__(self):
return self.log.get_row_iterator(self.time)


@add_metaclass(ABCMeta)
class AbstractTrainingLog(object):
"""Base class for training logs.
Expand Down

0 comments on commit 2e15141

Please sign in to comment.