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?










0












$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










share|improve this question









New contributor




M090009 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$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 throws can’t convert int64 to int32
    $endgroup$
    – M090009
    Mar 29 at 21:00















0












$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










share|improve this question









New contributor




M090009 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$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 throws can’t convert int64 to int32
    $endgroup$
    – M090009
    Mar 29 at 21:00













0












0








0





$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










share|improve this question









New contributor




M090009 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$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






share|improve this question









New contributor




M090009 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




M090009 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Mar 29 at 14:22







M090009













New contributor




M090009 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Mar 29 at 14:00









M090009M090009

1012




1012




New contributor




M090009 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





M090009 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






M090009 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • $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
















  • $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















$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










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.









draft saved

draft discarded


















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.









draft saved

draft discarded


















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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

Tähtien Talli Jäsenet | Lähteet | NavigointivalikkoSuomen Hippos – Tähtien Talli

Do these cracks on my tires look bad? The Next CEO of Stack OverflowDry rot tire should I replace?Having to replace tiresFishtailed so easily? Bad tires? ABS?Filling the tires with something other than air, to avoid puncture hassles?Used Michelin tires safe to install?Do these tyre cracks necessitate replacement?Rumbling noise: tires or mechanicalIs it possible to fix noisy feathered tires?Are bad winter tires still better than summer tires in winter?Torque converter failure - Related to replacing only 2 tires?Why use snow tires on all 4 wheels on 2-wheel-drive cars?