# How to read the parameter info

**URL:** <https://dev-discuss.pytorch.org/t/how-to-read-the-parameter-info/1212>\
**Category:** compiler\
**Created:** [April 19, 2023, 9:24am UTC](https://dev-discuss.pytorch.org/t/how-to-read-the-parameter-info/1212 "2023-04-19T09:24:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AR51](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@AR51](https://dev-discuss.pytorch.org/u/AR51)\
**Post date:** [April 19, 2023, 9:24am UTC](https://dev-discuss.pytorch.org/t/how-to-read-the-parameter-info/1212/1 "2023-04-19T09:24:45Z")

</div>

Hi All,

I’m trying to learn how to read the parameters (weights, bias, etc.,). In the below code, the convolution node has the primals\_1 and primals\_2 as weight and bias

class GraphModule(torch.nn.Module):  
def forward(self, primals\_1: f32[64, 3, 3, 3], primals\_2: f32[64], primals\_3: f32[1, 3, 224, 224]):  
# File: sample\_conv.py:12, code: x = self.conv(x)  
convolution: f32[1, 64, 222, 222] = torch.ops.aten.convolution.default(primals\_3, primals\_1, primals\_2, [1, 1], [0, 0], [1, 1], False, [0, 0], 1); primals\_2 = None

```
    # File: sample_conv.py:13, code: x = self.relu(x)
    relu: f32[1, 64, 222, 222] = torch.ops.aten.relu.default(convolution); convolution = None
    return [relu, primals_3, primals_1, relu

```

Can someone give me pointers on how to read the parameters data?

---

<div class="post-metadata">

**Author:** ![Minerva\_Yu](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@Minerva\_Yu](https://dev-discuss.pytorch.org/u/Minerva_Yu)\
**Post date:** [April 20, 2023, 10:13am UTC](https://dev-discuss.pytorch.org/t/how-to-read-the-parameter-info/1212/2 "2023-04-20T10:13:29Z")

</div>

Not pretty sure, but see the api `aten.convolution` [here](https://pytorch.org/docs/master/ir.html)
