diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2017-11-10 16:27:32 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 87f21cd39639118293b51fa776d30aa7722917bd (patch) | |
tree | 9a29853b9dd1d8b4dd289334bcab14fc1bc09725 /utils/Utils.h | |
parent | 5edbd1c5dce43b66f30c903797a91e39369c5b62 (diff) | |
download | ComputeLibrary-87f21cd39639118293b51fa776d30aa7722917bd.tar.gz |
COMPMID-556 Updated libnpy.hpp
Change-Id: I380a11f41ca2158de1dd0a6339ed9c884feb8f69
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/95385
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Diffstat (limited to 'utils/Utils.h')
-rw-r--r-- | utils/Utils.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/Utils.h b/utils/Utils.h index 76329671af..4e5bc815ab 100644 --- a/utils/Utils.h +++ b/utils/Utils.h @@ -709,9 +709,9 @@ void save_to_npy(T &tensor, const std::string &npy_filename, bool fortran_order) fs.exceptions(std::ofstream::failbit | std::ofstream::badbit | std::ofstream::eofbit); fs.open(npy_filename, std::ios::out | std::ios::binary); - const unsigned int width = tensor.info()->tensor_shape()[0]; - const unsigned int height = tensor.info()->tensor_shape()[1]; - unsigned long shape[2]; + const unsigned int width = tensor.info()->tensor_shape()[0]; + const unsigned int height = tensor.info()->tensor_shape()[1]; + std::vector<npy::ndarray_len_t> shape(2); if(!fortran_order) { @@ -734,7 +734,7 @@ void save_to_npy(T &tensor, const std::string &npy_filename, bool fortran_order) std::string typestring = typestring_o.str(); std::ofstream stream(npy_filename, std::ofstream::binary); - npy::WriteHeader(stream, typestring, fortran_order, 2, shape); + npy::write_header(stream, typestring, fortran_order, shape); arm_compute::Window window; window.set(arm_compute::Window::DimX, arm_compute::Window::Dimension(0, width, 1)); |