Pytorch 深度学习实践 第5讲
import torchx_data = torch.tensor([[1.0], [2.0], [3.0]])y_data = torch.tensor([[0.], [0.], [1.]])class LogisticRessionModel(torch.nn.Module): def __init__(self): super(LogisticRessionModel, self).__init__() self.linear = torch.nn.