-
Notifications
You must be signed in to change notification settings - Fork 67
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
keras.layer里Embedding的trt实现 #21
Comments
@YuzhouPeng 可以的~ Forward 的 Plugins 目录中也有引入 TensorRT 官方的 embLayerNormPlugin 的。 |
@yuanzexi 大佬,我还想请教下,embLayerNormPlugin 里面需要输入layernorm,word embedding,token embeddingg等参数,而且输入有三个,但是我keras使用embedding的时候只输入了一个32位数组,像这种情况embLayerNormPlugin 的那些参数该怎么设置比较好呢? |
@YuzhouPeng 对于 Keras.Embedding 的操作,我们是用 Gather 层实现的 https://github.com/Tencent/Forward/blob/master/source/fwd_keras/keras_cvt/keras_desc_creators/keras_gather_creator.h |
@yuanzexi , when i build the
我已经切换几个tag了。提前谢谢了。 |
Hello @chenjun2hao , 我们刚测试了下,发现 希望你这边可以提供这些信息,以便我们做进一步判断。
谢谢~ |
@zhaoyiluo ,你好。动态库是可以编译出来的。但是用动态库编译demo下来的exe的时候报上面的错误。我用另外一台电脑测试,也出现同样的问题。 |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
感谢大佬做的项目!帮助很大,已star
我遇到了一个问题,我在做keras.layer.Embedding层的trt实现,想问下可否使用tensorRT自带的embLayerNormPlugin插件来实现功能??我的python和C++源码放在下面:
python代码:
python运行的结果 从一个32长度数组变成32x128tensor:
The text was updated successfully, but these errors were encountered: