Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
96bcf2df
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
96bcf2df
编写于
1月 29, 2022
作者:
C
Chen Weihang
提交者:
GitHub
1月 29, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename utils to manual (#39320)
上级
dd990981
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
16 addition
and
11 deletion
+16
-11
paddle/pten/api/CMakeLists.txt
paddle/pten/api/CMakeLists.txt
+1
-1
paddle/pten/api/all.h
paddle/pten/api/all.h
+1
-1
paddle/pten/api/include/manual_api.h
paddle/pten/api/include/manual_api.h
+5
-0
paddle/pten/api/lib/CMakeLists.txt
paddle/pten/api/lib/CMakeLists.txt
+4
-4
paddle/pten/api/lib/manual_api.cc
paddle/pten/api/lib/manual_api.cc
+1
-1
paddle/pten/api/lib/tensor.cc
paddle/pten/api/lib/tensor.cc
+1
-1
paddle/pten/tests/api/CMakeLists.txt
paddle/pten/tests/api/CMakeLists.txt
+2
-2
paddle/pten/tests/api/test_to_api.cc
paddle/pten/tests/api/test_to_api.cc
+1
-1
未找到文件。
paddle/pten/api/CMakeLists.txt
浏览文件 @
96bcf2df
add_subdirectory
(
lib
)
cc_library
(
pten_api SRCS all.cc DEPS pten_function_api pten_bw_function_api
utils
_api
)
cc_library
(
pten_api SRCS all.cc DEPS pten_function_api pten_bw_function_api
manual
_api
)
paddle/pten/api/all.h
浏览文件 @
96bcf2df
...
...
@@ -26,8 +26,8 @@ limitations under the License. */
// new pten apis
#include "paddle/pten/api/include/api.h"
#include "paddle/pten/api/include/manual_api.h"
#include "paddle/pten/api/include/tensor.h"
#include "paddle/pten/api/include/utils.h"
// pten common headers
#include "paddle/pten/common/backend.h"
...
...
paddle/pten/api/include/
utils
.h
→
paddle/pten/api/include/
manual_api
.h
浏览文件 @
96bcf2df
...
...
@@ -17,6 +17,11 @@ limitations under the License. */
#include "paddle/pten/api/include/tensor.h"
#include "paddle/pten/common/backend.h"
/**
* This file stores some special APIs that are implemented manually
* or difficult to automatically generated.
*/
namespace
paddle
{
namespace
experimental
{
...
...
paddle/pten/api/lib/CMakeLists.txt
浏览文件 @
96bcf2df
...
...
@@ -3,11 +3,11 @@ add_subdirectory(utils)
cc_library
(
ext_compat_utils SRCS ext_compat_utils.cc DEPS place
)
if
(
WITH_GPU
)
nv_library
(
pten_tensor SRCS tensor.cc DEPS tensor_base dense_tensor pten_api_utils ext_compat_utils pten_enforce
utils
_api pten_function_api
)
nv_library
(
pten_tensor SRCS tensor.cc DEPS tensor_base dense_tensor pten_api_utils ext_compat_utils pten_enforce
manual
_api pten_function_api
)
elseif
(
WITH_ROCM
)
hip_library
(
pten_tensor SRCS tensor.cc DEPS tensor_base dense_tensor pten_api_utils ext_compat_utils pten_enforce
utils
_api pten_function_api
)
hip_library
(
pten_tensor SRCS tensor.cc DEPS tensor_base dense_tensor pten_api_utils ext_compat_utils pten_enforce
manual
_api pten_function_api
)
else
()
cc_library
(
pten_tensor SRCS tensor.cc DEPS tensor_base dense_tensor pten_api_utils ext_compat_utils pten_enforce
utils
_api pten_function_api
)
cc_library
(
pten_tensor SRCS tensor.cc DEPS tensor_base dense_tensor pten_api_utils ext_compat_utils pten_enforce
manual
_api pten_function_api
)
endif
()
cc_library
(
kernel_dispatch SRCS kernel_dispatch.cc DEPS pten_tensor pten_context kernel_factory
)
...
...
@@ -62,6 +62,6 @@ add_custom_command(
DEPENDS
${
bw_api_yaml_file
}
${
bw_api_gen_file
}
VERBATIM
)
cc_library
(
utils_api SRCS utils
.cc DEPS pten_tensor pten kernel_dispatch
)
cc_library
(
manual_api SRCS manual_api
.cc DEPS pten_tensor pten kernel_dispatch
)
cc_library
(
pten_function_api SRCS
${
api_source_file
}
DEPS pten_tensor pten kernel_dispatch
)
cc_library
(
pten_bw_function_api SRCS
${
bw_api_source_file
}
DEPS pten_tensor pten kernel_dispatch backward_infermeta pten_function_api
)
paddle/pten/api/lib/
utils
.cc
→
paddle/pten/api/lib/
manual_api
.cc
浏览文件 @
96bcf2df
...
...
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#include "paddle/pten/api/include/
utils
.h"
#include "paddle/pten/api/include/
manual_api
.h"
#include <memory>
...
...
paddle/pten/api/lib/tensor.cc
浏览文件 @
96bcf2df
...
...
@@ -19,7 +19,7 @@ limitations under the License. */
#include <vector>
#include "glog/logging.h"
#include "paddle/pten/api/include/
utils
.h"
#include "paddle/pten/api/include/
manual_api
.h"
#include "paddle/pten/api/lib/ext_compat_utils.h"
#include "paddle/pten/api/lib/utils/allocator.h"
#include "paddle/pten/api/lib/utils/storage.h"
...
...
paddle/pten/tests/api/CMakeLists.txt
浏览文件 @
96bcf2df
if
(
WITH_ROCM
)
hip_test
(
test_pten_tensor SRCS test_pten_tensor.cc DEPS pten_tensor pten_function_api
utils
_api glog
)
hip_test
(
test_pten_tensor SRCS test_pten_tensor.cc DEPS pten_tensor pten_function_api
manual
_api glog
)
else
()
cc_test
(
test_pten_tensor SRCS test_pten_tensor.cc DEPS pten_tensor pten_function_api
utils
_api glog
)
cc_test
(
test_pten_tensor SRCS test_pten_tensor.cc DEPS pten_tensor pten_function_api
manual
_api glog
)
endif
()
cc_test
(
test_pten_exception SRCS test_pten_exception.cc DEPS gtest
)
...
...
paddle/pten/tests/api/test_to_api.cc
浏览文件 @
96bcf2df
...
...
@@ -15,7 +15,7 @@ limitations under the License. */
#include <gtest/gtest.h>
#include <memory>
#include "paddle/pten/api/include/
utils
.h"
#include "paddle/pten/api/include/
manual_api
.h"
#include "paddle/pten/api/lib/utils/allocator.h"
#include "paddle/pten/core/dense_tensor.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录