提交 44912099 编写于 作者: W wangyang59

minor change to convTransLayer test in test_LayerGrad

上级 53e1629a
...@@ -349,10 +349,9 @@ void testConvTransLayer(const string& type, bool trans, bool useGpu) { ...@@ -349,10 +349,9 @@ void testConvTransLayer(const string& type, bool trans, bool useGpu) {
} }
TEST(Layer, convTransLayer) { TEST(Layer, convTransLayer) {
testConvTransLayer("exconvt", /* trans= */ false, /* useGpu= */ false); for (auto useGpu : {false, true}) {
#ifndef PADDLE_ONLY_CPU testConvTransLayer("exconvt", /* trans= */ false, /* useGpu= */ useGpu);
testConvTransLayer("exconvt", /* trans= */ false, /* useGpu= */ true); }
#endif
} }
TEST(Layer, blockExpandLayer) { TEST(Layer, blockExpandLayer) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册