Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.tensorflow
Commits
66a416bf
Commit
66a416bf
authored
Nov 14, 2016
by
Tiago de Freitas Pereira
Browse files
Removed the clear devices
parent
1a517ecd
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/learn/tensorflow/network/SequenceNetwork.py
View file @
66a416bf
...
...
@@ -322,8 +322,8 @@ class SequenceNetwork(six.with_metaclass(abc.ABCMeta, object)):
session
=
Session
.
instance
().
session
self
.
sequence_net
=
pickle
.
loads
(
open
(
path
+
"_sequence_net.pickle"
).
read
())
saver
=
tf
.
train
.
import_meta_graph
(
path
+
".meta"
,
clear_devices
=
clear_devices
)
#
saver = tf.train.import_meta_graph(path + ".meta")
#
saver = tf.train.import_meta_graph(path + ".meta", clear_devices=clear_devices)
saver
=
tf
.
train
.
import_meta_graph
(
path
+
".meta"
)
saver
.
restore
(
session
,
path
)
self
.
inference_graph
=
tf
.
get_collection
(
"inference_graph"
)[
0
]
self
.
inference_placeholder
=
tf
.
get_collection
(
"inference_placeholder"
)[
0
]
...
...
Write
Preview
Supports
Markdown
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