Change one node type in Tensorflow graph2019 Community Moderator ElectionTensorflow skewed cost functionTensorflow neural network TypeError: Fetch argument has invalid typeUsing tensorflow for any type of datasetCan TF turn a given graph into a recursive one?Connect output node to next hidden node in RNNHow to change learning rate of MomentumOptimizer in tensorflowWhat is one hot encoding in tensorflow?Why Tensorflow does NOT quit when CUDA_ERROR_OUT_OF_MEMORYIssue with Custom object detection using tensorflow when Training on a single type of objectHow general are the possible computations of a tensorflow Graph?
In Bayesian inference, why are some terms dropped from the posterior predictive?
How do I exit BASH while loop using modulus operator?
Processor speed limited at 0.4 Ghz
Is it possible to static_assert that a lambda is not generic?
Can compressed videos be decoded back to their uncompresed original format?
Different meanings of こわい
Theorists sure want true answers to this!
One verb to replace 'be a member of' a club
Does Fukaya see all symplectic topology?
How much mains leakage does an Ethernet connection to a PC induce, and what is the operating leakage path?
Alternative to sending password over mail?
How to show a landlord what we have in savings?
Can we compute the area of a quadrilateral with one right angle when we only know the lengths of any three sides?
Does Dispel Magic work on Tiny Hut?
Unlock My Phone! February 2018
Rotate ASCII Art by 45 Degrees
Can a virus destroy the BIOS of a modern computer?
What is a Samsaran Word™?
Is it a bad idea to plug the other end of ESD strap to wall ground?
Is this draw by repetition?
How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?
Placement of More Information/Help Icon button for Radio Buttons
In 'Revenger,' what does 'cove' come from?
How can saying a song's name be a copyright violation?
Change one node type in Tensorflow graph
2019 Community Moderator ElectionTensorflow skewed cost functionTensorflow neural network TypeError: Fetch argument has invalid typeUsing tensorflow for any type of datasetCan TF turn a given graph into a recursive one?Connect output node to next hidden node in RNNHow to change learning rate of MomentumOptimizer in tensorflowWhat is one hot encoding in tensorflow?Why Tensorflow does NOT quit when CUDA_ERROR_OUT_OF_MEMORYIssue with Custom object detection using tensorflow when Training on a single type of objectHow general are the possible computations of a tensorflow Graph?
$begingroup$
So I have a tensorflow graph saved in a .pb
file, it works well on my machine, but when I run it on tensorflow v 1.3 it loads fine though it crashes with the following error
InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'Reshape' with these attrs. Registered devices: [CPU], Registered kernels:
device='CPU'; Tshape in [DT_INT32]
device='GPU'; T in [DT_COMPLEX128]; Tshape in [DT_INT32]
device='GPU'; T in [DT_COMPLEX64]; Tshape in [DT_INT32]
device='GPU'; T in [DT_INT8]; Tshape in [DT_INT32]
device='GPU'; T in [DT_UINT8]; Tshape in [DT_INT32]
device='GPU'; T in [DT_INT16]; Tshape in [DT_INT32]
device='GPU'; T in [DT_UINT16]; Tshape in [DT_INT32]
device='GPU'; T in [DT_INT64]; Tshape in [DT_INT32]
device='GPU'; T in [DT_DOUBLE]; Tshape in [DT_INT32]
device='GPU'; T in [DT_FLOAT]; Tshape in [DT_INT32]
device='GPU'; T in [DT_HALF]; Tshape in [DT_INT32]
[[Node: Reshape_165 = Reshape[T=DT_FLOAT, Tshape=DT_INT64](transpose_145, add_31)]]
After investigating I found out that the Reshape_165
operation is of shape DT_INT64
and v1.3 doesn't supportDT_INT64
for Reshape
as the message reads, so I was wondering if there's a way to change the Reshape_165
operation dtype to DT_INT32
mind you the whole graph gets executed but for this operation which is the one just before the outputs concat_52
and concat_53
add_31
Reshape_165
concat_52/axis
concat_52
concat_53/axis
concat_53
tensorflow
New contributor
$endgroup$
add a comment |
$begingroup$
So I have a tensorflow graph saved in a .pb
file, it works well on my machine, but when I run it on tensorflow v 1.3 it loads fine though it crashes with the following error
InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'Reshape' with these attrs. Registered devices: [CPU], Registered kernels:
device='CPU'; Tshape in [DT_INT32]
device='GPU'; T in [DT_COMPLEX128]; Tshape in [DT_INT32]
device='GPU'; T in [DT_COMPLEX64]; Tshape in [DT_INT32]
device='GPU'; T in [DT_INT8]; Tshape in [DT_INT32]
device='GPU'; T in [DT_UINT8]; Tshape in [DT_INT32]
device='GPU'; T in [DT_INT16]; Tshape in [DT_INT32]
device='GPU'; T in [DT_UINT16]; Tshape in [DT_INT32]
device='GPU'; T in [DT_INT64]; Tshape in [DT_INT32]
device='GPU'; T in [DT_DOUBLE]; Tshape in [DT_INT32]
device='GPU'; T in [DT_FLOAT]; Tshape in [DT_INT32]
device='GPU'; T in [DT_HALF]; Tshape in [DT_INT32]
[[Node: Reshape_165 = Reshape[T=DT_FLOAT, Tshape=DT_INT64](transpose_145, add_31)]]
After investigating I found out that the Reshape_165
operation is of shape DT_INT64
and v1.3 doesn't supportDT_INT64
for Reshape
as the message reads, so I was wondering if there's a way to change the Reshape_165
operation dtype to DT_INT32
mind you the whole graph gets executed but for this operation which is the one just before the outputs concat_52
and concat_53
add_31
Reshape_165
concat_52/axis
concat_52
concat_53/axis
concat_53
tensorflow
New contributor
$endgroup$
$begingroup$
One hack is to export Graph as Json, edit it and load it back as protobuf. Does that work in this situation ? stackoverflow.com/questions/41575442/…
$endgroup$
– Shamit Verma
Mar 29 at 14:05
$begingroup$
Let me give it a try @ShamitVerma
$endgroup$
– M090009
Mar 29 at 14:21
$begingroup$
@ShamitVerma but about the weights?
$endgroup$
– M090009
Mar 29 at 14:25
$begingroup$
Weights should be included in Json version.
$endgroup$
– Shamit Verma
Mar 29 at 14:28
$begingroup$
I tried it out, but unfortunately it doesn’t work and throwscan’t convert int64 to int32
$endgroup$
– M090009
Mar 29 at 21:00
add a comment |
$begingroup$
So I have a tensorflow graph saved in a .pb
file, it works well on my machine, but when I run it on tensorflow v 1.3 it loads fine though it crashes with the following error
InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'Reshape' with these attrs. Registered devices: [CPU], Registered kernels:
device='CPU'; Tshape in [DT_INT32]
device='GPU'; T in [DT_COMPLEX128]; Tshape in [DT_INT32]
device='GPU'; T in [DT_COMPLEX64]; Tshape in [DT_INT32]
device='GPU'; T in [DT_INT8]; Tshape in [DT_INT32]
device='GPU'; T in [DT_UINT8]; Tshape in [DT_INT32]
device='GPU'; T in [DT_INT16]; Tshape in [DT_INT32]
device='GPU'; T in [DT_UINT16]; Tshape in [DT_INT32]
device='GPU'; T in [DT_INT64]; Tshape in [DT_INT32]
device='GPU'; T in [DT_DOUBLE]; Tshape in [DT_INT32]
device='GPU'; T in [DT_FLOAT]; Tshape in [DT_INT32]
device='GPU'; T in [DT_HALF]; Tshape in [DT_INT32]
[[Node: Reshape_165 = Reshape[T=DT_FLOAT, Tshape=DT_INT64](transpose_145, add_31)]]
After investigating I found out that the Reshape_165
operation is of shape DT_INT64
and v1.3 doesn't supportDT_INT64
for Reshape
as the message reads, so I was wondering if there's a way to change the Reshape_165
operation dtype to DT_INT32
mind you the whole graph gets executed but for this operation which is the one just before the outputs concat_52
and concat_53
add_31
Reshape_165
concat_52/axis
concat_52
concat_53/axis
concat_53
tensorflow
New contributor
$endgroup$
So I have a tensorflow graph saved in a .pb
file, it works well on my machine, but when I run it on tensorflow v 1.3 it loads fine though it crashes with the following error
InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'Reshape' with these attrs. Registered devices: [CPU], Registered kernels:
device='CPU'; Tshape in [DT_INT32]
device='GPU'; T in [DT_COMPLEX128]; Tshape in [DT_INT32]
device='GPU'; T in [DT_COMPLEX64]; Tshape in [DT_INT32]
device='GPU'; T in [DT_INT8]; Tshape in [DT_INT32]
device='GPU'; T in [DT_UINT8]; Tshape in [DT_INT32]
device='GPU'; T in [DT_INT16]; Tshape in [DT_INT32]
device='GPU'; T in [DT_UINT16]; Tshape in [DT_INT32]
device='GPU'; T in [DT_INT64]; Tshape in [DT_INT32]
device='GPU'; T in [DT_DOUBLE]; Tshape in [DT_INT32]
device='GPU'; T in [DT_FLOAT]; Tshape in [DT_INT32]
device='GPU'; T in [DT_HALF]; Tshape in [DT_INT32]
[[Node: Reshape_165 = Reshape[T=DT_FLOAT, Tshape=DT_INT64](transpose_145, add_31)]]
After investigating I found out that the Reshape_165
operation is of shape DT_INT64
and v1.3 doesn't supportDT_INT64
for Reshape
as the message reads, so I was wondering if there's a way to change the Reshape_165
operation dtype to DT_INT32
mind you the whole graph gets executed but for this operation which is the one just before the outputs concat_52
and concat_53
add_31
Reshape_165
concat_52/axis
concat_52
concat_53/axis
concat_53
tensorflow
tensorflow
New contributor
New contributor
edited Mar 29 at 14:22
M090009
New contributor
asked Mar 29 at 14:00
M090009M090009
1012
1012
New contributor
New contributor
$begingroup$
One hack is to export Graph as Json, edit it and load it back as protobuf. Does that work in this situation ? stackoverflow.com/questions/41575442/…
$endgroup$
– Shamit Verma
Mar 29 at 14:05
$begingroup$
Let me give it a try @ShamitVerma
$endgroup$
– M090009
Mar 29 at 14:21
$begingroup$
@ShamitVerma but about the weights?
$endgroup$
– M090009
Mar 29 at 14:25
$begingroup$
Weights should be included in Json version.
$endgroup$
– Shamit Verma
Mar 29 at 14:28
$begingroup$
I tried it out, but unfortunately it doesn’t work and throwscan’t convert int64 to int32
$endgroup$
– M090009
Mar 29 at 21:00
add a comment |
$begingroup$
One hack is to export Graph as Json, edit it and load it back as protobuf. Does that work in this situation ? stackoverflow.com/questions/41575442/…
$endgroup$
– Shamit Verma
Mar 29 at 14:05
$begingroup$
Let me give it a try @ShamitVerma
$endgroup$
– M090009
Mar 29 at 14:21
$begingroup$
@ShamitVerma but about the weights?
$endgroup$
– M090009
Mar 29 at 14:25
$begingroup$
Weights should be included in Json version.
$endgroup$
– Shamit Verma
Mar 29 at 14:28
$begingroup$
I tried it out, but unfortunately it doesn’t work and throwscan’t convert int64 to int32
$endgroup$
– M090009
Mar 29 at 21:00
$begingroup$
One hack is to export Graph as Json, edit it and load it back as protobuf. Does that work in this situation ? stackoverflow.com/questions/41575442/…
$endgroup$
– Shamit Verma
Mar 29 at 14:05
$begingroup$
One hack is to export Graph as Json, edit it and load it back as protobuf. Does that work in this situation ? stackoverflow.com/questions/41575442/…
$endgroup$
– Shamit Verma
Mar 29 at 14:05
$begingroup$
Let me give it a try @ShamitVerma
$endgroup$
– M090009
Mar 29 at 14:21
$begingroup$
Let me give it a try @ShamitVerma
$endgroup$
– M090009
Mar 29 at 14:21
$begingroup$
@ShamitVerma but about the weights?
$endgroup$
– M090009
Mar 29 at 14:25
$begingroup$
@ShamitVerma but about the weights?
$endgroup$
– M090009
Mar 29 at 14:25
$begingroup$
Weights should be included in Json version.
$endgroup$
– Shamit Verma
Mar 29 at 14:28
$begingroup$
Weights should be included in Json version.
$endgroup$
– Shamit Verma
Mar 29 at 14:28
$begingroup$
I tried it out, but unfortunately it doesn’t work and throws
can’t convert int64 to int32
$endgroup$
– M090009
Mar 29 at 21:00
$begingroup$
I tried it out, but unfortunately it doesn’t work and throws
can’t convert int64 to int32
$endgroup$
– M090009
Mar 29 at 21:00
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "557"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
M090009 is a new contributor. Be nice, and check out our Code of Conduct.
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%2fdatascience.stackexchange.com%2fquestions%2f48219%2fchange-one-node-type-in-tensorflow-graph%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
M090009 is a new contributor. Be nice, and check out our Code of Conduct.
M090009 is a new contributor. Be nice, and check out our Code of Conduct.
M090009 is a new contributor. Be nice, and check out our Code of Conduct.
M090009 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Data Science Stack Exchange!
- 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.
Use MathJax to format equations. MathJax reference.
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%2fdatascience.stackexchange.com%2fquestions%2f48219%2fchange-one-node-type-in-tensorflow-graph%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
$begingroup$
One hack is to export Graph as Json, edit it and load it back as protobuf. Does that work in this situation ? stackoverflow.com/questions/41575442/…
$endgroup$
– Shamit Verma
Mar 29 at 14:05
$begingroup$
Let me give it a try @ShamitVerma
$endgroup$
– M090009
Mar 29 at 14:21
$begingroup$
@ShamitVerma but about the weights?
$endgroup$
– M090009
Mar 29 at 14:25
$begingroup$
Weights should be included in Json version.
$endgroup$
– Shamit Verma
Mar 29 at 14:28
$begingroup$
I tried it out, but unfortunately it doesn’t work and throws
can’t convert int64 to int32
$endgroup$
– M090009
Mar 29 at 21:00