-
Notifications
You must be signed in to change notification settings - Fork 74k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tflite][android]deeplab-v3+ runtime error on Pad Ops #21266
Comments
We will investigate. Meanwhile, could you make sure your input tensors are 4D? Are you calling resizeInput()? |
@andrehentz I use pre-trained model from model_zoo https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md, I think it's 3-D tensor with shape [height, width, channels] for PAD.
seems Pad not support 3D tensor right now. |
Thanks @kismeter We are tracking this and will support 3D (and other) soon. |
Nagging Assignee @gargn: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly. |
Hello! I see there are still some ops (SPACE_TO_BATCH_ND, SPACE_TO_BATCH_ND) which support only 4D tensors: tensorflow/contrib/lite/kernels/space_to_batch_nd.cc:96 NumDimensions(op_context.input) != kInputDimensionNum (3 != 4) 3D support for this ops is highly required! Are you planning to implement it in near future? Should i create feature request? |
Just for a clarification, do you need BatchToSpace non-4D and SpaceToBatch non-4D, or just BatchToSpace non-4D? BatchToSpace non-4D hasn't been prioritized yet, contributions are welcome, but we are also tracking these operations requests here: #21526 to help with prioritizing. For that reason, moving forward we are closing individual issues for operation requests. Feel free to file an issue if you have more info on the specific model you are trying to convert. Thanks! |
In model im working on both BatchToSpace and SpaceToBatch are required, you can find some information in this issue #22146 about TOCO converter |
System information
Describe the problem
I download the pre-trained modals with MobileNet-v2 from mobilenetv2_coco_voc_trainaug. covered model to tflite then load into android application, I see internal error at OP Pad on prepare.
Source code / logs
using below command to cover the model without any errors:
below command to build tensorflow-lite.aar
Then I load optimized_graph.tflite and tensorflow-lite.aar into Android application project
run Interpreter
Error Logs:
The text was updated successfully, but these errors were encountered: