MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS / custom_forward

Method custom_forward

models/modeling_moss.py:530–532  ·  view source on GitHub ↗
(*inputs)

Source from the content-addressed store, hash-verified

528
529 def create_custom_forward(module):
530 def custom_forward(*inputs):
531 # None for past_key_value
532 return module(*inputs, use_cache, output_attentions)
533
534 return custom_forward
535

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected