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

Quoting Keynes in a lectureIs differentiated instruction permitted by universities?How to make students learn prerequisitesUnsatisfactory Instructor Evaluations: balancing of expectations of engineering studentsWhat is the difference between a “statistician”, “applied statistician”, and an academic applying advanced stats within their field?Listing in reference section, but not quotingHow to efficiently use time while preparing for a class?Graduate Admissions: Teaching Emphasisstrategies for sharing teaching information with universities I don't personally have contacts withIs there an efficient way to give a large class of students feedback about their assignments?Is it unreasonable to expect students to read the lecture notes before attending the first class?

Rank groups within a grouped sequence of TRUE/FALSE and NAGrouping functions (tapply, by, aggregate) and the *apply familyCharacters counting and subletting specific patternsWhat is the purpose of setting a key in data.table?data.table vs dplyr: can one do something well the other can't or does poorly?how to make a bar plot for a list of dataframes?How to group by unique values in a list in RPandas - Alternative to rank() function that gives unique ordinal ranks for a columnRank within group in for loop in RData transformation: from dyadic to observational data in RGetting map from purrr to work with paste0

Are all passive ability checks floors for active ability checks?Does passive perception supersede active perception?Which skills can be used passively?Active Opposition with Free-Form Professions in Fate5E Trap/Ambush/Stealth Mechanics VS Passive Perception ConfusionInteraction between perception and stealth in obscured conditionsHow does Keen Sight affect Passive Perception?Are all d20 rolls either attacks, saves or ability checks?Can players declare that they are making a specific ability check?Can I see a Hidden creature that is not obscured at all?Can a Stealth check ever be made passively?Is this alternate version of the Observant feat balanced?What is the minimum amount of skill points per HD?