提交 7b55a0cf 编写于 作者: H hedaoyuan

Simplify CrossMapNormalOpTest.

上级 f4f0119c
...@@ -18,11 +18,11 @@ limitations under the License. */ ...@@ -18,11 +18,11 @@ limitations under the License. */
namespace paddle { namespace paddle {
TEST(CrossMapNormal, real) { TEST(CrossMapNormal, real) {
for (size_t numSamples : {5, 32}) { for (size_t numSamples : {5}) {
for (size_t channels : {1, 5, 32}) { for (size_t channels : {1, 5}) {
for (size_t imgSizeH : {5, 33, 100}) { for (size_t imgSizeH : {5, 33}) {
for (size_t imgSizeW : {5, 32, 96}) { for (size_t imgSizeW : {5, 32}) {
for (size_t size : {1, 2, 3, 5, 7}) { for (size_t size : {1, 3}) {
VLOG(3) << " numSamples=" << numSamples << " channels=" << channels VLOG(3) << " numSamples=" << numSamples << " channels=" << channels
<< " imgSizeH=" << imgSizeH << " imgSizeW=" << imgSizeW << " imgSizeH=" << imgSizeH << " imgSizeW=" << imgSizeW
<< " size=" << size; << " size=" << size;
...@@ -48,11 +48,11 @@ TEST(CrossMapNormal, real) { ...@@ -48,11 +48,11 @@ TEST(CrossMapNormal, real) {
} }
TEST(CrossMapNormalGrad, real) { TEST(CrossMapNormalGrad, real) {
for (size_t numSamples : {5, 32}) { for (size_t numSamples : {5}) {
for (size_t channels : {1, 5, 32}) { for (size_t channels : {1, 5}) {
for (size_t imgSizeH : {5, 33, 100}) { for (size_t imgSizeH : {5, 33}) {
for (size_t imgSizeW : {5, 32, 96}) { for (size_t imgSizeW : {5, 32}) {
for (size_t size : {1, 2, 3, 5, 7}) { for (size_t size : {1, 3}) {
VLOG(3) << " numSamples=" << numSamples << " channels=" << channels VLOG(3) << " numSamples=" << numSamples << " channels=" << channels
<< " imgSizeH=" << imgSizeH << " imgSizeW=" << imgSizeW << " imgSizeH=" << imgSizeH << " imgSizeW=" << imgSizeW
<< " size=" << size; << " size=" << size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册