FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update MNIST.cs · feelsyt/TensorFlow.NET@8909761 · GitHub

Commit 8909761

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/TensorFlowNET.Keras/Datasets

‎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)

Back | FazBrowse Home | New Git URL