Created by: Aurelius84
PR types
Others
PR changes
Others
Describe
Fix cycle GAN model random failed on GPU
The calculation of GPU kernel in BN is non-deterministic, failure rate is 1/100 in Dev but seems incremental in CE platform. If on GPU, we disable BN temporarily.
Because we disable BN on GPU, but here we enhance the check on CPU by np.array_equal
which means the dy_out and st_out shall be exactly same.