FloatTensor X = Variable(torch.from_numpy(train_X).type(dtype) ... code is self-explanatory; torch.randn creates a random value of any given shape.
確定! 回上一頁