tf.get_tensor_by_name(), some nodes of the graph are not exist
up vote
0
down vote
favorite
these is some tensors and op like these:
x = tf.placeholder(....., name='input')
y = tf.placeholder(....., name='label')
...
fc_droop = tf.nn.dropout(....., name='fc1')
...
y_pred = tf.nn.softmax(....., name='predict')
...
train_step = tf.train.AdamOptimizer(lr).minimize(loss, name='train_step')
after training done, I save it as my model.
but when I restore it, and get the graph node by tf.get_tensor_by_name('xx:0')
the 'input' 'label' 'predict' are all ok, but the 'fc1' 'train_step' get the err:
the name 'xx' refers to a tensor which does not exist
what's the problem, pls.
tensorflow graph-theory
add a comment |
up vote
0
down vote
favorite
these is some tensors and op like these:
x = tf.placeholder(....., name='input')
y = tf.placeholder(....., name='label')
...
fc_droop = tf.nn.dropout(....., name='fc1')
...
y_pred = tf.nn.softmax(....., name='predict')
...
train_step = tf.train.AdamOptimizer(lr).minimize(loss, name='train_step')
after training done, I save it as my model.
but when I restore it, and get the graph node by tf.get_tensor_by_name('xx:0')
the 'input' 'label' 'predict' are all ok, but the 'fc1' 'train_step' get the err:
the name 'xx' refers to a tensor which does not exist
what's the problem, pls.
tensorflow graph-theory
welcome to StackOverflow; please review how to ask a good question, and please provide a minimal, complete, and verifiable example
– landru27
Nov 12 at 3:43
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
these is some tensors and op like these:
x = tf.placeholder(....., name='input')
y = tf.placeholder(....., name='label')
...
fc_droop = tf.nn.dropout(....., name='fc1')
...
y_pred = tf.nn.softmax(....., name='predict')
...
train_step = tf.train.AdamOptimizer(lr).minimize(loss, name='train_step')
after training done, I save it as my model.
but when I restore it, and get the graph node by tf.get_tensor_by_name('xx:0')
the 'input' 'label' 'predict' are all ok, but the 'fc1' 'train_step' get the err:
the name 'xx' refers to a tensor which does not exist
what's the problem, pls.
tensorflow graph-theory
these is some tensors and op like these:
x = tf.placeholder(....., name='input')
y = tf.placeholder(....., name='label')
...
fc_droop = tf.nn.dropout(....., name='fc1')
...
y_pred = tf.nn.softmax(....., name='predict')
...
train_step = tf.train.AdamOptimizer(lr).minimize(loss, name='train_step')
after training done, I save it as my model.
but when I restore it, and get the graph node by tf.get_tensor_by_name('xx:0')
the 'input' 'label' 'predict' are all ok, but the 'fc1' 'train_step' get the err:
the name 'xx' refers to a tensor which does not exist
what's the problem, pls.
tensorflow graph-theory
tensorflow graph-theory
edited Nov 13 at 5:15
Dominique Fortin
1,642816
1,642816
asked Nov 12 at 3:37
yang bai
1
1
welcome to StackOverflow; please review how to ask a good question, and please provide a minimal, complete, and verifiable example
– landru27
Nov 12 at 3:43
add a comment |
welcome to StackOverflow; please review how to ask a good question, and please provide a minimal, complete, and verifiable example
– landru27
Nov 12 at 3:43
welcome to StackOverflow; please review how to ask a good question, and please provide a minimal, complete, and verifiable example
– landru27
Nov 12 at 3:43
welcome to StackOverflow; please review how to ask a good question, and please provide a minimal, complete, and verifiable example
– landru27
Nov 12 at 3:43
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53255652%2ftf-get-tensor-by-name-some-nodes-of-the-graph-are-not-exist%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
welcome to StackOverflow; please review how to ask a good question, and please provide a minimal, complete, and verifiable example
– landru27
Nov 12 at 3:43