提交 6f9904e9 编写于 作者: D dzhwinter

rerun windows ci. test=develop

上级 43c92dcb
...@@ -14,7 +14,6 @@ limitations under the License. */ ...@@ -14,7 +14,6 @@ limitations under the License. */
#pragma once #pragma once
#include <functional>
#include <string> #include <string>
#include <typeindex> #include <typeindex>
#include <typeinfo> #include <typeinfo>
......
...@@ -34,6 +34,6 @@ TEST(Benchmark, PersistToFile) { ...@@ -34,6 +34,6 @@ TEST(Benchmark, PersistToFile) {
benchmark.SetLatency(220); benchmark.SetLatency(220);
benchmark.PersistToFile("1.log"); benchmark.PersistToFile("1.log");
benchmark.PersistToFile("1.log"); benchmark.PersistToFile("2.log");
benchmark.PersistToFile("1.log"); benchmark.PersistToFile("3.log");
} }
...@@ -17,6 +17,7 @@ from __future__ import print_function ...@@ -17,6 +17,7 @@ from __future__ import print_function
import os import os
import unittest import unittest
import numpy as np import numpy as np
import paddle.fluid.core as core
import paddle.fluid as fluid import paddle.fluid as fluid
from parallel_executor_test_base import TestParallelExecutorBase from parallel_executor_test_base import TestParallelExecutorBase
...@@ -50,6 +51,9 @@ class TestIrInplace(TestParallelExecutorBase): ...@@ -50,6 +51,9 @@ class TestIrInplace(TestParallelExecutorBase):
ir_memory_optimize, ir_memory_optimize,
enable_inplace, enable_inplace,
memory_opt=False): memory_opt=False):
if not core.is_compiled_with_cuda():
return
np.random.seed(5) np.random.seed(5)
img = np.random.random(size=[32, 784]).astype(np.float32) img = np.random.random(size=[32, 784]).astype(np.float32)
label = np.ones(shape=[32, 1], dtype='int64') label = np.ones(shape=[32, 1], dtype='int64')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册