Browse Source

Update MNIST.cs

Rename local variable to match intent of the dataset label
tags/v0.40-tf2.4-tstring
ssge Esther Hu 4 years ago
parent
commit
890976101d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/TensorFlowNET.Keras/Datasets/MNIST.cs

+ 2
- 2
src/TensorFlowNET.Keras/Datasets/MNIST.cs View File

@@ -45,8 +45,8 @@ namespace Tensorflow.Keras.Datasets


(NDArray, NDArray) LoadX(byte[] bytes) (NDArray, NDArray) LoadX(byte[] bytes)
{ {
var y = np.Load_Npz<byte[,,]>(bytes);
return (y["x_train.npy"], y["x_test.npy"]);
var x = np.Load_Npz<byte[,,]>(bytes);
return (x["x_train.npy"], x["x_test.npy"]);
} }


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


Loading…
Cancel
Save