Hi,
Yes, you just need to do usual math operations and it will work just fine. For example
weight = nn.Parameter(torch.rand(4))
input = Variable(torch.rand(4))

output = input * weight # weight is a learnable parameter