Fix example of torch.clamp (#7131)

This commit is contained in:
Kento NOZAWA
2018-05-01 21:52:32 +09:00
committed by Adam Paszke
parent ba046331e8
commit dccfdf317b

View File

@ -762,9 +762,9 @@ Example::
>>> a = torch.randn(4)
>>> a
tensor([ 0.0753, -0.4702, -0.4599, 0.1899])
tensor([ 0.7753, -0.4702, -0.4599, 1.1899])
>>> torch.clamp(a, max=0.5)
tensor([ 0.0753, -0.4702, -0.4599, 0.1899])
tensor([ 0.5000, -0.4702, -0.4599, 0.5000])
""")
add_docstr(torch.cos,