You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TEST_F(MovePadTest, Issue) {
auto fusion_ptr = std::make_unique<Fusion>();
Fusion& fusion = *fusion_ptr;
FusionGuard fg(fusion_ptr.get());
auto tv0 = makeSymbolicTensor(2);
fusion.addInput(tv0);
auto tv1 = makeSymbolicTensor(2);
fusion.addInput(tv1);
auto tv2 = slice(tv0, {{fusion.oneVal(), tv0->axis(0)->extent()},
{fusion.zeroVal(), tv0->axis(1)->extent()}});
auto tv3 = segment_set(tv2);
auto tv4 = add(tv3, tv1);
auto tv5 = pad(tv4, {fusion.zeroVal(), fusion.oneVal()});
auto tv6 = set(tv5);
fusion.addOutput(tv6);
auto options = at::TensorOptions().dtype(at::kFloat).device(at::kCUDA, 0);
auto t0 = at::randn({5, 10}, options);
auto t1 = at::randn({4, 10}, options);
std::vector<c10::IValue> inputs({t0, t1});
FusionExecutorCache executor_cache(std::move(fusion_ptr));
auto outputs = executor_cache.runFusionWithInputs(inputs);
testValidate(
executor_cache.fusion(), outputs, inputs, __LINE__, __FILE__);
}
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from MovePadTest
[ RUN ] MovePadTest.TMP
unknown file: Failure
C++ exception with description " INTERNAL ASSERT FAILED at "/home/nmaruyama/nvfuser/debug3/csrc/runtime/allocations.cpp":168, please report a bug with repro script to NVFuser at https://github.com/NVIDIA/Fuser/issues. Could not launch kernel as program could not infer i3(i3) for the buffer T6_g_float[iS14{i3}, iS19{( i2 + 1 )}]
Exception raised from inferShape at /home/nmaruyama/nvfuser/debug3/csrc/runtime/allocations.cpp:168 (most recent call first):
Encountered while testing #3556
Repro:
Here's the fusion after the preseg pass:
As you can see, only
T6
hasi3
, which causesExprEvaluator
to fail to infer its size.The text was updated successfully, but these errors were encountered: