↓ 1 callersMethodadd_examples_from_csv(
self,
file_name,
split_name="",
column_label=0,
column_text=1,
src/transformers/data/processors/utils.py:164
↓ 1 callersFunctionanswer_question(
question_doc, s2s_model, s2s_tokenizer, min_len=64, max_len=256, sampling=False, n_beams=2, top_p=0.95,
examples/longform-qa/eli5_app.py:108
↓ 1 callersMethodcausal_attention_mask1's in the lower triangle, counting from the lower right corner. Same as tf.matrix_band_part(tf.ones([nd, ns]), -1, ns-nd), but doesn't produc
src/transformers/modeling_tf_openai.py:95
↓ 1 callersMethodcausal_attention_mask1's in the lower triangle, counting from the lower right corner. Same as tf.matrix_band_part(tf.ones([nd, ns]), -1, ns-nd), but doesn't produc
src/transformers/modeling_tf_gpt2.py:88
↓ 1 callersMethodcheck_cutoffs_and_n_token(
self, copied_cutoffs, layer, model_embed, model, model_class, resized_value, vocab_size
)
tests/test_modeling_transfo_xl.py:172
↓ 1 callersMethodcheck_prepare_lm_labels_via_shift_left(
self, config, input_ids, decoder_input_ids, attention_mask, decoder_attention_mask, lm_labels,
)
tests/test_modeling_t5.py:99
↓ 1 callersFunctionconvert_pt_checkpoint_to_tf(
model_type, pytorch_checkpoint_path, config_file, tf_dump_path, compare_with_pt_model=False, use_cached_
src/transformers/convert_pytorch_checkpoint_to_tf2.py:187