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

Fix the mapping from dtype to numpy descr of byte. · MSavameri/TensorFlow.NET@ed8ccec · GitHub

Commit ed8ccec

Browse files
committed
Fix the mapping from dtype to numpy descr of byte.
1 parent 2b00eb8 commit ed8ccec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/TensorFlowNET.Core/NumPy/Persistence/NpyFormat.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private static string GetDtypeName(NDArray array, out Type type, out int bytes)
7070
if (type == typeof(bool))
7171
return "|b1";
7272
else if (type == typeof(byte))
73-
return "|i1";
73+
return "|u1";
7474
else if (type == typeof(short))
7575
return "<i2";
7676
else if (type == typeof(int))

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL