# 比较与torch.nn.ParameterList的功能差异

[![查看源文件](https://gitee.com/mindspore/docs/raw/r1.5/resource/_static/logo_source.png)](https://gitee.com/mindspore/docs/blob/r1.5/docs/mindspore/migration_guide/source_zh_cn/api_mapping/pytorch_diff/ParameterTuple.md)

## torch.nn.ParameterList

```python
class torch.nn.ParameterList(parameters=None)
```

更多内容详见[torch.nn.ParameterList](https://pytorch.org/docs/1.5.0/nn.html#torch.nn.ParameterList)。

## mindspore.ParameterTuple

```python
class mindspore.ParameterTuple()
```

更多内容详见[mindspore.ParameterTuple](https://mindspore.cn/docs/api/zh-CN/r1.5/api_python/mindspore/mindspore.ParameterTuple.html#mindspore.ParameterTuple)。

## 使用方式

PyTorch:以列表形式储存网络参数。

MindSpore:以元组形式储存网络参数。