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
1871b615
Commit
1871b615
authored
Oct 13, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug in last commit (fix #929)
parent
238603b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tensorpack/tfutils/sesscreate.py
tensorpack/tfutils/sesscreate.py
+1
-1
No files found.
tensorpack/tfutils/sesscreate.py
View file @
1871b615
...
@@ -24,7 +24,6 @@ class NewSessionCreator(tf.train.SessionCreator):
...
@@ -24,7 +24,6 @@ class NewSessionCreator(tf.train.SessionCreator):
target, config: same as :meth:`Session.__init__()`.
target, config: same as :meth:`Session.__init__()`.
config: a :class:`tf.ConfigProto` instance, defaults to :func:`tfutils.get_default_sess_config()`
config: a :class:`tf.ConfigProto` instance, defaults to :func:`tfutils.get_default_sess_config()`
"""
"""
self
.
config
=
config
self
.
target
=
target
self
.
target
=
target
if
config
is
None
:
if
config
is
None
:
...
@@ -37,6 +36,7 @@ class NewSessionCreator(tf.train.SessionCreator):
...
@@ -37,6 +36,7 @@ class NewSessionCreator(tf.train.SessionCreator):
logger
.
warn
(
logger
.
warn
(
"User-provided custom session config may not work due to TF
\
"User-provided custom session config may not work due to TF
\
bugs. See https://github.com/tensorpack/tensorpack/issues/497 for workarounds."
)
bugs. See https://github.com/tensorpack/tensorpack/issues/497 for workarounds."
)
self
.
config
=
config
def
create_session
(
self
):
def
create_session
(
self
):
sess
=
tf
.
Session
(
target
=
self
.
target
,
config
=
self
.
config
)
sess
=
tf
.
Session
(
target
=
self
.
target
,
config
=
self
.
config
)
...
...
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