* Replaced with fmt::format in Descriptors.cpp.
* Removed remaining boost/format headers in ArmNN codebase.
* Removed additional boost header in Network.cpp
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: Ib98b83bf4ec99ef98ce7a3635ec0dd478c3e43e1
13 files changed:
#include <array>
#include <vector>
#include <array>
#include <vector>
-#include <boost/format.hpp>
if (numDimMappings > MaxNumOfTensorDimensions)
{
if (numDimMappings > MaxNumOfTensorDimensions)
{
- boost::format fmt("The number of mappings (%1%) cannot be greater "
- "than the maximum number of dimensions supported (%2%)");
- throw InvalidArgumentException(boost::str(fmt % numDimMappings % MaxNumOfTensorDimensions));
+ throw InvalidArgumentException(
+ fmt::format("The number of mappings ({0}) cannot be greater "
+ "than the maximum number of dimensions supported ({1})",
+ numDimMappings,
+ MaxNumOfTensorDimensions));
}
if ((dimMappings == nullptr) && (numDimMappings != 0))
}
if ((dimMappings == nullptr) && (numDimMappings != 0))
const ValueType dstIndex = dimMappings[i];
if (dstIndex >= numDimMappings)
{
const ValueType dstIndex = dimMappings[i];
if (dstIndex >= numDimMappings)
{
- boost::format fmt("Dimension mapping at index %1% is invalid: %2% is outside of the valid range [0,%3%]");
- throw InvalidArgumentException(boost::str(fmt % i % dstIndex % (numDimMappings - 1)));
+ throw InvalidArgumentException(
+ fmt::format("Dimension mapping at index {0} is invalid: "
+ "{1} is outside of the valid range [0,{2}]",
+ i,
+ dstIndex,
+ (numDimMappings - 1)));
#include <vector>
#include <algorithm>
#include <vector>
#include <algorithm>
-#include <boost/format.hpp>
-#include <boost/numeric/conversion/converter_policies.hpp>
-
#include <Network.hpp>
#include <VerificationHelpers.hpp>
#include <Network.hpp>
#include <VerificationHelpers.hpp>
-#include <boost/format.hpp>
#include <fmt/format.h>
#include <iomanip>
#include <fmt/format.h>
#include <iomanip>
#include "PrototxtConversions.hpp"
#include "armnn/Tensor.hpp"
#include "PrototxtConversions.hpp"
#include "armnn/Tensor.hpp"
-#include <boost/format.hpp>
-
#include <iomanip>
#include <sstream>
#include <string>
#include <iomanip>
#include <sstream>
#include <string>
#include <arm_compute/runtime/CL/CLBufferAllocator.h>
#include <arm_compute/runtime/CL/CLScheduler.h>
#include <arm_compute/runtime/CL/CLBufferAllocator.h>
#include <arm_compute/runtime/CL/CLScheduler.h>
-#include <boost/format.hpp>
-
#include <arm_compute/runtime/CL/CLScheduler.h>
#include <arm_compute/runtime/CL/CLScheduler.h>
-#include <boost/format.hpp>
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <boost/test/unit_test.hpp>
#include <iostream>
-#include <boost/format.hpp>
-
namespace armnn
{
namespace
namespace armnn
{
namespace
#include "RefWorkloadUtils.hpp"
#include "StridedSlice.hpp"
#include "RefWorkloadUtils.hpp"
#include "StridedSlice.hpp"
-#include <boost/format.hpp>
-
-#include <boost/format.hpp>
-
#include <cstring>
namespace armnn
#include <cstring>
namespace armnn
#include <armnn/utility/NumericCast.hpp>
#include <armnn/utility/NumericCast.hpp>
-#include <boost/format.hpp>
-
#include <iostream>
#include <fcntl.h>
#include <array>
#include <iostream>
#include <fcntl.h>
#include <array>
#include <armnnUtils/Permute.hpp>
#include <armnn/utility/NumericCast.hpp>
#include <armnnUtils/Permute.hpp>
#include <armnn/utility/NumericCast.hpp>
-#include <boost/format.hpp>
-
#include <iostream>
#include <fcntl.h>
#include <array>
#include <iostream>
#include <fcntl.h>
#include <array>
#include <Filesystem.hpp>
#include "../src/armnn/Profiling.hpp"
#include <Filesystem.hpp>
#include "../src/armnn/Profiling.hpp"
-#include <boost/format.hpp>
#include <boost/program_options.hpp>
#include <fstream>
#include <boost/program_options.hpp>
#include <fstream>
#include <tuple>
#include <utility>
#include <tuple>
#include <utility>
-#include <boost/format.hpp>
-
#include "InferenceTestImage.hpp"
namespace
#include "InferenceTestImage.hpp"
namespace