python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How can I find multiple maximum indices of a torch tensor?
If I have a tensor which has multiple maximum values how can I get all the indices of maximum value. I have tried torch.argmax(tensor) but it only gives me the first index.
>>> a_list = [3,23...
H.Jamil
Votes: 0
Answers: 1
Using the encoder part only from T5 model
I want to build a classification model that needs only the encoder part of language models. I have tried Bert, Roberta, xlnet, and so far I have been successful.
I now want to test the encoder part on...
ls_grep
Votes: 0
Answers: 1
How to get the ROC curve of a neural network?
I'm trying to get the ROC curve for my Neural Network. My network uses pytorch and im using sklearn to get the ROC curve. My model outputs the binary right and wrong and also the probability of the ou...
Samuel Fipps
Votes: 0
Answers: 1
Pytorch-> LSTM-> RuntimeError: input must have 3 dimensions, got 2
I'm facing error in LSTM input dimensions with following model code:
class Model(nn.Module):
def __init__(self, input_size, hidden_size, num_layers, num_keys):
super(Model, self).__init__()
se...
annonyos
Votes: 0
Answers: 1