Skip to content

Commit

Permalink
[pt2] fix typos in checkFloatingOrComplex errors (pytorch#102456)
Browse files Browse the repository at this point in the history
Pull Request resolved: pytorch#102456
Approved by: https://github.com/lezcano
  • Loading branch information
nkaretnikov authored and pytorchmergebot committed May 30, 2023
1 parent e380d69 commit 0f1621d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch/_meta_registrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,12 @@ def checkFloatingOrComplex(
dtype = t.dtype
check(
t.is_floating_point() or t.is_complex(),
lambda: f"{f_name}, : Expected a floating point or complex tensor as input. Got , {dtype}",
lambda: f"{f_name}: Expected a floating point or complex tensor as input. Got {dtype}",
)
if allow_low_precision_dtypes:
check(
dtype in (torch.float, torch.double, torch.cfloat, torch.cdouble),
lambda: f"{f_name} : Low precision dtypes not supported. Got {dtype}",
lambda: f"{f_name}: Low precision dtypes not supported. Got {dtype}",
)


Expand Down

0 comments on commit 0f1621d

Please sign in to comment.