-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add custom_device api * fix bug
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
docs/api/paddle/device/is_compiled_with_custom_device_cn.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.. _cn_api_fluid_is_compiled_with_custom_device: | ||
|
||
is_compiled_with_custom_device | ||
------------------------------- | ||
|
||
.. py:function:: paddle.device.is_compiled_with_custom_device(device_type) | ||
检查 ``whl`` 包是否可以被用来在指定类型的自定义新硬件上运行模型 | ||
|
||
返回 | ||
:::::::::::: | ||
bool,支持指定 device_type 则为 True,否则为 False。 | ||
|
||
代码示例 | ||
:::::::::::: | ||
|
||
COPY-FROM: paddle.device.is_compiled_with_custom_device |