Skip to content

No OpKernel was registered to support Op 'Maximum' with these attrs.---iOS #10677

Closed

Description

@StarRain-L

Consult: excuse me, write own model file, called collapse, iOS,

snip20170613_6

Activity

  1. aselle commented on Jun 13, 2017

    @aselle
    Contributor

    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?

  2. added
    stat:awaiting response
    type:build/install
    on Jun 13, 2017
  3. StarRain-L commented on Jun 14, 2017

    @StarRain-L
    Author

    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!!!

  4. removed
    stat:awaiting response
    on Jun 14, 2017
  5. aselle commented on Jun 15, 2017

    @aselle
    Contributor

    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

  6. added
    stat:awaiting response
    on Jun 15, 2017
  7. StarRain-L commented on Jun 16, 2017

    @StarRain-L
    Author

    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?
    27174808-ed5e7b54-51ef-11e7-8813-a94590972702

  8. removed
    stat:awaiting response
    on Jun 16, 2017
  9. aselle commented on Jun 16, 2017

    @aselle
    Contributor

    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.

  10. added
    stat:awaiting response
    on Jun 16, 2017
  11. ccwinner commented on Jun 16, 2017

    @ccwinner

    @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?

  12. StarRain-L commented on Jun 16, 2017

    @StarRain-L
    Author

    @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 .

  13. removed
    stat:awaiting response
    on Jun 16, 2017
  14. aselle commented on Jun 16, 2017

    @aselle
    Contributor

    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.

  15. 7 remaining items

  16. StarRain-L commented on Jun 19, 2017

    @StarRain-L
    Author

    @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.

    https://github.com/tensorflow/tensorflow/search?l=C%2B%2B&q=TruncatedNormal&type=&utf8=✓

    https://stackoverflow.com/questions/40855271/no-opkernel-was-registered-to-support-op-switch-with-these-attrs-on-ios/43627334

  17. removed
    stat:awaiting response
    on Jun 19, 2017
  18. tatatodd commented on Jun 20, 2017

    @tatatodd
    Contributor

    Closing this out, as it looks like the problem was resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:build/install

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions