Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
5e744096
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看板
未验证
提交
5e744096
编写于
6月 28, 2021
作者:
Z
zlsh80826
提交者:
GitHub
6月 28, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kNCHW is deprecated, should use kLINEAR (#33777)
上级
d91352c0
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
10 addition
and
10 deletion
+10
-10
paddle/fluid/inference/tensorrt/plugin/gelu_op_plugin.cu
paddle/fluid/inference/tensorrt/plugin/gelu_op_plugin.cu
+2
-2
paddle/fluid/inference/tensorrt/plugin/instance_norm_op_plugin.h
...fluid/inference/tensorrt/plugin/instance_norm_op_plugin.h
+1
-1
paddle/fluid/inference/tensorrt/plugin/pool_op_plugin.cu
paddle/fluid/inference/tensorrt/plugin/pool_op_plugin.cu
+1
-1
paddle/fluid/inference/tensorrt/plugin/prelu_op_plugin.cu
paddle/fluid/inference/tensorrt/plugin/prelu_op_plugin.cu
+1
-1
paddle/fluid/inference/tensorrt/plugin/slice_op_plugin.cu
paddle/fluid/inference/tensorrt/plugin/slice_op_plugin.cu
+2
-2
paddle/fluid/inference/tensorrt/plugin/test_split_plugin.cc
paddle/fluid/inference/tensorrt/plugin/test_split_plugin.cc
+1
-1
paddle/fluid/inference/tensorrt/plugin/trt_plugin.cc
paddle/fluid/inference/tensorrt/plugin/trt_plugin.cc
+1
-1
paddle/fluid/inference/tensorrt/plugin/trt_plugin.h
paddle/fluid/inference/tensorrt/plugin/trt_plugin.h
+1
-1
未找到文件。
paddle/fluid/inference/tensorrt/plugin/gelu_op_plugin.cu
浏览文件 @
5e744096
...
...
@@ -42,10 +42,10 @@ bool GeluPlugin::supportsFormat(nvinfer1::DataType type,
if
(
with_fp16_
)
{
return
((
type
==
nvinfer1
::
DataType
::
kFLOAT
||
type
==
nvinfer1
::
DataType
::
kHALF
)
&&
(
format
==
nvinfer1
::
PluginFormat
::
k
NCHW
));
(
format
==
nvinfer1
::
PluginFormat
::
k
LINEAR
));
}
else
{
return
((
type
==
nvinfer1
::
DataType
::
kFLOAT
)
&&
(
format
==
nvinfer1
::
PluginFormat
::
k
NCHW
));
(
format
==
nvinfer1
::
PluginFormat
::
k
LINEAR
));
}
}
...
...
paddle/fluid/inference/tensorrt/plugin/instance_norm_op_plugin.h
浏览文件 @
5e744096
...
...
@@ -112,7 +112,7 @@ class InstanceNormPlugin : public PluginTensorRT {
nvinfer1
::
PluginFormat
format
)
const
override
{
return
((
type
==
nvinfer1
::
DataType
::
kFLOAT
||
type
==
nvinfer1
::
DataType
::
kHALF
)
&&
(
format
==
nvinfer1
::
PluginFormat
::
k
NCHW
));
(
format
==
nvinfer1
::
PluginFormat
::
k
LINEAR
));
}
};
...
...
paddle/fluid/inference/tensorrt/plugin/pool_op_plugin.cu
浏览文件 @
5e744096
...
...
@@ -174,7 +174,7 @@ bool PoolPluginDynamic::supportsFormatCombination(
(
in_out
&&
pos
<
(
nb_inputs
+
nb_outputs
));
return
((
in_out
[
pos
].
type
==
nvinfer1
::
DataType
::
kFLOAT
)
&&
in_out
[
pos
].
format
==
nvinfer1
::
PluginFormat
::
k
NCHW
);
in_out
[
pos
].
format
==
nvinfer1
::
PluginFormat
::
k
LINEAR
);
}
nvinfer1
::
DataType
PoolPluginDynamic
::
getOutputDataType
(
...
...
paddle/fluid/inference/tensorrt/plugin/prelu_op_plugin.cu
浏览文件 @
5e744096
...
...
@@ -129,7 +129,7 @@ bool PReluPluginDynamic::supportsFormatCombination(
(
in_out
&&
pos
<
(
nb_inputs
+
nb_outputs
));
return
((
in_out
[
pos
].
type
==
nvinfer1
::
DataType
::
kFLOAT
)
&&
in_out
[
pos
].
format
==
nvinfer1
::
PluginFormat
::
k
NCHW
);
in_out
[
pos
].
format
==
nvinfer1
::
PluginFormat
::
k
LINEAR
);
}
nvinfer1
::
DataType
PReluPluginDynamic
::
getOutputDataType
(
...
...
paddle/fluid/inference/tensorrt/plugin/slice_op_plugin.cu
浏览文件 @
5e744096
...
...
@@ -90,10 +90,10 @@ bool SlicePlugin::supportsFormat(nvinfer1::DataType type,
if
(
with_fp16_
)
{
return
((
type
==
nvinfer1
::
DataType
::
kFLOAT
||
type
==
nvinfer1
::
DataType
::
kHALF
)
&&
(
format
==
nvinfer1
::
PluginFormat
::
k
NCHW
));
(
format
==
nvinfer1
::
PluginFormat
::
k
LINEAR
));
}
else
{
return
((
type
==
nvinfer1
::
DataType
::
kFLOAT
)
&&
(
format
==
nvinfer1
::
PluginFormat
::
k
NCHW
));
(
format
==
nvinfer1
::
PluginFormat
::
k
LINEAR
));
}
}
...
...
paddle/fluid/inference/tensorrt/plugin/test_split_plugin.cc
浏览文件 @
5e744096
...
...
@@ -33,7 +33,7 @@ TEST(split_op_plugin, test_plugin) {
input_dims
.
push_back
(
in_dims
);
sp_plugin
.
configurePlugin
(
input_dims
.
data
(),
1
,
nullptr
,
2
,
input_types
.
data
(),
nullptr
,
nullptr
,
nullptr
,
nvinfer1
::
PluginFormat
::
k
NCHW
,
4
);
nvinfer1
::
PluginFormat
::
k
LINEAR
,
4
);
sp_plugin
.
initialize
();
sp_plugin
.
getPluginType
();
sp_plugin
.
canBroadcastInputAcrossBatch
(
0
);
...
...
paddle/fluid/inference/tensorrt/plugin/trt_plugin.cc
浏览文件 @
5e744096
...
...
@@ -68,7 +68,7 @@ size_t PluginTensorRT::getBaseSerializationSize() {
bool
PluginTensorRT
::
supportsFormat
(
nvinfer1
::
DataType
type
,
nvinfer1
::
PluginFormat
format
)
const
{
return
((
type
==
nvinfer1
::
DataType
::
kFLOAT
)
&&
(
format
==
nvinfer1
::
PluginFormat
::
k
NCHW
));
(
format
==
nvinfer1
::
PluginFormat
::
k
LINEAR
));
}
void
PluginTensorRT
::
configureWithFormat
(
...
...
paddle/fluid/inference/tensorrt/plugin/trt_plugin.h
浏览文件 @
5e744096
...
...
@@ -181,7 +181,7 @@ class PluginTensorRTV2Ext : public nvinfer1::IPluginV2Ext {
bool
supportsFormat
(
nvinfer1
::
DataType
type
,
nvinfer1
::
PluginFormat
format
)
const
override
{
return
((
type
==
nvinfer1
::
DataType
::
kFLOAT
)
&&
(
format
==
nvinfer1
::
PluginFormat
::
k
NCHW
));
(
format
==
nvinfer1
::
PluginFormat
::
k
LINEAR
));
}
// Initialize the layer for execution.
// This is called when the engine is created.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录