We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ace45 commit 54dd32aCopy full SHA for 54dd32a
tests/test_losses/test_gen_auxiliary_loss.py
@@ -109,7 +109,7 @@ def test_only_style_loss(self):
109
data_info=self.data_info, perceptual_weight=0)
110
loss_style = perceptual_loss(dict(fake_imgs=pred, real_imgs=target))
111
assert loss_style.shape == ()
112
- assert perceptual_loss.perceptual_weight is None
+ assert perceptual_loss.perceptual_weight == 0
113
114
def test_with_different_layer_weights(self):
115
unknown_h, unknown_w = (32, 32)
0 commit comments