Sure, here is a simple example of using F.linear with a weight parameter:
class MyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.weight = nn.Parameter(torch.randn(4, 10))
        
    def forward(self, x):
        print(x.shape)
        x = F.linear(x, self.weight.T)
        print(x.shape)
        x = F.linear(x, self.weight)
        print(out.shape)
        return x

model = MyModel()
x = torch.randn(1, 4)
out = model(x)
> torch.Size([1, 4])
  torch.Size([1, 10])
  torch.Size([1, 4])