From ed8ccecc1498c347e88e352122cc15ebb157c812 Mon Sep 17 00:00:00 2001 From: Yaohui Liu Date: Tue, 25 Apr 2023 13:59:20 +0800 Subject: [PATCH] Fix the mapping from dtype to numpy descr of byte. --- src/TensorFlowNET.Core/NumPy/Persistence/NpyFormat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TensorFlowNET.Core/NumPy/Persistence/NpyFormat.cs b/src/TensorFlowNET.Core/NumPy/Persistence/NpyFormat.cs index 1886e4b4..10de0e7d 100644 --- a/src/TensorFlowNET.Core/NumPy/Persistence/NpyFormat.cs +++ b/src/TensorFlowNET.Core/NumPy/Persistence/NpyFormat.cs @@ -70,7 +70,7 @@ public class NpyFormat if (type == typeof(bool)) return "|b1"; else if (type == typeof(byte)) - return "|i1"; + return "|u1"; else if (type == typeof(short)) return "