Skip to content

Commit 8909761

Browse files
ssgeEsther2013
authored andcommitted
Update MNIST.cs
Rename local variable to match intent of the dataset label
1 parent f5a3551 commit 8909761

File tree

1 file changed

+2
-2
lines changed
  • src/TensorFlowNET.Keras/Datasets

1 file changed

+2
-2
lines changed

src/TensorFlowNET.Keras/Datasets/MNIST.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public DatasetPass load_data()
4545

4646
(NDArray, NDArray) LoadX(byte[] bytes)
4747
{
48-
var y = np.Load_Npz<byte[,,]>(bytes);
49-
return (y["x_train.npy"], y["x_test.npy"]);
48+
var x = np.Load_Npz<byte[,,]>(bytes);
49+
return (x["x_train.npy"], x["x_test.npy"]);
5050
}
5151

5252
(NDArray, NDArray) LoadY(byte[] bytes)

0 commit comments

Comments
 (0)