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

Commit

Permalink
code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper-Pietkun committed Aug 2, 2022
1 parent 5437747 commit 18a42e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/operator/numpy/np_repeat_op-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ void NumpyRepeatsOpForward(const nnvm::NodeAttrs& attrs,
void* swap_output_tmp_dptr = temp_space.dptr_;
void* repeat_output_tmp_dptr = temp_space.dptr_ + inputs[0].shape_.Size() * type_size;
int* repeat_tmp_dptr =
reinterpret_cast<int*>(temp_space.dptr_ + inputs[0].shape_.Size() * type_size +
outputs[0].shape_.Size() * type_size);
reinterpret_cast<int*>(repeat_output_tmp_dptr + outputs[0].shape_.Size() * type_size);

// Specify parameters for swapaxis function
SwapAxisParam swap_axis_param{};
Expand Down

0 comments on commit 18a42e5

Please sign in to comment.