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

Commit

Permalink
use dim_t instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxun-zhang committed Nov 6, 2019
1 parent 3c404a5 commit 7a391af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/operator/nn/mkldnn/mkldnn_slice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ MKLDNNSliceFwd::MKLDNNSliceFwd(const SliceParam &param,
mkldnn::memory::dims dims(N);
mkldnn::memory::dims offsets(N);
for (int i = 0; i < N; ++i) {
int s = 0;
dim_t s = 0;
if (i < param.begin.ndim() && param.begin[i]) {
s = *param.begin[i];
if (s < 0) s += ishape[i];
Expand Down
2 changes: 1 addition & 1 deletion src/operator/nn/mkldnn/mkldnn_transpose.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class MKLDNNTransposeForward {

mkldnn_dims_t strides;
mkldnn_dims_t sh;
unsigned int total_stride = 1;
dim_t total_stride = 1;
for (int i = data_ndim - 1; i >= 0; i--) {
sh[i] = shape[i];
strides[axes[i]] = total_stride;
Expand Down

0 comments on commit 7a391af

Please sign in to comment.