MCPcopy Create free account
hub / github.com/XiangLi1999/PrefixTuning / forward

Method forward

transformers/src/transformers/modeling_ctrl.py:360–497  ·  view source on GitHub ↗
(
        self,
        input_ids=None,
        past_key_values=None,
        attention_mask=None,
        token_type_ids=None,
        position_ids=None,
        head_mask=None,
        inputs_embeds=None,
        use_cache=None,
        output_attentions=None,
        output_hidden_states=None,
        return_dict=None,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

popMethod · 0.80
keysMethod · 0.80
toMethod · 0.80
get_head_maskMethod · 0.45

Tested by

no test coverage detected