Skip to content

Commit

Permalink
Revert "use two pass reduction for deterministic reduction order (#11… (
Browse files Browse the repository at this point in the history
pytorch#120243)

This reverts commit cc7ef43.

Manual revert because of the conflict in: test/inductor/test_cpu_repro.py , conflict with this PR: pytorch#118365

Pull Request resolved: pytorch#120243
Approved by: https://github.com/malfet, https://github.com/huydhn
  • Loading branch information
atalman authored and pytorchmergebot committed Feb 20, 2024
1 parent 4f0f25b commit be8ba5e
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 197 deletions.
10 changes: 0 additions & 10 deletions test/inductor/test_cpu_repro.py
Original file line number Diff line number Diff line change
Expand Up @@ -3371,16 +3371,6 @@ def fn(x):
self.common(fn, (x,))
assert metrics.generated_cpp_vec_kernel_count == 1

@config.patch({"cpp.dynamic_threads": True})
def test_reduction_with_dynamic_threads(self):
def fn(a, b):
return a.sum(), b.sum()

self.common(
fn,
(torch.randn(1000), torch.rand(1000)),
)

def test_no_redundant_to_dtypes_between_fused_scheduler_node(self):
# https://github.com/pytorch/pytorch/issues/115260
p0 = torch.tensor([1.0879], dtype=torch.float16)
Expand Down
Loading

0 comments on commit be8ba5e

Please sign in to comment.