MCPcopy Create free account
hub / github.com/SooLab/CGFormer / custom_forward

Method custom_forward

bert/modeling_bert.py:419–420  ·  view source on GitHub ↗
(*inputs)

Source from the content-addressed store, hash-verified

417
418 def create_custom_forward(module):
419 def custom_forward(*inputs):
420 return module(*inputs, output_attentions)
421
422 return custom_forward
423

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected