diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2020-09-11 10:14:57 +0100 |
---|---|---|
committer | Matthew Sloyan <matthew.sloyan@arm.com> | 2020-09-29 08:01:57 +0000 |
commit | 371b70e39390618cbd791b441adcf3923964b8df (patch) | |
tree | b869b0b3e5064e9c5abab8a02b111a497a6326d2 /src/profiling/ProfilingConnectionDumpToFileDecorator.cpp | |
parent | 1f0e2f9dbf14a719aef09649b19a656a6b03c7ce (diff) | |
download | armnn-371b70e39390618cbd791b441adcf3923964b8df.tar.gz |
IVGCVSW-5301 Remove all boost::numeric_cast from armnn/src/profiling
* Replaced with armnn/utility/NumericCast.hpp
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: I14e89c00cd1dd607315113d5b8ca56c2e9f6c363
Diffstat (limited to 'src/profiling/ProfilingConnectionDumpToFileDecorator.cpp')
-rw-r--r-- | src/profiling/ProfilingConnectionDumpToFileDecorator.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/profiling/ProfilingConnectionDumpToFileDecorator.cpp b/src/profiling/ProfilingConnectionDumpToFileDecorator.cpp index 5768566178..84aae9d39f 100644 --- a/src/profiling/ProfilingConnectionDumpToFileDecorator.cpp +++ b/src/profiling/ProfilingConnectionDumpToFileDecorator.cpp @@ -6,11 +6,10 @@ #include "ProfilingConnectionDumpToFileDecorator.hpp" #include <armnn/Exceptions.hpp> +#include <armnn/utility/NumericCast.hpp> #include <fstream> -#include <boost/numeric/conversion/cast.hpp> - namespace armnn { @@ -110,7 +109,7 @@ void ProfilingConnectionDumpToFileDecorator::DumpIncomingToFile(const arm::pipe: m_IncomingDumpFileStream.write(reinterpret_cast<const char*>(&header), sizeof header); m_IncomingDumpFileStream.write(reinterpret_cast<const char*>(&packetLength), sizeof packetLength); m_IncomingDumpFileStream.write(reinterpret_cast<const char*>(packet.GetData()), - boost::numeric_cast<std::streamsize>(packetLength)); + armnn::numeric_cast<std::streamsize>(packetLength)); success &= m_IncomingDumpFileStream.good(); if (!(success || m_IgnoreFileErrors)) @@ -142,7 +141,7 @@ bool ProfilingConnectionDumpToFileDecorator::DumpOutgoingToFile(const unsigned c // attempt to write binary data m_OutgoingDumpFileStream.write(reinterpret_cast<const char*>(buffer), - boost::numeric_cast<std::streamsize>(length)); + armnn::numeric_cast<std::streamsize>(length)); success &= m_OutgoingDumpFileStream.good(); if (!(success || m_IgnoreFileErrors)) { |