x_train = x_train.reshape(-1, 1) y_values = [2*i + 1 for i in x_values] ... We defined a class for linear regression, that inherits torch.nn.
確定! 回上一頁