Skip to content

Commit 9a02bd4

Browse files
author
wangyang59
committed
fixed a small bug in demo/gan/README.md and testMatrix.py
1 parent 575b888 commit 9a02bd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo/gan/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ The general training procedures are implemented in gan_trainer.py. The neural ne
77
In order to run the model, first download the corresponding data by running the shell script in ./data.
88
Then you can run the command below. The flag -d specifies the training data (cifar, mnist or uniform) and flag --useGpu specifies whether to use gpu for training (0 is cpu, 1 is gpu).
99

10-
$python gan_trainer_image.py -d cifar --useGpu 1
10+
$python gan_trainer.py -d cifar --useGpu 1
1111

1212
The generated images will be stored in ./cifar_samples/

paddle/api/test/testMatrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_createDenseMat(self):
6868

6969
def test_numpyCpu(self):
7070
numpy_mat = np.matrix([[1, 2], [3, 4], [5, 6]], dtype="float32")
71-
m = swig_paddle.Matrix.createCpuDenseFromNumpy(numpy_mat)
71+
m = swig_paddle.Matrix.createCpuDenseFromNumpy(numpy_mat, copy=False)
7272
self.assertEqual((int(m.getHeight()), int(m.getWidth())),
7373
numpy_mat.shape)
7474

0 commit comments

Comments
 (0)