Skip to content

Commit

Permalink
fix decorator bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Apr 26, 2016
1 parent b549505 commit 13f76d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/ResNet/cifar10-resnet.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# File: cifar10_resnet.py
# File: cifar10-resnet.py
# Author: Yuxin Wu <ppwwyyxx@gmail.com>

import tensorflow as tf
Expand Down
4 changes: 2 additions & 2 deletions tensorpack/models/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from functools import wraps
import six
import copy
import decorator
#from decorator import decorator

from ..tfutils import *
from ..tfutils.modelutils import *
Expand All @@ -24,7 +24,7 @@ def layer_register(summary_activation=False, log_shape=True):
Can be overriden when creating the layer.
:param log_shape: log input/output shape of this layer
"""
@decorator.decorator
#@decorator only enable me when building docs.
def wrapper(func):
@wraps(func)
def wrapped_func(*args, **kwargs):
Expand Down

0 comments on commit 13f76d5

Please sign in to comment.