Spaces:
Build error
Build error
Update lxmert/src/lxmert_lrp.py
Browse files33 unmodified lines3435363737383940411094 unmodified lines11361137113811381139114011411142482 unmodified lines1625162616271627162816291630163133 unmodified lines)from transformers.modeling_utils import PreTrainedModelfrom transformers.utils import loggingfrom transformers.configuration_lxmert import LxmertConfig# from transformers.configuration_lxmert import LxmertConfigfrom transformers.models.lxmert.configuration_lxmert import LxmertConfig
logger = logging.get_logger(__name__)
1094 unmodified lines
@add_start_docstrings_to_model_forward(LXMERT_INPUTS_DOCSTRING.format("batch_size, sequence_length")) @add_code_sample_docstrings( tokenizer_class=_TOKENIZER_FOR_DOC, processor_class=_TOKENIZER_FOR_DOC, checkpoint="unc-nlp/lxmert-base-uncased", output_type=LxmertModelOutput, config_class=_CONFIG_FOR_DOC,482 unmodified lines
@add_start_docstrings_to_model_forward(LXMERT_INPUTS_DOCSTRING.format("batch_size, sequence_length")) @add_code_sample_docstrings( tokenizer_class=_TOKENIZER_FOR_DOC, processor_class=_TOKENIZER_FOR_DOC, checkpoint="unc-nlp/lxmert-base-uncased", output_type=LxmertForQuestionAnsweringOutput, config_class=_CONFIG_FOR_DOC,lxmert/src/lxmert_lrp.py+4-3