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
We should probably just delete
BoolListentirely since it's not usedcc @suo