Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit bc628fb

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove using namespace from header in glow/glow/lib/Backends/NNPI/NNPIResource.cpp +3
Reviewed By: palmje Differential Revision: D56221159 fbshipit-source-id: 4b38e1cc651a0daeda3b0f54496769a7f9ee9271
1 parent 2bc5be9 commit bc628fb

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

lib/Backends/NNPI/NNPIResource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ bool NNPIResource::init(const NNPIObjectName name,
255255
// Create device resource.
256256
bool allocateDeviceResource = false;
257257

258-
shared_ptr<NNPIResource> sharedResource = nullptr;
258+
std::shared_ptr<NNPIResource> sharedResource = nullptr;
259259
if (phUsage) {
260260
sharedResource = findResourceForDevice(*users, device_);
261261
}

lib/Backends/NNPI/NNPIUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void DotWriter::clear() {
4747

4848
void DotWriter::addNode(std::string name, std::string label, unsigned color,
4949
std::string subGraph) {
50-
ostringstream os;
50+
std::ostringstream os;
5151
os << name << " [\n";
5252
os << "\tlabel = \"" << label << "\"\n";
5353
os << "\tstyle=\"filled,rounded\"\n";

lib/Backends/NNPI/NNPIUtils.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
#include <string>
2323
#include <vector>
2424

25-
using namespace std;
26-
2725
enum NNPIAVXType { NNPI_AVX_NONE = 0, NNPI_AVX_AVX512 };
2826

2927
inline void convertI64toI32(int64_t const *i64Data, int32_t *i32Data,

0 commit comments

Comments
 (0)