提交 b5e42c30 编写于 作者: - --get 提交者: MaxwellDing

(bugfix): split axis trans bug

上级 1f01c4fd
...@@ -55,8 +55,7 @@ int SplitConverter(void* ctx, OpLite* op, KernelBase* kernel) { ...@@ -55,8 +55,7 @@ int SplitConverter(void* ctx, OpLite* op, KernelBase* kernel) {
auto dims = x_dims.size(); auto dims = x_dims.size();
int axis = (param_axis < 0) ? (param_axis + dims) : param_axis; int axis = (param_axis < 0) ? (param_axis + dims) : param_axis;
CHECK_LE(axis, 4) << "Unsupport dims in mlu concat"; CHECK_LE(axis, 4) << "Unsupport dims in mlu concat";
int nchw_to_nhwc_axis_map[4] = {0, 3, 1, 2}; int nhwc_axis = GetAxisNHWC2NCHW<int>(dims)[axis];
int nhwc_axis = nchw_to_nhwc_axis_map[axis];
CHECK(graph->HasNode(x_var_name)); CHECK(graph->HasNode(x_var_name));
auto input_tensor = graph->GetNode(x_var_name); auto input_tensor = graph->GetNode(x_var_name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册