Skip to content

Commit ed8ccec

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)