summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-01-24 16:23:15 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-01-24 16:23:15 +0000
commitf45d5a9be1bf4d315a227b80617582b8eb4214d2 (patch)
tree29f24fc5f51448e831080d76eef3ac75d43c1934 /include
parent6943bb00e79fe2ea4c127dc04b3440c5b0b29ce0 (diff)
downloadarmcl-f45d5a9be1bf4d315a227b80617582b8eb4214d2.tar.gz
armcl-f45d5a9be1bf4d315a227b80617582b8eb4214d2.tar.bz2
armcl-f45d5a9be1bf4d315a227b80617582b8eb4214d2.zip
arm_compute v18.01
Change-Id: I9bfa178c2e38bfd5fc812e62aab6760d87748e05
Diffstat (limited to 'include')
-rw-r--r--include/libnpy/npy.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libnpy/npy.hpp b/include/libnpy/npy.hpp
index b8b641a49..24244ca27 100644
--- a/include/libnpy/npy.hpp
+++ b/include/libnpy/npy.hpp
@@ -347,6 +347,7 @@ inline void parse_header(std::string header, std::string& descr, bool& fortran_o
std::string fortran_s = dict_map["fortran_order"];
std::string shape_s = dict_map["shape"];
+ // TODO: extract info from typestring
parse_typestring(descr_s);
// remove
descr = npy::pyparse::parse_str(descr_s);
@@ -429,6 +430,7 @@ inline std::string read_header(std::istream& istream) {
header_length = (header_len_le16[0] << 0) | (header_len_le16[1] << 8);
if((magic_string_length + 2 + 2 + header_length) % 16 != 0) {
+ // TODO: display warning
}
}else if(v_major == 2 && v_minor == 0) {
char header_len_le32[4];
@@ -438,6 +440,7 @@ inline std::string read_header(std::istream& istream) {
| (header_len_le32[2] << 16) | (header_len_le32[3] << 24);
if((magic_string_length + 2 + 4 + header_length) % 16 != 0) {
+ // TODO: display warning
}
}else{
throw std::runtime_error("unsupported file format version");