fix for plaidML

This commit is contained in:
iperov 2019-05-05 19:22:26 +04:00
parent 35ab63f752
commit bde700243c

View file

@ -315,7 +315,7 @@ NLayerDiscriminator = nnlib.NLayerDiscriminator
cs = (num1 - num0 + c2) / (den1 - den0 + c2) cs = (num1 - num0 + c2) / (den1 - den0 + c2)
ssim_val = K.mean(luminance * cs, axis=(-3, -2) ) ssim_val = K.mean(luminance * cs, axis=(-3, -2) )
return K.mean( (1.0 - ssim_val ) / 2.0 ) return(1.0 - ssim_val ) / 2.0
return func return func