未验证 提交 5746e528 编写于 作者: W WangZhen 提交者: GitHub

Fix layer_test ci error (#43758)

上级 ee0efd6a
......@@ -13,15 +13,13 @@ cc_library(
SRCS base_function.cc
DEPS scope proto_desc)
if(WITH_TESTING AND NOT WIN32)
if(WITH_TESTING
AND NOT WIN32
AND NOT "$ENV{CI_SKIP_CPP_TEST}" STREQUAL "ON")
add_custom_target(
jit_download_program
COMMAND wget -nc --no-proxy
https://paddle-ci.gz.bcebos.com/dy2st/export.forward.pdiparams
COMMAND wget -nc --no-proxy
https://paddle-ci.gz.bcebos.com/dy2st/export.forward.pdmodel
COMMAND wget -nc --no-proxy
https://paddle-ci.gz.bcebos.com/dy2st/export.infer.pdmodel)
COMMAND wget -nc https://paddle-ci.gz.bcebos.com/dy2st/Testing.tar.gz
COMMAND tar zxvf Testing.tar.gz)
set(JIT_DEPS
phi
elementwise_add_op
......
......@@ -76,7 +76,7 @@ TEST(CpuLayerTest, Construct) {
paddle::imperative::SetCurrentTracer(tracer);
imperative::GetCurrentTracer()->SetExpectedPlace(phi::CPUPlace());
std::string path = "./";
std::string path = "./Testing/";
auto layer = jit::Load(path);
auto inputs = PrepareInputs();
......@@ -105,7 +105,7 @@ TEST(GpuLayerTest, Construct) {
const auto* dev_ctx_gpu = static_cast<const phi::GPUContext*>(&dev_ctx);
DenseTensor cpu_dense_tensor;
std::string path = "./";
std::string path = "./Testing/";
auto layer = jit::Load(path);
auto inputs = PrepareInputs();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册