MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / custom_forward

Method custom_forward

tests/unit/modelingpreln.py:473–478  ·  view source on GitHub ↗
(*inputs)

Source from the content-addressed store, hash-verified

471 def custom(start, end):
472
473 def custom_forward(*inputs):
474 layers = self.layer[start:end]
475 x_ = inputs[0]
476 for layer in layers:
477 x_ = layer(x_, inputs[1])
478 return x_
479
480 return custom_forward
481

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected