Skip to content

Commit 1bf3802

Browse files
authoredApr 12, 2018
Fix invalid param to fetch api (tensorflow#58)
1 parent 20b582a commit 1bf3802

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎mnist-core/data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class MnistData {
8484
img.src = MNIST_IMAGES_SPRITE_PATH;
8585
});
8686

87-
const labelsRequest = fetch(MNIST_LABELS_PATH, {mode: 'arraybuffer'});
87+
const labelsRequest = fetch(MNIST_LABELS_PATH);
8888
const [imgResponse, labelsResponse] =
8989
await Promise.all([imgRequest, labelsRequest]);
9090

‎mnist/data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class MnistData {
8282
img.src = MNIST_IMAGES_SPRITE_PATH;
8383
});
8484

85-
const labelsRequest = fetch(MNIST_LABELS_PATH, {mode: 'arraybuffer'});
85+
const labelsRequest = fetch(MNIST_LABELS_PATH);
8686
const [imgResponse, labelsResponse] =
8787
await Promise.all([imgRequest, labelsRequest]);
8888

0 commit comments

Comments
 (0)