Skip to content

Commit

Permalink
Fix ptr initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiweiYan-96 committed Jun 20, 2024
1 parent 989eb44 commit fc5014d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aten/sycl/AveragePool2dKernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ void avg_pool2d_channels_last_frame(
const int divisor_override,
const bool count_include_pad,
const bool use_divisor) {
scalar_t* top_data = input.data_ptr<scalar_t>();
const scalar_t* bottom_data = output.data_ptr<scalar_t>();
scalar_t* top_data = output.data_ptr<scalar_t>();
const scalar_t* bottom_data = input.data_ptr<scalar_t>();

auto& queue = at::xpu::getCurrentSYCLQueue();
const uint32_t group_size =
Expand Down

0 comments on commit fc5014d

Please sign in to comment.