MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / forward

Method forward

tests/test_linear4bit.py:500–503  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

498 )
499
500 def forward(self, x):
501 for layer in self.layers:
502 x = torch.utils.checkpoint.checkpoint(layer, x, use_reentrant=False)
503 return x
504
505 net = CheckpointedNet().to(device)
506

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected