Browse Source

Fix the mapping from dtype to numpy descr of byte.

tags/v0.100.5-BERT-load
Yaohui Liu 2 years ago
parent
commit
ed8ccecc14
No known key found for this signature in database GPG Key ID: E86D01E1809BD23E
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/TensorFlowNET.Core/NumPy/Persistence/NpyFormat.cs

+ 1
- 1
src/TensorFlowNET.Core/NumPy/Persistence/NpyFormat.cs View File

@@ -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 "<i2";
else if (type == typeof(int))


Loading…
Cancel
Save