Skip to content

Commit

Permalink
Polish unittest test_decoupled_py_reader (#32832)
Browse files Browse the repository at this point in the history
* polish test decoupled py reader

* remove bin file
  • Loading branch information
chenwhql authored May 12, 2021
1 parent 1ef2327 commit 2611ed2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
import six
import unittest

EPOCH_NUM = 20
BATCH_SIZE = 32
BATCH_NUM = 20
EPOCH_NUM = 5
BATCH_SIZE = 16
BATCH_NUM = 10
CLASS_NUM = 10


def random_reader():
np.random.seed(1)
for i in range(BATCH_SIZE * BATCH_NUM):
image = np.random.random([784])
label = np.random.random_integers(low=0, high=CLASS_NUM - 1)
label = np.random.randint(low=0, high=CLASS_NUM)
yield image, label


Expand Down

0 comments on commit 2611ed2

Please sign in to comment.