未验证 提交 19950e65 编写于 作者: G gouzil 提交者: GitHub

mv fluid op elementwise to test/cpp/fluid/elementwise (#53448)

上级 ace61b8b
......@@ -4,16 +4,3 @@ if(WITH_UNITY_BUILD)
include(unity_build_rule.cmake)
endif()
register_operators(DEPS op_version_registry)
cc_test(
test_elementwise_add_op_inplace
SRCS test_elementwise_add_op_inplace.cc
DEPS op_registry elementwise_add_op scope device_context enforce executor)
cc_test(
test_elementwise_div_grad_grad
SRCS test_elementwise_div_grad_grad.cc
DEPS op_registry elementwise_div_op scope device_context enforce executor)
cc_test(
test_elementwise_add_grad_grad
SRCS test_elementwise_add_grad_grad.cc
DEPS op_registry elementwise_add_op scope device_context enforce executor)
......@@ -5,7 +5,7 @@ endif()
# add_subdirectory(controlflow)
# add_subdirectory(detection)
# add_subdirectory(dlnne)
# add_subdirectory(elementwise)
add_subdirectory(elementwise)
# add_subdirectory(fused)
if(WITH_LITE)
add_subdirectory(lite)
......
cc_test(
test_elementwise_add_op_inplace
SRCS test_elementwise_add_op_inplace.cc
DEPS op_registry elementwise_add_op scope device_context enforce executor)
cc_test(
test_elementwise_div_grad_grad
SRCS test_elementwise_div_grad_grad.cc
DEPS op_registry elementwise_div_op scope device_context enforce executor)
cc_test(
test_elementwise_add_grad_grad
SRCS test_elementwise_add_grad_grad.cc
DEPS op_registry elementwise_add_op scope device_context enforce executor)
......@@ -14,10 +14,10 @@
#include "gtest/gtest.h"
#include "paddle/fluid/framework/op_registry.h"
#include "paddle/fluid/operators/elementwise/test_elementwise_op_grad_grad.h"
#include "paddle/fluid/platform/place.h"
#include "paddle/phi/core/ddim.h"
#include "paddle/phi/core/kernel_registry.h"
#include "test/cpp/fluid/elementwise/test_elementwise_op_grad_grad.h"
USE_OP_ITSELF(elementwise_add);
PD_DECLARE_KERNEL(add_double_grad, CPU, ALL_LAYOUT);
......
......@@ -24,11 +24,11 @@
#include "paddle/fluid/framework/op_registry.h"
#include "paddle/fluid/framework/operator.h"
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/operators/elementwise/test_elementwise_op_grad_grad.h"
#include "paddle/fluid/platform/device_context.h"
#include "paddle/fluid/platform/enforce.h"
#include "paddle/fluid/platform/place.h"
#include "paddle/phi/core/kernel_registry.h"
#include "test/cpp/fluid/elementwise/test_elementwise_op_grad_grad.h"
USE_OP_ITSELF(elementwise_div);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册