Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix line too long in mnist_acgan
  • Loading branch information
yanboliang committed Aug 30, 2018
commit ba5d7e37fa695ac3cc33eb1cf79b3fe114ba03d1
3 changes: 2 additions & 1 deletion examples/mnist_acgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ def build_discriminator():
# Salimans et al., 2016
# https://arxiv.org/pdf/1606.03498.pdf (Section 3.4)
soft_zero, soft_one = 0, 0.95
y = np.array([soft_one] * len(image_batch) + [soft_zero] * len(image_batch))
y = np.array(
[soft_one] * len(image_batch) + [soft_zero] * len(image_batch))
aux_y = np.concatenate((label_batch, sampled_labels), axis=0)

# we don't want the discriminator to also maximize the classification
Expand Down