Comments (4)
- switch_case 一般可以用 if 替代,你可以上传一个简单模型,我们排期支持下
- 存在控制流算子 (if / while) 时,都会产生子图
- 这个你可以把各分支分别导出 pb 并转 mnn 模型来实现。不过建议还是换成 if ,加载1个mnn比较方便
from mnn.
- switch_case 一般可以用 if 替代,你可以上传一个简单模型,我们排期支持下
- 存在控制流算子 (if / while) 时,都会产生子图
- 这个你可以把各分支分别导出 pb 并转 mnn 模型来实现。不过建议还是换成 if ,加载1个mnn比较方便
if else在推理的时候不会很慢吗,如果是一定批量输入的话
from mnn.
批量输入建议不要用控制流的方式实现,可以用 select 类似的算子替代
from mnn.
批量输入建议不要用控制流的方式实现,可以用 select 类似的算子替代
那如果是MoE这类网络呢,有什么比较好的方式,select 类似的算子在MoE场景中似乎也会回到tf.case的问题上
from mnn.
Related Issues (20)
- 无法安装python api pymnn HOT 2
- CONV_TRANSPOSE反卷积算子不支持fp16格式,希望增加支持 HOT 1
- windows编译库太大,按照官网文档编译 HOT 1
- 是否支持鸿蒙 next 系统编译呢 HOT 1
- MNN CUDA后端benchmark运行时间为零且无其他反馈 HOT 5
- ubuntu22.04系统,硬件为i7-12700,对yolo8n模型进行推理。为什么利用AVX512指令集没有推理加速效果, HOT 5
- avx512编译失败 HOT 1
- 同一个模型,2.8.0版本模型转换失败而2.1.0转换成功 HOT 3
- MNN with OpenGL getting segmentation fault
- Resize, padding image to specific size using MNN ImageProcessig HOT 5
- UHDM模型cuda 显存比ORT大很多,耗时是ort的3倍 HOT 1
- can not convert this model to MNN
- MNN有没有windows x86编译好的库
- [Regression]: Performance degradation in MNN 2.8.1 / 2.8.0 for Android CPU HOT 7
- Convert this onnx model to MNN failed HOT 1
- funasr 模型转换失败 Floating point exception (core dumped) HOT 2
- RK3588 (A76+A55) + Ubuntu 22.04 + MNN_ARM82=ON: "MNNAbsMaxFP16.S:106: Error: operand 1 must be a SIMD vector register" HOT 4
- quantized.out int8量化后的模型在CPU后端运行resnet50出错(已更新到最新commit版本) HOT 10
- 静态shape转换后的模型模型,是否可以计算动态shape的输入 HOT 2
- Windows x64下使用expr进行较大规模卷积计算时崩溃
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mnn.