Spaces:
Build error
Build error
Update lxmert/src/lxmert_lrp.py
Browse files33 unmodified lines343536373839401094 unmodified lines1135113611371138113911401141482 unmodified lines162416251626162716281629163033 unmodified lines)from transformers.modeling_utils import PreTrainedModelfrom transformers.utils import loggingfrom transformers.configuration_lxmert import LxmertConfiglogger = 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,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,checkpoint="unc-nlp/lxmert-base-uncased",output_type=LxmertForQuestionAnsweringOutput,config_class=_CONFIG_FOR_DOC,33 unmodified lines34353637383940411094 unmodified lines1136113711381139114011411142482 unmodified lines162516261627162816291630163133 unmodified lines)from transformers.modeling_utils import PreTrainedModelfrom transformers.utils import logging# from transformers.configuration_lxmert import LxmertConfigfrom transformers.models.lxmert.configuration_lxmert import LxmertConfiglogger = 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(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(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