Я следую этому руководству https://pytorch.org/tutorials/beginner/nlp/deep_learning_tutorial.html#example-logistic-regression-bag-of-words-classifier nn.Linear(vocab_size, num_labels) означает, что форма матрицы num_labels x vocab_size размеры bow_vector равны 1 x vocab_size, а ожидаемый ввод для nn.linear — batch_size x…

IT Шеф
We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept
Privacy Policy