Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Lint: fixes: v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mozga-intel committed Sep 10, 2021
1 parent 5f63e3d commit 8f59c6c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
6 changes: 3 additions & 3 deletions src/c_api/c_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ void registerOperators(void* lib,
msgSize,
msgGet);
}
}
} // NOLINT

void registerPartitioners(void* lib,
int verbose,
Expand Down Expand Up @@ -2300,8 +2300,8 @@ int MXNDArrayLoad(const char* fname,
}

if (magic == 0x04034b50 || magic == 0x504b0304 || magic == 0x06054b50 ||
magic == 0x504b0506) { // zip file format; assumed to be npz
auto [data, names] = npz::load_arrays(fname);
magic == 0x504b0506) { // zip file format; assumed to be npz
auto [data, names] = npz::load_arrays(fname); // NOLINT
ret->ret_handles.resize(data.size());
for (size_t i = 0; i < data.size(); ++i) {
NDArray* ptr = new NDArray();
Expand Down
60 changes: 30 additions & 30 deletions src/operator/c_lapack_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -174,47 +174,47 @@
LOG(FATAL) << "MXNet build without lapack. Function " << #func << " is not available."; \
return 1; \
}
MXNET_LAPACK_CWRAPPER1(spotrf, float)
MXNET_LAPACK_CWRAPPER1(dpotrf, double)
MXNET_LAPACK_CWRAPPER1(spotri, float)
MXNET_LAPACK_CWRAPPER1(dpotri, double)
MXNET_LAPACK_CWRAPPER1(spotrf, float) // NOLINT
MXNET_LAPACK_CWRAPPER1(dpotrf, double) // NOLINT
MXNET_LAPACK_CWRAPPER1(spotri, float) // NOLINT
MXNET_LAPACK_CWRAPPER1(dpotri, double) // NOLINT

MXNET_LAPACK_UNAVAILABLE(sposv)
MXNET_LAPACK_UNAVAILABLE(dposv)
MXNET_LAPACK_UNAVAILABLE(sposv) // NOLINT
MXNET_LAPACK_UNAVAILABLE(dposv) // NOLINT

MXNET_LAPACK_CWRAPPER2(sgelqf, float)
MXNET_LAPACK_CWRAPPER2(dgelqf, double)
MXNET_LAPACK_CWRAPPER2(sorglq, float)
MXNET_LAPACK_CWRAPPER2(dorglq, double)
MXNET_LAPACK_CWRAPPER2(sgelqf, float) // NOLINT
MXNET_LAPACK_CWRAPPER2(dgelqf, double) // NOLINT
MXNET_LAPACK_CWRAPPER2(sorglq, float) // NOLINT
MXNET_LAPACK_CWRAPPER2(dorglq, double) // NOLINT

MXNET_LAPACK_CWRAPPER3(ssyevd, float)
MXNET_LAPACK_CWRAPPER3(dsyevd, double)
MXNET_LAPACK_CWRAPPER3(ssyevd, float) // NOLINT
MXNET_LAPACK_CWRAPPER3(dsyevd, double) // NOLINT

MXNET_LAPACK_CWRAPPER4(sgetrf, float)
MXNET_LAPACK_CWRAPPER4(dgetrf, double)
MXNET_LAPACK_CWRAPPER4(sgetrf, float) // NOLINT
MXNET_LAPACK_CWRAPPER4(dgetrf, double) // NOLINT

MXNET_LAPACK_CWRAPPER5(sgetri, float)
MXNET_LAPACK_CWRAPPER5(dgetri, double)
MXNET_LAPACK_CWRAPPER5(sgetri, float) // NOLINT
MXNET_LAPACK_CWRAPPER5(dgetri, double) // NOLINT

MXNET_LAPACK_CWRAPPER6(sgesvd, float)
MXNET_LAPACK_CWRAPPER6(dgesvd, double)
MXNET_LAPACK_CWRAPPER6(sgesvd, float) // NOLINT
MXNET_LAPACK_CWRAPPER6(dgesvd, double) // NOLINT

MXNET_LAPACK_CWRAPPER7(sgesv, float)
MXNET_LAPACK_CWRAPPER7(dgesv, double)
MXNET_LAPACK_CWRAPPER7(sgesv, float) // NOLINT
MXNET_LAPACK_CWRAPPER7(dgesv, double) // NOLINT

MXNET_LAPACK_CWRAPPER8(sgeev, float)
MXNET_LAPACK_CWRAPPER8(dgeev, double)
MXNET_LAPACK_CWRAPPER8(sgeev, float) // NOLINT
MXNET_LAPACK_CWRAPPER8(dgeev, double) // NOLINT

MXNET_LAPACK_CWRAPPER9(sgesdd, float)
MXNET_LAPACK_CWRAPPER9(dgesdd, double)
MXNET_LAPACK_CWRAPPER9(sgesdd, float) // NOLINT
MXNET_LAPACK_CWRAPPER9(dgesdd, double) // NOLINT

MXNET_LAPACK_CWRAPPER10(sgeqrf, float)
MXNET_LAPACK_CWRAPPER10(dgeqrf, double)
MXNET_LAPACK_CWRAPPER10(sgeqrf, float) // NOLINT
MXNET_LAPACK_CWRAPPER10(dgeqrf, double) // NOLINT

MXNET_LAPACK_CWRAPPER11(sgelsd, float)
MXNET_LAPACK_CWRAPPER11(dgelsd, double)
MXNET_LAPACK_CWRAPPER11(sgelsd, float) // NOLINT
MXNET_LAPACK_CWRAPPER11(dgelsd, double) // NOLINT

MXNET_LAPACK_CWRAPPER12(sorgqr, float)
MXNET_LAPACK_CWRAPPER12(dorgqr, double)
MXNET_LAPACK_CWRAPPER12(sorgqr, float) // NOLINT
MXNET_LAPACK_CWRAPPER12(dorgqr, double) // NOLINT

#endif // MSHADOW_USE_MKL == 0
2 changes: 1 addition & 1 deletion src/serialization/cnpy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ NDArray load_array(const std::string& fname) {
namespace npz {

size_t npy_header_blob_read_callback(void* pOpaque, mz_uint64 file_ofs, void* pBuf, size_t n) {
auto [npy_header, blob] =
auto [npy_header, blob] = // NOLINT
*static_cast<std::tuple<const std::string*, const TBlob*>*>(pOpaque); // NOLINT

if (file_ofs < npy_header->size() && file_ofs + n < npy_header->size()) {
Expand Down

0 comments on commit 8f59c6c

Please sign in to comment.