Skip to content

Conversation

@yf225
Copy link
Contributor

@yf225 yf225 commented Nov 19, 2025

Error (raised by @v0i0 in https://github.com/pytorch/helion/pull/1119/files#r2535755413):

$ HELION_AUTOTUNE_EFFORT=none python examples/gdn_fwd_h.py
Testing helion correctness...
Traceback (most recent call last):
  File "/home/willfeng/local/helion/helion/_compiler/type_propagation.py", line 669, in propagate_call
    _CheckForIndexCalls.retry_call(fn, proxy_args, proxy_kwargs), origin
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/willfeng/local/helion/helion/language/tile_proxy.py", line 137, in retry_call
    return fn(*proxy_args, **proxy_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/willfeng/local/pytorch-nightly/torch/utils/_stats.py", line 29, in wrapper
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/willfeng/local/pytorch-nightly/torch/_subclasses/fake_tensor.py", line 1390, in __torch_dispatch__
    return self.dispatch(func, types, args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/willfeng/local/pytorch-nightly/torch/_subclasses/fake_tensor.py", line 2148, in dispatch
    return self._cached_dispatch_impl(func, types, args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/willfeng/local/pytorch-nightly/torch/_subclasses/fake_tensor.py", line 1537, in _cached_dispatch_impl
    output = self._dispatch_impl(func, types, args, kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/willfeng/local/pytorch-nightly/torch/_subclasses/fake_tensor.py", line 2786, in _dispatch_impl
    op_impl_out = op_impl(self, func, *args, **kwargs)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/willfeng/local/pytorch-nightly/torch/_subclasses/fake_impls.py", line 180, in dispatch_to_op_implementations_dict
    return op_implementations_dict[func](fake_mode, func, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/willfeng/local/pytorch-nightly/torch/_subclasses/fake_impls.py", line 629, in _view_meta
    return torch._refs._reshape_view_helper(a, *shape, allow_copy=False)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/willfeng/local/pytorch-nightly/torch/_refs/__init__.py", line 3913, in _reshape_view_helper
    shape = utils.infer_size(shape, a.numel())
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/willfeng/local/pytorch-nightly/torch/_prims_common/__init__.py", line 1064, in infer_size
    torch._check(
  File "/home/willfeng/local/pytorch-nightly/torch/__init__.py", line 1706, in _check
    _check_with(RuntimeError, cond, message)  # pyrefly: ignore [bad-argument-type]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/willfeng/local/pytorch-nightly/torch/__init__.py", line 1688, in _check_with
    raise error_type(message_evaluated)
RuntimeError: shape '[8, 1, 8192, 80, 64]' is invalid for input of size 167772160

@yf225 yf225 requested review from jansel and oulgen November 19, 2025 01:56
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2025
@yf225 yf225 force-pushed the gdn-fwd-h_debug_reshape branch from 69700ce to 9b1b530 Compare November 19, 2025 02:03
@yf225 yf225 requested a review from v0i0 November 19, 2025 02:03
@yf225 yf225 merged commit 73cba18 into main Nov 20, 2025
16 checks passed
@yf225 yf225 deleted the gdn-fwd-h_debug_reshape branch November 20, 2025 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants