Skip to content

Commit

Permalink
Remove using namespace from header in glow/glow/lib/Backends/NNPI/N…
Browse files Browse the repository at this point in the history
…NPIResource.cpp +3

Differential Revision: D56221159
  • Loading branch information
r-barnes authored and facebook-github-bot committed Apr 17, 2024
1 parent 2bc5be9 commit be7abe4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Backends/NNPI/NNPIResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ bool NNPIResource::init(const NNPIObjectName name,
// Create device resource.
bool allocateDeviceResource = false;

shared_ptr<NNPIResource> sharedResource = nullptr;
std::shared_ptr<NNPIResource> sharedResource = nullptr;
if (phUsage) {
sharedResource = findResourceForDevice(*users, device_);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Backends/NNPI/NNPIUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 0 additions & 2 deletions lib/Backends/NNPI/NNPIUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
#include <string>
#include <vector>

using namespace std;

enum NNPIAVXType { NNPI_AVX_NONE = 0, NNPI_AVX_AVX512 };

inline void convertI64toI32(int64_t const *i64Data, int32_t *i32Data,
Expand Down

0 comments on commit be7abe4

Please sign in to comment.