ISubGVQA.models.question_encoder ================================ .. py:module:: ISubGVQA.models.question_encoder Classes ------- .. autoapisummary:: ISubGVQA.models.question_encoder.QuestionEncoder Module Contents --------------- .. py:class:: QuestionEncoder(text_vocab_embedding, text_emb_dim, ninp, nhead, nhid, nlayers, dropout=0.5) Bases: :py:obj:`torch.nn.Module` .. py:attribute:: text_vocab_embedding .. py:attribute:: model_type :value: 'Transformer' .. py:attribute:: emb_proj .. py:attribute:: pos_encoder .. py:attribute:: transformer_encoder .. py:attribute:: ninp .. py:method:: forward(src, mask)