Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
af374ae6
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
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看板
未验证
提交
af374ae6
编写于
4月 12, 2021
作者:
L
Leo Chen
提交者:
GitHub
4月 12, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
follow comments to refine PR 32144 (#32174)
上级
80698cad
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
6 deletion
+8
-6
paddle/fluid/memory/allocation/npu_allocator.cc
paddle/fluid/memory/allocation/npu_allocator.cc
+1
-1
paddle/fluid/memory/allocation/npu_allocator.h
paddle/fluid/memory/allocation/npu_allocator.h
+1
-1
paddle/fluid/platform/npu_info.cc
paddle/fluid/platform/npu_info.cc
+1
-1
paddle/fluid/platform/npu_info.h
paddle/fluid/platform/npu_info.h
+1
-1
paddle/fluid/platform/stream/npu_stream.cc
paddle/fluid/platform/stream/npu_stream.cc
+1
-1
python/paddle/device.py
python/paddle/device.py
+3
-1
未找到文件。
paddle/fluid/memory/allocation/npu_allocator.cc
浏览文件 @
af374ae6
// Copyright (c) 20
18
PaddlePaddle Authors. All Rights Reserved.
// Copyright (c) 20
21
PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
...
...
paddle/fluid/memory/allocation/npu_allocator.h
浏览文件 @
af374ae6
// Copyright (c) 20
18
PaddlePaddle Authors. All Rights Reserved.
// Copyright (c) 20
21
PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
...
...
paddle/fluid/platform/npu_info.cc
浏览文件 @
af374ae6
/* Copyright (c) 20
16
PaddlePaddle Authors. All Rights Reserved.
/* Copyright (c) 20
21
PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
paddle/fluid/platform/npu_info.h
浏览文件 @
af374ae6
/* Copyright (c) 20
16
PaddlePaddle Authors. All Rights Reserved.
/* Copyright (c) 20
21
PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
paddle/fluid/platform/stream/npu_stream.cc
浏览文件 @
af374ae6
/* Copyright (c) 202
0
PaddlePaddle Authors. All Rights Reserved.
/* Copyright (c) 202
1
PaddlePaddle Authors. All Rights Reserved.
licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
python/paddle/device.py
浏览文件 @
af374ae6
...
...
@@ -39,9 +39,11 @@ __all__ = [
_cudnn_version
=
None
# TODO: WITH_ASCEND_CL may changed to WITH_NPU or others in the future
# for consistent.
def
is_compiled_with_npu
():
"""
Whether
this whl package can be used to run the model on
NPU.
Whether
paddle was built with WITH_ASCEND_CL=ON to support Ascend
NPU.
Returns (bool): `True` if NPU is supported, otherwise `False`.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录