3
$\begingroup$

I am new to machine learning. I am working with a Neural Network that implements the U-Net.
The thing which I understand is when a convolutional layer is created:

createsconv2d = nn.Conv2d(in_channels, v, kernel_size=3, padding=1)

let the in_channel = 3 and out_channel = 64 then,
for kernel_size = 3 it computes with a 3*3 Kernel.

But my question is what are the values of this kernel? How it gets the values?

$\endgroup$
1

1 Answer 1

1
$\begingroup$

Those are the learnable parameters which are learnt through the usual back-propagation algorithm. They can be accessed before and after the learning phase via nn.weight as described in the PyTorch manual.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.