Skip to content

Commit cd468d0

Browse files
committed
Fix build failure
1 parent a7b1b83 commit cd468d0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nnvm/include/nnvm/op_attr_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ using FCorrectLayout = std::function<bool(
224224
* \return success flag.
225225
*/
226226
using FCorrectLayoutEx = std::function<bool(
227-
const NodeAttrs& attrs,
227+
NodeAttrs& attrs,
228228
std::vector<TShape>* ishapes,
229229
std::vector<Layout>* ilayouts,
230230
const std::vector<Layout>* last_ilayouts,

nnvm/src/top/nn/nn.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ inline bool BatchNormInferShape(const nnvm::NodeAttrs& attrs,
194194
return true;
195195
}
196196

197-
inline bool BatchNormCorrectLayout(const NodeAttrs& attrs,
197+
inline bool BatchNormCorrectLayout(NodeAttrs& attrs,
198198
std::vector<TShape>* ishapes,
199199
std::vector<Layout> *in_layouts,
200200
const std::vector<Layout> *last_in_layouts,
@@ -593,7 +593,7 @@ inline bool PadInferShape(const nnvm::NodeAttrs& attrs,
593593
return true;
594594
}
595595

596-
inline bool PadCorrectLayout(const NodeAttrs& attrs,
596+
inline bool PadCorrectLayout(NodeAttrs& attrs,
597597
std::vector<TShape>* ishapes,
598598
std::vector<Layout>* ilayouts,
599599
const std::vector<Layout>* last_ilayouts,

0 commit comments

Comments
 (0)