diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2018-01-24 16:23:15 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-01-24 16:23:15 +0000 |
commit | f45d5a9be1bf4d315a227b80617582b8eb4214d2 (patch) | |
tree | 29f24fc5f51448e831080d76eef3ac75d43c1934 /include | |
parent | 6943bb00e79fe2ea4c127dc04b3440c5b0b29ce0 (diff) | |
download | armcl-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.hpp | 3 |
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"); |