Skip to content

Commit

Permalink
Add a repro for #3479
Browse files Browse the repository at this point in the history
  • Loading branch information
wujingyue committed Nov 26, 2024
1 parent 9c9c34c commit 22a05d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/cpp/test_allocation_domain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1426,8 +1426,9 @@ TEST_F(AllocationDomainTest, InputAllocationIsSplit_Concrete) {
fusion->addInput(in);
fusion->addOutput(out);

in->split(0, 2);
in->setAllocationDomain(in->getLoopDomain(), true);
auto [outer, inner] = IterDomain::split(
in->axis(0), IrBuilder::create<Val>(2, DataType::Index), true);
in->setAllocationDomain({outer, inner}, true);

FusionExecutorCache executor_cache(std::move(fusion));
auto options = at::TensorOptions().dtype(at::kFloat).device(at::kCUDA);
Expand Down

0 comments on commit 22a05d5

Please sign in to comment.