Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
ed49b418
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
ed49b418
编写于
4月 02, 2021
作者:
W
Wilber
提交者:
GitHub
4月 02, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update plugin creator name (#32021)
上级
d9187869
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
25 addition
and
24 deletion
+25
-24
paddle/fluid/inference/tensorrt/plugin/elementwise_op_plugin.h
...e/fluid/inference/tensorrt/plugin/elementwise_op_plugin.h
+3
-3
paddle/fluid/inference/tensorrt/plugin/emb_eltwise_layernorm_plugin.h
.../inference/tensorrt/plugin/emb_eltwise_layernorm_plugin.h
+4
-3
paddle/fluid/inference/tensorrt/plugin/gelu_op_plugin.h
paddle/fluid/inference/tensorrt/plugin/gelu_op_plugin.h
+3
-3
paddle/fluid/inference/tensorrt/plugin/qkv_to_context_plugin.h
...e/fluid/inference/tensorrt/plugin/qkv_to_context_plugin.h
+3
-3
paddle/fluid/inference/tensorrt/plugin/skip_layernorm_op_plugin.h
...luid/inference/tensorrt/plugin/skip_layernorm_op_plugin.h
+3
-3
paddle/fluid/inference/tensorrt/plugin/slice_op_plugin.h
paddle/fluid/inference/tensorrt/plugin/slice_op_plugin.h
+3
-3
paddle/fluid/inference/tensorrt/plugin/split_op_plugin.h
paddle/fluid/inference/tensorrt/plugin/split_op_plugin.h
+3
-3
paddle/fluid/inference/tensorrt/plugin/swish_op_plugin.h
paddle/fluid/inference/tensorrt/plugin/swish_op_plugin.h
+3
-3
未找到文件。
paddle/fluid/inference/tensorrt/plugin/elementwise_op_plugin.h
浏览文件 @
ed49b418
...
...
@@ -144,9 +144,9 @@ class ElementwisePluginDynamic : public DynamicPluginTensorRT {
int
axis_
;
};
class
ElementwisePlugin
V2
Creator
:
public
nvinfer1
::
IPluginCreator
{
class
ElementwisePlugin
Dynamic
Creator
:
public
nvinfer1
::
IPluginCreator
{
public:
ElementwisePlugin
V2
Creator
()
{}
ElementwisePlugin
Dynamic
Creator
()
{}
const
char
*
getPluginName
()
const
override
{
return
"elementwise_plugin"
;
}
const
char
*
getPluginVersion
()
const
override
{
return
"1"
;
}
...
...
@@ -182,7 +182,7 @@ class ElementwisePluginV2Creator : public nvinfer1::IPluginCreator {
std
::
vector
<
nvinfer1
::
PluginField
>
plugin_attributes_
;
};
REGISTER_TRT_PLUGIN_V2
(
ElementwisePlugin
V2
Creator
);
REGISTER_TRT_PLUGIN_V2
(
ElementwisePlugin
Dynamic
Creator
);
#endif
}
// namespace plugin
...
...
paddle/fluid/inference/tensorrt/plugin/emb_eltwise_layernorm_plugin.h
浏览文件 @
ed49b418
...
...
@@ -306,9 +306,10 @@ class EmbEltwiseLayernormPluginDynamic : public DynamicPluginTensorRT {
}
};
class
EmbEltwiseLayernormPluginV2Creator
:
public
nvinfer1
::
IPluginCreator
{
class
EmbEltwiseLayernormPluginDynamicCreator
:
public
nvinfer1
::
IPluginCreator
{
public:
EmbEltwiseLayernormPlugin
V2
Creator
()
{}
EmbEltwiseLayernormPlugin
Dynamic
Creator
()
{}
const
char
*
getPluginName
()
const
override
{
return
"fused_embedding_eltwise_layernorm_plugin"
;
}
...
...
@@ -345,7 +346,7 @@ class EmbEltwiseLayernormPluginV2Creator : public nvinfer1::IPluginCreator {
std
::
vector
<
nvinfer1
::
PluginField
>
plugin_attributes_
;
};
REGISTER_TRT_PLUGIN_V2
(
EmbEltwiseLayernormPlugin
V2
Creator
);
REGISTER_TRT_PLUGIN_V2
(
EmbEltwiseLayernormPlugin
Dynamic
Creator
);
#endif
}
// namespace plugin
...
...
paddle/fluid/inference/tensorrt/plugin/gelu_op_plugin.h
浏览文件 @
ed49b418
...
...
@@ -115,9 +115,9 @@ class GeluPluginDynamic : public DynamicPluginTensorRT {
void
destroy
()
override
{
delete
this
;
}
};
class
GeluPlugin
V2
Creator
:
public
nvinfer1
::
IPluginCreator
{
class
GeluPlugin
Dynamic
Creator
:
public
nvinfer1
::
IPluginCreator
{
public:
GeluPlugin
V2
Creator
()
{}
GeluPlugin
Dynamic
Creator
()
{}
const
char
*
getPluginName
()
const
override
{
return
"gelu_plugin"
;
}
const
char
*
getPluginVersion
()
const
override
{
return
"1"
;
}
...
...
@@ -153,7 +153,7 @@ class GeluPluginV2Creator : public nvinfer1::IPluginCreator {
std
::
vector
<
nvinfer1
::
PluginField
>
plugin_attributes_
;
};
REGISTER_TRT_PLUGIN_V2
(
GeluPlugin
V2
Creator
);
REGISTER_TRT_PLUGIN_V2
(
GeluPlugin
Dynamic
Creator
);
#endif
}
// namespace plugin
...
...
paddle/fluid/inference/tensorrt/plugin/qkv_to_context_plugin.h
浏览文件 @
ed49b418
...
...
@@ -118,9 +118,9 @@ class QkvToContextPluginDynamic : public DynamicPluginTensorRT {
float
scale_
;
};
class
QkvToContextPlugin
V2
Creator
:
public
nvinfer1
::
IPluginCreator
{
class
QkvToContextPlugin
Dynamic
Creator
:
public
nvinfer1
::
IPluginCreator
{
public:
QkvToContextPlugin
V2
Creator
()
{}
QkvToContextPlugin
Dynamic
Creator
()
{}
const
char
*
getPluginName
()
const
override
{
return
"qkv_to_context_plugin"
;
}
const
char
*
getPluginVersion
()
const
override
{
return
"1"
;
}
...
...
@@ -155,7 +155,7 @@ class QkvToContextPluginV2Creator : public nvinfer1::IPluginCreator {
nvinfer1
::
PluginFieldCollection
field_collection_
;
std
::
vector
<
nvinfer1
::
PluginField
>
plugin_attributes_
;
};
REGISTER_TRT_PLUGIN_V2
(
QkvToContextPlugin
V2
Creator
);
REGISTER_TRT_PLUGIN_V2
(
QkvToContextPlugin
Dynamic
Creator
);
#endif
}
// namespace plugin
...
...
paddle/fluid/inference/tensorrt/plugin/skip_layernorm_op_plugin.h
浏览文件 @
ed49b418
...
...
@@ -119,9 +119,9 @@ class SkipLayerNormPluginDynamic : public DynamicPluginTensorRT {
float
eps_
;
};
class
SkipLayerNormPlugin
V2
Creator
:
public
nvinfer1
::
IPluginCreator
{
class
SkipLayerNormPlugin
Dynamic
Creator
:
public
nvinfer1
::
IPluginCreator
{
public:
SkipLayerNormPlugin
V2
Creator
()
{}
SkipLayerNormPlugin
Dynamic
Creator
()
{}
const
char
*
getPluginName
()
const
override
{
return
"skip_layernorm_plugin"
;
}
const
char
*
getPluginVersion
()
const
override
{
return
"1"
;
}
...
...
@@ -156,7 +156,7 @@ class SkipLayerNormPluginV2Creator : public nvinfer1::IPluginCreator {
nvinfer1
::
PluginFieldCollection
field_collection_
;
std
::
vector
<
nvinfer1
::
PluginField
>
plugin_attributes_
;
};
REGISTER_TRT_PLUGIN_V2
(
SkipLayerNormPlugin
V2
Creator
);
REGISTER_TRT_PLUGIN_V2
(
SkipLayerNormPlugin
Dynamic
Creator
);
#endif
}
// namespace plugin
...
...
paddle/fluid/inference/tensorrt/plugin/slice_op_plugin.h
浏览文件 @
ed49b418
...
...
@@ -121,9 +121,9 @@ class SlicePluginDynamic : public DynamicPluginTensorRT {
cudaStream_t
copy_stream_
;
};
class
SlicePlugin
V2
Creator
:
public
nvinfer1
::
IPluginCreator
{
class
SlicePlugin
Dynamic
Creator
:
public
nvinfer1
::
IPluginCreator
{
public:
SlicePlugin
V2
Creator
()
{}
SlicePlugin
Dynamic
Creator
()
{}
const
char
*
getPluginName
()
const
override
{
return
"slice_plugin"
;
}
const
char
*
getPluginVersion
()
const
override
{
return
"1"
;
}
...
...
@@ -155,7 +155,7 @@ class SlicePluginV2Creator : public nvinfer1::IPluginCreator {
nvinfer1
::
PluginFieldCollection
field_collection_
;
};
REGISTER_TRT_PLUGIN_V2
(
SlicePlugin
V2
Creator
);
REGISTER_TRT_PLUGIN_V2
(
SlicePlugin
Dynamic
Creator
);
#endif
...
...
paddle/fluid/inference/tensorrt/plugin/split_op_plugin.h
浏览文件 @
ed49b418
...
...
@@ -193,9 +193,9 @@ class SplitPluginDynamic : public DynamicPluginTensorRT {
std
::
vector
<
int
>
output_length_
;
};
class
SplitPlugin
V2
Creator
:
public
nvinfer1
::
IPluginCreator
{
class
SplitPlugin
Dynamic
Creator
:
public
nvinfer1
::
IPluginCreator
{
public:
SplitPlugin
V2
Creator
()
{}
SplitPlugin
Dynamic
Creator
()
{}
const
char
*
getPluginName
()
const
override
{
return
"split_plugin"
;
}
const
char
*
getPluginVersion
()
const
override
{
return
"1"
;
}
...
...
@@ -231,7 +231,7 @@ class SplitPluginV2Creator : public nvinfer1::IPluginCreator {
std
::
vector
<
nvinfer1
::
PluginField
>
plugin_attributes_
;
};
REGISTER_TRT_PLUGIN_V2
(
SplitPlugin
V2
Creator
);
REGISTER_TRT_PLUGIN_V2
(
SplitPlugin
Dynamic
Creator
);
#endif
}
// namespace plugin
...
...
paddle/fluid/inference/tensorrt/plugin/swish_op_plugin.h
浏览文件 @
ed49b418
...
...
@@ -127,9 +127,9 @@ class SwishPluginDynamic : public DynamicPluginTensorRT {
float
beta_
;
};
class
SwishPlugin
V2
Creator
:
public
nvinfer1
::
IPluginCreator
{
class
SwishPlugin
Dynamic
Creator
:
public
nvinfer1
::
IPluginCreator
{
public:
SwishPlugin
V2
Creator
()
{}
SwishPlugin
Dynamic
Creator
()
{}
const
char
*
getPluginName
()
const
override
{
return
"swish_plugin"
;
}
const
char
*
getPluginVersion
()
const
override
{
return
"1"
;
}
...
...
@@ -165,7 +165,7 @@ class SwishPluginV2Creator : public nvinfer1::IPluginCreator {
std
::
vector
<
nvinfer1
::
PluginField
>
plugin_attributes_
;
};
REGISTER_TRT_PLUGIN_V2
(
SwishPlugin
V2
Creator
);
REGISTER_TRT_PLUGIN_V2
(
SwishPlugin
Dynamic
Creator
);
#endif
}
// namespace plugin
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录