diff --git a/README.md b/README.md index 6668eef..a62cfae 100644 --- a/README.md +++ b/README.md @@ -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()` | diff --git a/conversions.yaml b/conversions.yaml index 5033251..7d8d47c 100644 --- a/conversions.yaml +++ b/conversions.yaml @@ -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)