Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
28a76556
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看板
未验证
提交
28a76556
编写于
3月 28, 2023
作者:
Z
Zheng-Bicheng
提交者:
GitHub
3月 28, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Move Test] move contrib (#52168)
* update * update
上级
3957007c
变更
12
显示空白变更内容
内联
并排
Showing
12 changed file
with
40 addition
and
33 deletion
+40
-33
python/CMakeLists.txt
python/CMakeLists.txt
+0
-1
test/CMakeLists.txt
test/CMakeLists.txt
+1
-1
test/contrib/CMakeLists.txt
test/contrib/CMakeLists.txt
+0
-0
test/contrib/test_amp_list.py
test/contrib/test_amp_list.py
+2
-4
test/contrib/test_bf16_utils.py
test/contrib/test_bf16_utils.py
+4
-3
test/contrib/test_correlation.py
test/contrib/test_correlation.py
+4
-2
test/contrib/test_d2s_amp_controlflow.py
test/contrib/test_d2s_amp_controlflow.py
+3
-3
test/contrib/test_fp16_utils.py
test/contrib/test_fp16_utils.py
+3
-2
test/contrib/test_image_classification_fp16.py
test/contrib/test_image_classification_fp16.py
+8
-7
test/contrib/test_model_cast_to_bf16.py
test/contrib/test_model_cast_to_bf16.py
+7
-6
test/contrib/test_multi_precision_fp16_train.py
test/contrib/test_multi_precision_fp16_train.py
+4
-2
test/contrib/test_weight_decay_extend.py
test/contrib/test_weight_decay_extend.py
+4
-2
未找到文件。
python/CMakeLists.txt
浏览文件 @
28a76556
...
@@ -151,7 +151,6 @@ set(PADDLE_PYTHON_PACKAGE_DIR ${CMAKE_CURRENT_BINARY_DIR}/dist/)
...
@@ -151,7 +151,6 @@ set(PADDLE_PYTHON_PACKAGE_DIR ${CMAKE_CURRENT_BINARY_DIR}/dist/)
if
(
WITH_TESTING
)
if
(
WITH_TESTING
)
add_subdirectory
(
paddle/dataset/tests
)
add_subdirectory
(
paddle/dataset/tests
)
add_subdirectory
(
paddle/fluid/tests
)
add_subdirectory
(
paddle/fluid/tests
)
add_subdirectory
(
paddle/fluid/contrib/tests
)
add_subdirectory
(
paddle/static/quantization/tests
)
add_subdirectory
(
paddle/static/quantization/tests
)
endif
()
endif
()
...
...
test/CMakeLists.txt
浏览文件 @
28a76556
...
@@ -12,7 +12,7 @@ if(WITH_TESTING)
...
@@ -12,7 +12,7 @@ if(WITH_TESTING)
add_subdirectory
(
book
)
add_subdirectory
(
book
)
# add_subdirectory(collective)
# add_subdirectory(collective)
# add_subdirectory(composite_ops)
# add_subdirectory(composite_ops)
#
add_subdirectory(contrib)
add_subdirectory
(
contrib
)
add_subdirectory
(
cpp
)
add_subdirectory
(
cpp
)
add_subdirectory
(
custom_kernel
)
add_subdirectory
(
custom_kernel
)
add_subdirectory
(
custom_op
)
add_subdirectory
(
custom_op
)
...
...
python/paddle/fluid/contrib/tests
/CMakeLists.txt
→
test/contrib
/CMakeLists.txt
浏览文件 @
28a76556
文件已移动
python/paddle/fluid/contrib/tests
/test_amp_list.py
→
test/contrib
/test_amp_list.py
浏览文件 @
28a76556
...
@@ -12,11 +12,9 @@
...
@@ -12,11 +12,9 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
paddle
import
unittest
import
unittest
from
paddle.static.amp.fp16_lists
import
(
AutoMixedPrecisionLists
,
from
paddle.static.amp.fp16_lists
import
AutoMixedPrecisionLists
)
class
TestAMPList
(
unittest
.
TestCase
):
class
TestAMPList
(
unittest
.
TestCase
):
...
...
python/paddle/fluid/contrib/tests
/test_bf16_utils.py
→
test/contrib
/test_bf16_utils.py
浏览文件 @
28a76556
...
@@ -13,10 +13,11 @@
...
@@ -13,10 +13,11 @@
# limitations under the License.
# limitations under the License.
import
copy
import
copy
import
unittest
import
unittest
import
paddle.fluid
as
fluid
import
paddle.static.amp
as
amp
from
paddle.fluid
import
core
import
paddle
import
paddle
from
paddle
import
fluid
from
paddle.fluid
import
core
from
paddle.static
import
amp
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/contrib/tests
/test_correlation.py
→
test/contrib
/test_correlation.py
浏览文件 @
28a76556
...
@@ -13,10 +13,12 @@
...
@@ -13,10 +13,12 @@
# limitations under the License.
# limitations under the License.
import
unittest
import
unittest
import
numpy
as
np
import
numpy
as
np
import
paddle.fluid
as
fluid
from
paddle.fluid.dygraph.base
import
to_variable
import
paddle
import
paddle
from
paddle
import
fluid
from
paddle.fluid.dygraph.base
import
to_variable
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/contrib/tests
/test_d2s_amp_controlflow.py
→
test/contrib
/test_d2s_amp_controlflow.py
浏览文件 @
28a76556
...
@@ -12,10 +12,10 @@
...
@@ -12,10 +12,10 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
paddle
import
unittest
import
unittest
import
numpy
as
np
import
paddle.nn
as
nn
import
paddle
from
paddle
import
nn
class
Net_Cond
(
nn
.
Layer
):
class
Net_Cond
(
nn
.
Layer
):
...
...
python/paddle/fluid/contrib/tests
/test_fp16_utils.py
→
test/contrib
/test_fp16_utils.py
浏览文件 @
28a76556
...
@@ -13,10 +13,11 @@
...
@@ -13,10 +13,11 @@
# limitations under the License.
# limitations under the License.
import
unittest
import
unittest
import
paddle.fluid
as
fluid
import
paddle
from
paddle
import
fluid
from
paddle.fluid
import
core
from
paddle.fluid
import
core
from
paddle.static.amp
import
fp16_utils
from
paddle.static.amp
import
fp16_utils
import
paddle
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/contrib/tests
/test_image_classification_fp16.py
→
test/contrib
/test_image_classification_fp16.py
浏览文件 @
28a76556
...
@@ -12,17 +12,18 @@
...
@@ -12,17 +12,18 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
paddle
import
paddle.fluid
as
fluid
import
contextlib
import
contextlib
import
copy
import
math
import
math
import
sys
import
numpy
import
unittest
import
os
import
os
import
copy
import
sys
import
numpy
as
np
import
tempfile
import
tempfile
import
unittest
import
numpy
import
paddle
from
paddle
import
fluid
from
paddle.static.amp
import
decorate
from
paddle.static.amp
import
decorate
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/contrib/tests
/test_model_cast_to_bf16.py
→
test/contrib
/test_model_cast_to_bf16.py
浏览文件 @
28a76556
...
@@ -12,15 +12,16 @@
...
@@ -12,15 +12,16 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
paddle
import
paddle.fluid
as
fluid
import
contextlib
import
contextlib
import
struct
import
unittest
import
unittest
import
numpy
as
np
import
numpy
as
np
import
struct
import
paddle
.fluid.layers
as
layers
import
paddle
import
paddle.static.amp
as
amp
from
paddle
import
fluid
from
paddle.fluid
import
core
from
paddle.fluid
import
core
from
paddle.static
import
amp
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
python/paddle/fluid/contrib/tests
/test_multi_precision_fp16_train.py
→
test/contrib
/test_multi_precision_fp16_train.py
浏览文件 @
28a76556
...
@@ -12,11 +12,13 @@
...
@@ -12,11 +12,13 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
paddle
import
paddle.fluid
as
fluid
import
contextlib
import
contextlib
import
unittest
import
unittest
import
numpy
as
np
import
numpy
as
np
import
paddle
from
paddle
import
fluid
from
paddle.io
import
Dataset
from
paddle.io
import
Dataset
from
paddle.static.amp.fp16_utils
import
cast_model_to_fp16
from
paddle.static.amp.fp16_utils
import
cast_model_to_fp16
...
...
python/paddle/fluid/contrib/tests
/test_weight_decay_extend.py
→
test/contrib
/test_weight_decay_extend.py
浏览文件 @
28a76556
...
@@ -12,12 +12,14 @@
...
@@ -12,12 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
contextlib
import
unittest
import
unittest
from
functools
import
partial
from
functools
import
partial
import
numpy
as
np
import
numpy
as
np
import
paddle
import
paddle
import
paddle.fluid
as
fluid
from
paddle
import
fluid
import
contextlib
paddle
.
enable_static
()
paddle
.
enable_static
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录