diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gcd.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gcd.md new file mode 100644 index 00000000000..23ea30fbc23 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gcd.md @@ -0,0 +1,19 @@ +## [ 仅参数名不一致 ]torch.Tensor.gcd + +### [torch.Tensor.gcd](https://pytorch.org/docs/1.13/generated/torch.Tensor.gcd.html?highlight=torch+tensor+gcd#torch.Tensor.gcd) + +```python +torch.Tensor.gcd(other) +``` + +### [paddle.Tensor.gcd](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#gcd-x-y-name-none) + +```python +paddle.Tensor.gcd(y, name=None) +``` + +两者功能一致,仅参数名不一致,具体如下: +### 参数映射 +| PyTorch | PaddlePaddle | 备注 | +|----------------------------------|------------------------------| ------------------------------------------------------ | +| other | y | 输入的 Tensor ,仅参数名不同。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ge.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ge.md new file mode 100644 index 00000000000..d8983d51d5a --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ge.md @@ -0,0 +1,19 @@ +## [ 仅参数名不一致 ]torch.Tensor.ge + +### [torch.Tensor.ge](https://pytorch.org/docs/1.13/generated/torch.Tensor.ge.html?highlight=torch+tensor+ge#torch.Tensor.ge) + +```python +torch.Tensor.ge(other) +``` + +### [paddle.Tensor.greater_equal](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#greater-equal-y-name-none) + +```python +paddle.Tensor.greater_equal(y, name=None) +``` + +两者功能一致,仅参数名不一致,具体如下: +### 参数映射 +| PyTorch | PaddlePaddle | 备注 | +|----------------------------------|------------------------------| ------------------------------------------------------ | +| other | y | 输入的 Tensor ,仅参数名不同。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ger.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ger.md new file mode 100644 index 00000000000..734ce411aa6 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.ger.md @@ -0,0 +1,19 @@ +## [ 仅参数名不一致 ]torch.Tensor.ger + +### [torch.Tensor.ger](https://pytorch.org/docs/1.13/generated/torch.Tensor.ger.html?highlight=torch+tensor+ger#torch.Tensor.ger) + +```python +torch.Tensor.ger(vec2) +``` + +### [paddle.Tensor.outer]() + +```python +paddle.Tensor.outer(y, name=None) +``` + +两者功能一致,仅参数名不一致,具体如下: +### 参数映射 +| PyTorch | PaddlePaddle | 备注 | +|--------------------------------|------------------------------| ------------------------------------------------------ | +| vec2 | y | 输入的 Tensor ,仅参数名不同。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.get_device.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.get_device.md new file mode 100644 index 00000000000..ebb95735262 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.get_device.md @@ -0,0 +1,15 @@ +## [ 无参数 ]torch.Tensor.get_device + +### [torch.Tensor.get_device](https://pytorch.org/docs/1.13/generated/torch.Tensor.get_device.html?highlight=torch+tensor+get_device#torch.Tensor.get_device) + +```python +torch.Tensor.get_device() +``` + +### [paddle.device.get_device]() + +```python +paddle.device.get_device() +``` + +两者功能一致且无参数。 diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater.md new file mode 100644 index 00000000000..e08c066f1dd --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater.md @@ -0,0 +1,19 @@ +## [ 仅参数名不一致 ]torch.Tensor.greater + +### [torch.Tensor.greater](https://pytorch.org/docs/1.13/generated/torch.Tensor.greater.html?highlight=torch+tensor+greater#torch.Tensor.greater) + +```python +torch.Tensor.greater(other) +``` + +### [paddle.Tensor.greater_than](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#greater-than-y-name-none) + +```python +paddle.Tensor.greater_than(y, name=None) +``` + +两者功能一致,仅参数名不一致,具体如下: +### 参数映射 +| PyTorch | PaddlePaddle | 备注 | +|----------------------------------|------------------------------| ------------------------------------------------------ | +| other | y | 输入的 Tensor ,仅参数名不同。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_equal.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_equal.md new file mode 100644 index 00000000000..38379873c00 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.greater_equal.md @@ -0,0 +1,19 @@ +## [ 仅参数名不一致 ]torch.Tensor.greater_equal + +### [torch.Tensor.greater_equal](https://pytorch.org/docs/1.13/generated/torch.Tensor.greater_equal.html?highlight=torch+tensor+greater_equal#torch.Tensor.greater_equal) + +```python +torch.Tensor.greater_equal(other) +``` + +### [paddle.Tensor.greater_equal](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#greater-equal-y-name-none) + +```python +paddle.Tensor.greater_equal(y, name=None) +``` + +两者功能一致,仅参数名不一致,具体如下: +### 参数映射 +| PyTorch | PaddlePaddle | 备注 | +|----------------------------------|------------------------------| ------------------------------------------------------ | +| other | y | 输入的 Tensor ,仅参数名不同。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gt.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gt.md new file mode 100644 index 00000000000..fe1bc2d1e8d --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.gt.md @@ -0,0 +1,19 @@ +## [ 仅参数名不一致 ]torch.Tensor.gt + +### [torch.Tensor.gt](https://pytorch.org/docs/1.13/generated/torch.Tensor.gt.html?highlight=torch+tensor+gt#torch.Tensor.gt) + +```python +torch.Tensor.gt(other) +``` + +### [paddle.Tensor.greater_than](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#greater-than-y-name-none) + +```python +paddle.Tensor.greater_than(y, name=None) +``` + +两者功能一致,仅参数名不一致,具体如下: +### 参数映射 +| PyTorch | PaddlePaddle | 备注 | +|----------------------------------|------------------------------| ------------------------------------------------------ | +| other | y | 输入的 Tensor ,仅参数名不同。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.hardshrink.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.hardshrink.md new file mode 100644 index 00000000000..9a3efb681fc --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.hardshrink.md @@ -0,0 +1,21 @@ +## [ 仅参数名不一致 ]torch.Tensor.hardshrink + +### [torch.Tensor.hardshrink](https://pytorch.org/docs/1.13/generated/torch.Tensor.hardshrink.html?highlight=torch+tensor+hardshrink#torch.Tensor.hardshrink) + +```python +torch.Tensor.hardshrink(lambd=0.5) +``` + +### [paddle.Tensor.hardshrink]() + +```python +paddle.Tensor.hardshrink(threshold=0.5, name=None) +``` + +两者功能一致且参数用法一致。 + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +|-----------------------------------|------------------------------| ------------------------------------------------------ | +| lambd | threshold | Hardshrink 阈值,仅参数名不同。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.heaviside.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.heaviside.md new file mode 100644 index 00000000000..2e4c0da3185 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.heaviside.md @@ -0,0 +1,19 @@ +## [ 仅参数名不一致 ]torch.Tensor.heaviside + +### [torch.Tensor.heaviside](https://pytorch.org/docs/1.13/generated/torch.Tensor.heaviside.html?highlight=torch+tensor+heaviside#torch.Tensor.heaviside) + +```python +torch.Tensor.heaviside(values) +``` + +### [paddle.Tensor.heaviside](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#heaviside-y-name-none) + +```python +paddle.Tensor.heaviside(y, name=None) +``` + +两者功能一致,仅参数名不一致,具体如下: +### 参数映射 +| PyTorch | PaddlePaddle | 备注 | +|-----------------------------------|------------------------------| ------------------------------------------------------ | +| values | y | 输入的 Tensor ,仅参数名不同。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.histc.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.histc.md new file mode 100644 index 00000000000..089aa6da17d --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.histc.md @@ -0,0 +1,23 @@ +## [ 参数完全一致 ]torch.Tensor.histc + +### [torch.Tensor.histc](https://pytorch.org/docs/1.13/generated/torch.Tensor.histc.html?highlight=torch+tensor+histc#torch.Tensor.histc) + +```python +torch.Tensor.histc(bins=100, min=0, max=0) +``` + +### [paddle.Tensor.histogram](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/Tensor_cn.html#histogram-bins-100-min-0-max-0) + +```python +paddle.Tensor.histogram(bins=100, min=0, max=0, name=None) +``` + +两者功能一致且参数完全一致。 + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +|-----------------------------------|------------------------------| ------------------------------------------------------ | +| bins | bins | 直方图 bins(直条)的个数,默认为 100。 | +| min | min | range 的下边界(包含),默认为 0。 | +| max | max | range 的上边界(包含),默认为 0。 |