Comments (2)
你好,确实是这样的,这个仓库主要是提供了一个学习如何写einsum插件的模板,因此这里只实现了这一种简单的操作,你可以仿照着自己实现其他操作,应该不难。
我这里没有实现nkctv,kvw->nctw
的原因是:
我使用的推理函数是cublasSgemm,这个函数只能进行二维矩阵的运算,而nkctv中的kv并不挨边,所以没办法使用该函数实现这个操作。(如果你可以找到如何实现这种跨维度矩阵运算的库,请告诉我^_^)
所以你可以先将nkctv维度转换为nctkv,然后再使用这个仓库中的算子,这样就可以用这两步替代ST-GCN中的nkctv,kvw->nctw
操作了,结果应该是一样的。
from tensorrt-einsumplugin.
你好,在时空图卷积神经网络的操作应该是“nkctv,kvw->nctw”,而你的代码中equation == "nctkv,kvw->nctw"。
你好,目前即使是最新的TensorRT8依然没有支持einsum算子,而从C++层自己写einsum插件难度比较大,其实我们可以从python层将torch.enisum替换为其他TensorRT支持的常规算子,我将这个想法进行了总结,写在了:https://www.stubbornhuang.com/1741,我已经使用了这个方法完成了模型转换并且得到正确的推理结果,如果你依然存在这个问题,不妨看下我的想法,吃水不忘挖井人!
from tensorrt-einsumplugin.
Related Issues (5)
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 tensorrt-einsumplugin.