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

Commit

Permalink
Address cr
Browse files Browse the repository at this point in the history
  • Loading branch information
reminisce committed Nov 6, 2017
1 parent bce0c01 commit dc17857
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/operator/tensor/indexing_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ Examples::
data = [2, 3, 0]
indices = [[1, 1, 0], [0, 1, 0]]
scatter_nd(data, indices) = [[0, 0], [2, 3]]
shape = (2, 2)
scatter_nd(data, indices, shape) = [[0, 0], [2, 3]]
)code")
.set_num_outputs(1)
Expand Down
4 changes: 2 additions & 2 deletions src/operator/tensor/matrix_op-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ struct slice_forward {
stride *= dshape[k];
}
KERNEL_ASSIGN(out[out_offset++], req,
data[irow*data_last_dim_size+j*step_last_dim+begin_last_dim]);
data[irow * data_last_dim_size + j * step_last_dim + begin_last_dim]);
}
}
};
Expand Down Expand Up @@ -731,7 +731,7 @@ struct slice_backward {
idx /= oshape[k];
stride *= dshape[k];
}
KERNEL_ASSIGN(igrad[irow*data_last_dim_size+j*step_last_dim+begin_last_dim],
KERNEL_ASSIGN(igrad[irow * data_last_dim_size + j * step_last_dim + begin_last_dim],
req, ograd[ograd_offset++]);
}
}
Expand Down

0 comments on commit dc17857

Please sign in to comment.