Skip to content

Commit d9596b2

Browse files
author
wangyang59
committed
minor change on gan tutorial
1 parent 7985670 commit d9596b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorials/gan/index_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The generator and discriminator take turn to be trained using SGD. The objective
1212
## Implementation of GAN Model Structure
1313
Since GAN model involves multiple neural networks, it requires to use paddle python API. So the code walk-through below can also partially serve as an introduction to the usage of Paddle Python API.
1414

15-
There are three networks defined in gan_conf.py, namely generator_training, discriminator_training and generator. The relationship to the model structure we defined above is that discriminator_training is the discriminator, generator is the generator, and the generator_training combined the generator and discriminator since training generator would require the discriminator to provide loss function. This relationship is described in the following code
15+
There are three networks defined in gan_conf.py, namely **generator_training**, **discriminator_training** and **generator**. The relationship to the model structure we defined above is that **discriminator_training** is the discriminator, **generator** is the generator, and the **generator_training** combined the generator and discriminator since training generator would require the discriminator to provide loss function. This relationship is described in the following code
1616
```python
1717
if is_generator_training:
1818
noise = data_layer(name="noise", size=noise_dim)

0 commit comments

Comments
 (0)