0
次のエラーが発生しています。モジュールを作成中のAttributeError
AttributeError: cannot assign module before Module.init() call
私は次のようなクラスを持っています。
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)
私はここで間違っていますか?私はPyTorchの初心者です、助けてください!