"...text-generation-inference.git" did not exist on "628334d33638709e7b0f91fbaaa290fec2d016f3"
Commit a449f775 authored by rusty1s's avatar rusty1s
Browse files

typo

parent 9216364c
...@@ -322,6 +322,7 @@ class SparseTensor(object): ...@@ -322,6 +322,7 @@ class SparseTensor(object):
def __getitem__(self, index): def __getitem__(self, index):
index = list(index) if isinstance(index, tuple) else [index] index = list(index) if isinstance(index, tuple) else [index]
# More than one `Ellipsis` is not allowed...
if len([i for i in index if not torch.is_tensor(i) and i == ...]) > 1: if len([i for i in index if not torch.is_tensor(i) and i == ...]) > 1:
raise SyntaxError() raise SyntaxError()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment