提交 d6c1d6ca 编写于 作者: L Leo Chen 提交者: Zeng Jinle

update class name, test=develop (#20578)

上级 f55d1c68
...@@ -34,10 +34,10 @@ namespace paddle { ...@@ -34,10 +34,10 @@ namespace paddle {
namespace operators { namespace operators {
template <typename T> template <typename T>
class TestElementwiseAddGradGradWithoutDout class TestElementwiseAddGradGradWithoutDDX
: public TestElementwiseOpGradGrad<T> { : public TestElementwiseOpGradGrad<T> {
public: public:
TestElementwiseAddGradGradWithoutDout(const platform::Place &place, TestElementwiseAddGradGradWithoutDDX(const platform::Place &place,
const framework::DDim &dims) const framework::DDim &dims)
: TestElementwiseOpGradGrad<T>("elementwise_add_grad_grad", place, dims, : TestElementwiseOpGradGrad<T>("elementwise_add_grad_grad", place, dims,
{"Y", "DOut", "DDY"}, {"DDOut"}) {} {"Y", "DOut", "DDY"}, {"DDOut"}) {}
...@@ -67,14 +67,14 @@ class TestElementwiseAddGradGradWithoutDout ...@@ -67,14 +67,14 @@ class TestElementwiseAddGradGradWithoutDout
TEST(test_elementwise_add_grad_grad_without_ddx, cpu_place) { TEST(test_elementwise_add_grad_grad_without_ddx, cpu_place) {
framework::DDim dims({32, 64}); framework::DDim dims({32, 64});
platform::CPUPlace p; platform::CPUPlace p;
TestElementwiseAddGradGradWithoutDout<float> test(p, dims); TestElementwiseAddGradGradWithoutDDX<float> test(p, dims);
ASSERT_TRUE(test.Check()); ASSERT_TRUE(test.Check());
} }
#ifdef PADDLE_WITH_CUDA #ifdef PADDLE_WITH_CUDA
TEST(test_elementwise_add_grad_grad_without_ddx, gpu_place) { TEST(test_elementwise_add_grad_grad_without_ddx, gpu_place) {
framework::DDim dims({32, 64}); framework::DDim dims({32, 64});
platform::CUDAPlace p(0); platform::CUDAPlace p(0);
TestElementwiseAddGradGradWithoutDout<float> test(p, dims); TestElementwiseAddGradGradWithoutDDX<float> test(p, dims);
ASSERT_TRUE(test.Check()); ASSERT_TRUE(test.Check());
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册