Add x.clamp

Close #1
This commit is contained in:
Kentaro Wada
2017-11-19 01:02:20 +09:00
parent 80169c48ae
commit 3dd9e880cc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -118,7 +118,7 @@
| `x.argmin` | `mins, indices = torch.min(x, [dim])` |
| `x.max` | `maxs, indices = torch.max(x, [dim])` |
| `x.argmax` | `maxs, indices = torch.max(x, [dim])` |
| `x.clip` | |
| `x.clip` | `x.clamp` |
| `x.round` | `x.round` |
| `np.floor(x)` | `x.floor()` |
| `np.ceil(x)` | `x.ceil()` |
+1 -1
View File
@@ -135,7 +135,7 @@ constructors:
- numpy: x.argmax
pytorch: maxs, indices = torch.max(x, [dim])
- numpy: x.clip
pytorch:
pytorch: x.clamp
- numpy: x.round
pytorch: x.round
- numpy: np.floor(x)