-
Notifications
You must be signed in to change notification settings - Fork 85
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
esp32S3 tflite-microcontroller doesn't support SHAPE (不支持SHAPE算子) (TFMIC-31) #88
Comments
抱歉,使用github次数不多,不太熟练基本的操作,问题描述看起来有点难受,感谢帮忙 |
Hi @Criminal-9527, The Shape OP is supported. In fact, all the OPs supported by upstream tflite-micro are supported. Please add all the OPs in the last piece of code: static tflite::MicroMutableOpResolver<1> resolver; // The number inside <> should be equal to the number of OPs being added.
if (resolver.AddFullyConnected() != kTfLiteOk)
return;
If you have confirmed all these, Can you share the logs you see? Sharing a smallest possible example to reproduce the issue would be nice. That should include few layers of model embedded as C as well. |
@vikramdattu
使用setup和loop的格式是因为我需要在项目后期将代码转型arduino,这个我在main函数中操作过,不必担心。
还有就是关于这里
我已尝试过多种组合,包括增加<>里的数字到很大,手动加入shape操作,都未成功,其中下面这种我试过:
报错为: |
Okay, looks like this is working. The |
@vikramdattu 我使用了netron查看了模型的结构,部分结构如下: |
Hi @Criminal-9527 the If you want to use these OPs, you will need to implement these yourself and use those. reference |
报错为Didn't find op for builtin opcode “SHAPE",我查询过相关库代码,发现这里的报错是其遍历支持的操作列表之后并没有找到SHAPE的操作,导致 interpreter->AllocateTensors(); 这里失败。
在最后一行跑到了error,findop为查找操作表的操作。
我尝试过在下面这里加入AddShape操作(这个函数在库文件里面是真实存在的)
但是最后的报错是他认为我这个是自定义操作
The text was updated successfully, but these errors were encountered: