Skip to content

Commit

Permalink
Fix a Cudnn Deterministic Random Failure, test=develop (PaddlePaddle#…
Browse files Browse the repository at this point in the history
…25389)

As the title
  • Loading branch information
zhhsplendid authored Jul 7, 2020
1 parent 6de7508 commit ff7af21
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/paddle/fluid/tests/unittests/seresnext_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import math
import os
os.environ['CPU_NUM'] = str(4)
os.environ['FLAGS_cudnn_deterministic'] = str(1)

# FIXME(zcd): If the neural net has dropout_op, the output of ParallelExecutor
# and Executor is different. Because, for ParallelExecutor, the dropout_op of
Expand All @@ -35,14 +36,10 @@
# and Executor is different.
remove_bn = False

# FIXME(huihuangzheng): Temporarily disable cudnn of conv2d in unit test because
# it will cause random test failure. We have to re-enable it after someone fixs
# cudnn_conv
remove_cudnn_conv = False

remove_dropout = True
remove_bn = True
remove_cudnn_conv = True


def squeeze_excitation(input, num_channels, reduction_ratio):
Expand Down

0 comments on commit ff7af21

Please sign in to comment.