MCPcopy Create free account
hub / github.com/THUDM/GLM / custom_forward

Method custom_forward

model/modeling_bert.py:546–551  ·  view source on GitHub ↗
(*inputs)

Source from the content-addressed store, hash-verified

544
545 def custom(start, end):
546 def custom_forward(*inputs):
547 layers = self.layer[start:end]
548 x_ = inputs[0]
549 for layer in layers:
550 x_ = layer(x_, inputs[1])
551 return x_
552
553 return custom_forward
554

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected