You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No OpKernel was registered to support Op 'Maximum' with these attrs.---iOS #10677
It looks like you are invoking something involving a gradient. If you are training on device, you likely need to change the makefile to add more ops to the build. Correct @petewarden?
Thank you for your reply, and I have read "READEME"many times. I don't know how to add more ops to the build.I wants to use his own model.My app built for Mobile will crash at runtime. I provide a screenshot.On the left side of the picture is the source code,and the path is "tensorflow/core/ops/math_ops.cc".On the right is my crash logs. I found that "DT_FLOAT" did not found in the source.How to solve?
Are you trying to do inference or training? If you are just trying to do inference, then you should really find out why your session is invoking ops that are called "gradients/...". It is far easier to figure out why that is happening than to add ops, and it probably will be important for performance.
@aselle Item seems @StarRain-L is trying to use his own model which worked well before and do inference on the device, your referenced issue has been closed and related missed ops has already been added in tf_op_files.txt in TF folder. By the way, from StarRain-L's screenshot, the session invoked 'gradients/..' that might be used in training process, is that why you are wondering he is doing inference or training?
@aselle I am doing the inference , and do you mean the session should not invoking ops "gradients" when doing the inference ? how can I remove these ops ? I just use the model file saved by python .
Can you give example code that exhibits the problem. Essentially when you call session.run() you ask for a given op and every dependent of that has to be run. You have a dependency on something called "Gradients/..." (that's where the error is showing up). I feel like you might be pulling on a training op or something dependent on a training op. If not, it is somewhat strange. Either way you could work to modify the build to add ops, but it is quite difficult.
@aselle The problem is resolved.My colleague reference your instructions to modify the model code, I am not very clear what he modified.And tf_op_files.txt increased " random_op. cc".I provide the reference link.Finally, thank you very much for your help, and if have any problem, I hope I can continue to ask you.
Activity
aselle commentedon Jun 13, 2017
It looks like you are invoking something involving a gradient. If you are training on device, you likely need to change the makefile to add more ops to the build. Correct @petewarden?
StarRain-L commentedon Jun 14, 2017
Thank you for your reply. I'm not quite understand what you say, and how to change the makefile to add more ops to the build?please!!!
aselle commentedon Jun 15, 2017
My point is that you appear to trying to run the training part of your graph rather than the inference part? Is this correct? The set of ops included in ios is limited to training, so you'll have to play with the makefile to add more ops to the build. See:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/makefile/README.md
and search for other issues. I think your issue is a duplicate of
#2929
StarRain-L commentedon Jun 16, 2017
Thank you for your reply, and I have read "READEME"many times. I don't know how to add more ops to the build.I wants to use his own model.My app built for Mobile will crash at runtime. I provide a screenshot.On the left side of the picture is the source code,and the path is "tensorflow/core/ops/math_ops.cc".On the right is my crash logs. I found that "DT_FLOAT" did not found in the source.How to solve?

aselle commentedon Jun 16, 2017
Are you trying to do inference or training? If you are just trying to do inference, then you should really find out why your session is invoking ops that are called "gradients/...". It is far easier to figure out why that is happening than to add ops, and it probably will be important for performance.
ccwinner commentedon Jun 16, 2017
@aselle Item seems @StarRain-L is trying to use his own model which worked well before and do inference on the device, your referenced issue has been closed and related missed ops has already been added in tf_op_files.txt in TF folder. By the way, from StarRain-L's screenshot, the session invoked 'gradients/..' that might be used in training process, is that why you are wondering he is doing inference or training?
StarRain-L commentedon Jun 16, 2017
@aselle I am doing the inference , and do you mean the session should not invoking ops "gradients" when doing the inference ? how can I remove these ops ? I just use the model file saved by python .
aselle commentedon Jun 16, 2017
Can you give example code that exhibits the problem. Essentially when you call session.run() you ask for a given op and every dependent of that has to be run. You have a dependency on something called "Gradients/..." (that's where the error is showing up). I feel like you might be pulling on a training op or something dependent on a training op. If not, it is somewhat strange. Either way you could work to modify the build to add ops, but it is quite difficult.
7 remaining items
StarRain-L commentedon Jun 19, 2017
@aselle The problem is resolved.My colleague reference your instructions to modify the model code, I am not very clear what he modified.And tf_op_files.txt increased " random_op. cc".I provide the reference link.Finally, thank you very much for your help, and if have any problem, I hope I can continue to ask you.
tatatodd commentedon Jun 20, 2017
Closing this out, as it looks like the problem was resolved.
Update XNNPACK and related dependencies
Update XNNPACK and related dependencies
Update XNNPACK and related dependencies
Update XNNPACK and related dependencies
Update XNNPACK and related dependencies
Update XNNPACK and related dependencies
Update XNNPACK and related dependencies
Update XNNPACK and related dependencies
Update XNNPACK and related dependencies
Update XNNPACK and related dependencies
Update XNNPACK and related dependencies