From be7abe4521d84b30f422e586adaaedee8ac4f410 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Wed, 17 Apr 2024 14:41:08 -0700 Subject: [PATCH] Remove `using namespace` from header in glow/glow/lib/Backends/NNPI/NNPIResource.cpp +3 Differential Revision: D56221159 --- lib/Backends/NNPI/NNPIResource.cpp | 2 +- lib/Backends/NNPI/NNPIUtils.cpp | 2 +- lib/Backends/NNPI/NNPIUtils.h | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Backends/NNPI/NNPIResource.cpp b/lib/Backends/NNPI/NNPIResource.cpp index 93d314ce2d..efc6890de7 100644 --- a/lib/Backends/NNPI/NNPIResource.cpp +++ b/lib/Backends/NNPI/NNPIResource.cpp @@ -255,7 +255,7 @@ bool NNPIResource::init(const NNPIObjectName name, // Create device resource. bool allocateDeviceResource = false; - shared_ptr sharedResource = nullptr; + std::shared_ptr sharedResource = nullptr; if (phUsage) { sharedResource = findResourceForDevice(*users, device_); } diff --git a/lib/Backends/NNPI/NNPIUtils.cpp b/lib/Backends/NNPI/NNPIUtils.cpp index 3bfc06ba75..60ee0544e4 100644 --- a/lib/Backends/NNPI/NNPIUtils.cpp +++ b/lib/Backends/NNPI/NNPIUtils.cpp @@ -47,7 +47,7 @@ void DotWriter::clear() { void DotWriter::addNode(std::string name, std::string label, unsigned color, std::string subGraph) { - ostringstream os; + std::ostringstream os; os << name << " [\n"; os << "\tlabel = \"" << label << "\"\n"; os << "\tstyle=\"filled,rounded\"\n"; diff --git a/lib/Backends/NNPI/NNPIUtils.h b/lib/Backends/NNPI/NNPIUtils.h index 4922237c71..27abbe1d0b 100644 --- a/lib/Backends/NNPI/NNPIUtils.h +++ b/lib/Backends/NNPI/NNPIUtils.h @@ -22,8 +22,6 @@ #include #include -using namespace std; - enum NNPIAVXType { NNPI_AVX_NONE = 0, NNPI_AVX_AVX512 }; inline void convertI64toI32(int64_t const *i64Data, int32_t *i32Data,