0
Je reçois l'erreur suivante.AttributeError dans la création du module
AttributeError: cannot assign module before Module.init() call
J'ai une classe comme suit.
class Classifier(nn.Module):
def __init__(self, dictionary, embeddings_index, max_seq_length, args):
self.embedding = EmbeddingLayer(len(dictionary), args.emsize, args.dropout)
self.drop = nn.Dropout(args.dropout)
Qu'est-ce que je fais mal ici? Je suis débutant dans PyTorch, aidez svp!