mirror of https://github.com/llvm/torch-mlir
[cleanup] Be consistent about apostrophe
parent
a7ac0def45
commit
cc468d2d16
|
@ -59,14 +59,14 @@ class DictModule(torch.nn.Module):
|
|||
|
||||
|
||||
try:
|
||||
# CHECK: Only Tensors, TensorPlaceholder's, or sequences of Tensors and TensorPlaceholder's are supported as example args for method inputs. Got '{'a': tensor(3.)}'
|
||||
# CHECK: Only Tensor's, TensorPlaceholder's, or sequences of Tensor's and TensorPlaceholder's are supported as example args for method inputs. Got '{'a': tensor(3.)}'
|
||||
torch_mlir.compile(DictModule(), {'a': torch.tensor(3.0)}, use_tracing=True)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
|
||||
try:
|
||||
# CHECK: Only Tensors, TensorPlaceholder's, or sequences of Tensors and TensorPlaceholder's are supported as example args for method inputs. Got '{'a': tensor(3.)}'
|
||||
# CHECK: Only Tensor's, TensorPlaceholder's, or sequences of Tensor's and TensorPlaceholder's are supported as example args for method inputs. Got '{'a': tensor(3.)}'
|
||||
torch_mlir.compile(DictModule(), [{'a': torch.tensor(3.0)}], use_tracing=True)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
|
|
@ -173,8 +173,8 @@ class ExampleArgs:
|
|||
example_args = [example_args]
|
||||
for arg in example_args:
|
||||
if not isinstance(arg, _example_arg):
|
||||
raise Exception(f"Only Tensors, TensorPlaceholder's, or sequences of "
|
||||
f"Tensors and TensorPlaceholder's are supported as "
|
||||
raise Exception(f"Only Tensor's, TensorPlaceholder's, or sequences of "
|
||||
f"Tensor's and TensorPlaceholder's are supported as "
|
||||
f"example args for method inputs. "
|
||||
f"Got '{arg}'.")
|
||||
return tuple(example_args)
|
||||
|
|
Loading…
Reference in New Issue