Skip to content

Commit 0f1621d

Browse files
nkaretnikovpytorchmergebot
authored andcommitted
[pt2] fix typos in checkFloatingOrComplex errors (pytorch#102456)
Pull Request resolved: pytorch#102456 Approved by: https://github.com/lezcano
1 parent e380d69 commit 0f1621d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/_meta_registrations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,12 @@ def checkFloatingOrComplex(
362362
dtype = t.dtype
363363
check(
364364
t.is_floating_point() or t.is_complex(),
365-
lambda: f"{f_name}, : Expected a floating point or complex tensor as input. Got , {dtype}",
365+
lambda: f"{f_name}: Expected a floating point or complex tensor as input. Got {dtype}",
366366
)
367367
if allow_low_precision_dtypes:
368368
check(
369369
dtype in (torch.float, torch.double, torch.cfloat, torch.cdouble),
370-
lambda: f"{f_name} : Low precision dtypes not supported. Got {dtype}",
370+
lambda: f"{f_name}: Low precision dtypes not supported. Got {dtype}",
371371
)
372372

373373

0 commit comments

Comments
 (0)