💻 源码
import torch

model = torch.nn.Linear(in_features=3, out_features=4)
print('model-->', model)
print('weight-->', model.weight)
print('bias-->', model.bias)