如何解决不支持散射
我有一个形状为 [1,100,34] 的张量,需要在替代索引处添加 2 个张量 [1,17] 形状。当前的实现在 pytorch 中是这样的。
kps[...,::2] += xs.view(batch,K,1).expand(batch,num_joints)
kps[...,1::2] += ys.view(batch,num_joints)
使用 opset>=11 成功转换为 onnx 模型。这是使用 scatternd 操作实现的。但是,tensorrt 尚不支持此操作。它因错误而失败
ERROR: INVALID_ARGUMENT: getPluginCreator could not find plugin ScatterND version 1
Parse Failed,Layers = 4447
In node -1 (importFallbackPluginImporter): UNSUPPORTED_NODE: Assertion failed: creator && "Plugin not found,are the plugin name,version,and namespace correct?"
无论如何要避免将此代码转换为在 onnx 中使用 scatternd 操作。或任何其他替代解决方法?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。