[Request help] Failed running call_function <built-in function getitem>
I encountered the following issues when converting to PTE:
”RuntimeError: Failed running call_function
Related code
accept_length_item = accept_length.item() # accept_length is a dynamic value
torch.int64 torch._check_is_size(accept_length_item)
torch._check(accept_length_item <= 6)
torch._check(accept_length_item >= 0)
retrieve_indices[0, :accept_length_item + 1]
If "torch._check(accept_length_item <= 5) ", there will be no issue here. But if "torch._check(accept_length_item <= 6) ", the above issue will occur. I think accept_length_item = 6 is legal for "retrieve_indices[0, :accept_length_item + 1]". Here the shape of retrieve_indices is [1, 7].
cc @mergennachin @byjlw
@angelayi @tugsbayasgalan can you take a look?
Given that this error is related to export you might get a faster response if you file an issue in pytorch/pytorch @liye0626
Hi @liye0626, were you able to get a response on pytorch/pytorch?