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
92ccfe0a
Commit
92ccfe0a
authored
Feb 20, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tensor name for batch norm (#663); plus some docs update.
parent
65a9fcc7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
13 deletions
+6
-13
docs/modules/utils.rst
docs/modules/utils.rst
+0
-8
examples/Char-RNN/char-rnn.py
examples/Char-RNN/char-rnn.py
+5
-1
tensorpack/models/batch_norm.py
tensorpack/models/batch_norm.py
+1
-1
tensorpack/tfutils/common.py
tensorpack/tfutils/common.py
+0
-1
tensorpack/train/interface.py
tensorpack/train/interface.py
+0
-2
No files found.
docs/modules/utils.rst
View file @
92ccfe0a
...
...
@@ -26,14 +26,6 @@ tensorpack.utils.fs module
:undoc-members:
:show-inheritance:
tensorpack.utils.globvars module
--------------------------------
.. automodule:: tensorpack.utils.globvars
:members:
:undoc-members:
:show-inheritance:
tensorpack.utils.loadcaffe module
---------------------------------
...
...
examples/Char-RNN/char-rnn.py
View file @
92ccfe0a
...
...
@@ -16,11 +16,15 @@ from six.moves import range
from
tensorpack
import
*
from
tensorpack.tfutils
import
summary
,
optimizer
from
tensorpack.tfutils.gradproc
import
GlobalNormClip
from
tensorpack.utils.globvars
import
globalns
as
param
import
tensorflow
as
tf
rnn
=
tf
.
contrib
.
rnn
class
_NS
:
pass
# noqa
param
=
_NS
()
# some model hyperparams to set
param
.
batch_size
=
128
param
.
rnn_size
=
256
...
...
tensorpack/models/batch_norm.py
View file @
92ccfe0a
...
...
@@ -54,7 +54,7 @@ def update_bn_ema(xn, batch_mean, batch_var,
else
:
tf
.
add_to_collection
(
tf
.
GraphKeys
.
UPDATE_OPS
,
update_op1
)
tf
.
add_to_collection
(
tf
.
GraphKeys
.
UPDATE_OPS
,
update_op2
)
return
xn
return
tf
.
identity
(
xn
,
name
=
'output'
)
def
reshape_for_bn
(
param
,
ndims
,
chan
,
data_format
):
...
...
tensorpack/tfutils/common.py
View file @
92ccfe0a
...
...
@@ -47,7 +47,6 @@ def get_default_sess_config(mem_fraction=0.99):
# conf.graph_options.rewrite_options.memory_optimization = \
# rwc.RewriterConfig.HEURISTICS
# May hurt performance
# conf.graph_options.optimizer_options.global_jit_level = tf.OptimizerOptions.ON_1
# conf.graph_options.place_pruned_graph = True
...
...
tensorpack/train/interface.py
View file @
92ccfe0a
...
...
@@ -2,8 +2,6 @@
# -*- coding: utf-8 -*-
# File: interface.py
import
tensorflow
as
tf
from
..input_source
import
(
InputSource
,
FeedInput
,
QueueInput
,
StagingInput
,
DummyConstantInput
)
from
..utils
import
logger
...
...
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