Skip to content

Commit

Permalink
do not scale mnist label (#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
fehiepsi committed May 18, 2023
1 parent db2913b commit d897d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpyro/examples/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _load_mnist():
def read_label(file):
with gzip.open(file, "rb") as f:
f.read(8)
data = np.frombuffer(f.read(), dtype=np.int8) / np.float32(255.0)
data = np.frombuffer(f.read(), dtype=np.int8)
return data

def read_img(file):
Expand Down

0 comments on commit d897d7a

Please sign in to comment.