diff --git a/lib/Backends/NNPI/NNPIResource.cpp b/lib/Backends/NNPI/NNPIResource.cpp index 93d314ce2..efc6890de 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 3bfc06ba7..60ee0544e 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 4922237c7..27abbe1d0 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,