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

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
azai91 committed Jun 8, 2018
1 parent 2408bce commit 2786ff9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tests/cpp/operator/mkldnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

#if MXNET_USE_MKLDNN == 1

#include <mkldnn_types.h>
#include <cmath>
#include <set>
#include <mkldnn_types.h>
#include "gtest/gtest.h"
#include "mxnet/imperative.h"
#include "../../src/operator/nn/mkldnn/mkldnn_base-inl.h"
Expand Down Expand Up @@ -457,7 +457,8 @@ std::vector<NDArrayAttrs> GetTestInputArrays(InitFunc init_fn) {
desc = "MKLDNN NDArray";
if (shape.ndim() != pd.desc().data.ndims) {
std::stringstream ss;
ss << "MKLDNN NDArray with different memory layout " << shape.ndim() << "/" << pd.desc().data.ndims;
ss << "MKLDNN NDArray with different memory layout " <<
shape.ndim() << "/" << pd.desc().data.ndims;
desc = ss.str();
}
in_arrs.emplace_back(arr, desc);
Expand All @@ -468,7 +469,8 @@ std::vector<NDArrayAttrs> GetTestInputArrays(InitFunc init_fn) {
desc = "Reshaped MKLDNN NDArray";
if (shape.ndim() != pd.desc().data.ndims) {
std::stringstream ss;
ss << "Reshaped MKLDNN NDArray with different memory layout " << shape.ndim() << "/" << pd.desc().data.ndims;
ss << "Reshaped MKLDNN NDArray with different memory layout "
<< shape.ndim() << "/" << pd.desc().data.ndims;
desc = ss.str();
}
InitMKLDNNArray(&arr, pd, init_fn);
Expand Down Expand Up @@ -567,7 +569,8 @@ std::vector<NDArrayAttrs> GetTestOutputArrays(const TShape &shape,
desc = "MKLDNN NDArray";
if (shape.ndim() != pd.desc().data.ndims) {
std::stringstream ss;
ss << "MKLDNN NDArray with different memory layout " << shape.ndim() << "/" << pd.desc().data.ndims;
ss << "MKLDNN NDArray with different memory layout "
<< shape.ndim() << "/" << pd.desc().data.ndims;
desc = ss.str();
}
in_arrs.emplace_back(arr, desc);
Expand All @@ -583,7 +586,8 @@ std::vector<NDArrayAttrs> GetTestOutputArrays(const TShape &shape,
desc = "Reused MKLDNN NDArray";
if (shape.ndim() != pd.desc().data.ndims) {
std::stringstream ss;
ss << "Reused MKLDNN NDArray with different memory layout " << shape.ndim() << "/" << pd.desc().data.ndims;
ss << "Reused MKLDNN NDArray with different memory layout "
<< shape.ndim() << "/" << pd.desc().data.ndims;
desc = ss.str();
}
in_arrs.emplace_back(arr, desc);
Expand Down

0 comments on commit 2786ff9

Please sign in to comment.