Skip to content

[jit] Bool list isn't being created in python -> script conversion #26036

@driazati

Description

@driazati

We should probably just delete BoolList entirely since it's not used

@torch.jit.script
def fn(x: List[bool]):
    x.clear()

fn([True, False])
RuntimeError: isBoolList() INTERNAL ASSERT FAILED at ../aten/src/ATen/core/ivalue_inl.h:551, please report a bug to PyTorch. Expected BoolList but got GenericList
The above operation failed in interpreter, with the following stack trace:
at <string>:3:4
def bool_list(x):
    # type: (List[bool])
    x.clear()
    ~~~~~~~ <--- HERE

cc @suo

Metadata

Metadata

Assignees

Labels

oncall: jitAdd this issue/PR to JIT oncall triage queuetriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions