Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
13f76d5c
Commit
13f76d5c
authored
Apr 25, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix decorator bug
parent
b5495059
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
examples/ResNet/cifar10-resnet.py
examples/ResNet/cifar10-resnet.py
+1
-1
tensorpack/models/_common.py
tensorpack/models/_common.py
+2
-2
No files found.
examples/ResNet/cifar10-resnet.py
View file @
13f76d5c
#!/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
...
...
tensorpack/models/_common.py
View file @
13f76d5c
...
...
@@ -6,7 +6,7 @@ import tensorflow as tf
from
functools
import
wraps
import
six
import
copy
import
decorator
#from decorator
import decorator
from
..tfutils
import
*
from
..tfutils.modelutils
import
*
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment