Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Hackathon 7th No.41】NO.41 为 Paddle 代码转换工具新增 API 转换规则(第 8 组) #6887

Merged
merged 21 commits into from
Oct 22, 2024
Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## [torch 参数更多 ]torch.distributions.chi2.Chi2

### [torch.distributions.chi2.Chi2](https://pytorch.org/docs/stable/distributions.html#chi2)

```python
torch.distributions.chi2.Chi2(df, validate_args=None)
```

### [paddle.distribution.Chi2](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/Chi2_cn.html#prob-value)

```python
paddle.distribution.Chi2(df)
```

PyTorch 相比 Paddle 支持更多其他参数,具体如下:

### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| -------------- | ------------ | ----------------------------------------------------------------------- |
| df | df | 表示输入的参数。 |
| validate_args | - | 是否添加验证环节。Paddle 无此参数,一般对训练结果影响不大,可直接删除。 |