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

Commit

Permalink
sanity fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommliu committed Dec 6, 2019
1 parent d8f99f7 commit 1f2496b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/operator/numpy/np_matrix_op-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1316,8 +1316,8 @@ void NumpyDiagonalOpImpl(const TBlob& in_data,
stride1 + stride2, offset, oshape[odim - 1]);
} else {
Kernel<diag_n<3, req_type, back>, xpu>::Launch(s, dsize, out_data.dptr<DType>(),
in_data.dptr<DType>(), Shape3(oleading, obody, otrailing), Shape3(ileading, ibody, itrailing),
stride1 + stride2, offset, oshape[odim - 1]);
in_data.dptr<DType>(), Shape3(oleading, obody, otrailing),
Shape3(ileading, ibody, itrailing), stride1 + stride2, offset, oshape[odim - 1]);
}
});
});
Expand All @@ -1342,7 +1342,8 @@ void NumpyDiagonalOpForward(const nnvm::NodeAttrs& attrs,
const mxnet::TShape& oshape = outputs[0].shape_;
const NumpyDiagonalParam& param = nnvm::get<NumpyDiagonalParam>(attrs.parsed);

NumpyDiagonalOpImpl<xpu, false>(in_data, out_data, ishape, oshape, out_data.Size(), param, s, req);
NumpyDiagonalOpImpl<xpu, false>(in_data, out_data, ishape, oshape,
out_data.Size(), param, s, req);
}

template<typename xpu>
Expand All @@ -1363,7 +1364,8 @@ void NumpyDiagonalOpBackward(const nnvm::NodeAttrs& attrs,
const mxnet::TShape& oshape = outputs[0].shape_;
const NumpyDiagonalParam& param = nnvm::get<NumpyDiagonalParam>(attrs.parsed);

NumpyDiagonalOpImpl<xpu, true>(in_data, out_data, oshape, ishape, in_data.Size(), param, s, req);
NumpyDiagonalOpImpl<xpu, true>(in_data, out_data, oshape, ishape,
in_data.Size(), param, s, req);
}

struct NumpyDiagflatParam : public dmlc::Parameter<NumpyDiagflatParam> {
Expand Down

0 comments on commit 1f2496b

Please sign in to comment.