Skip to content

Commit

Permalink
fixed review comments
Browse files Browse the repository at this point in the history
Signed-off-by: majing <[email protected]>
  • Loading branch information
majing921201 committed Jul 22, 2024
1 parent c7f7ccb commit 0063a00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ATen/native/xpu/Histogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ static Tensor& histogramdd_out(
bool density,
Tensor& hist,
Tensor& bin_edges) {
globalContext().alertNotDeterministic("histogram_bin_xpu");
histogramdd_check_inputs(self, bins, weight);
histogramdd_prepare_out(self, bins, hist, bin_edges);

Expand Down Expand Up @@ -168,7 +167,6 @@ std::tuple<Tensor&, Tensor&> XPUNativeFunctions::histogram_out(
bool density,
Tensor& hist,
Tensor& bin_edges) {
globalContext().alertNotDeterministic("histogram_bin_count_xpu");
Tensor reshaped_self = self.reshape({self.numel()});
std::optional<Tensor> reshaped_weight = weight.has_value()
? weight.value().reshape({weight.value().numel()})
Expand Down
2 changes: 2 additions & 0 deletions src/ATen/native/xpu/sycl/HistogramddKernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ void histogramdd_kernel(
bool density,
Tensor& hist,
const Tensor& bin_edges_) {
globalContext().alertNotDeterministic("histogramdd_kernel_xpu");
hist.fill_(0);
Tensor bin_edges = bin_edges_.contiguous();
AT_DISPATCH_FLOATING_TYPES_AND2(
Expand Down Expand Up @@ -180,6 +181,7 @@ void histogramdd_linear_kernel(
bool density,
Tensor& hist,
Tensor& out_bin_edges) {
globalContext().alertNotDeterministic("histogramdd_linear_kernel_xpu");
hist.fill_(0);

// default range for empty input
Expand Down

0 comments on commit 0063a00

Please sign in to comment.