MCPcopy Create free account
hub / github.com/CausalLearning/robust-unlearnable-examples / closure

Method closure

models/densenet.py:61–62  ·  view source on GitHub ↗
(*inputs)

Source from the content-addressed store, hash-verified

59 @torch.jit.unused # noqa: T484
60 def call_checkpoint_bottleneck(self, input: List[Tensor]) -> Tensor:
61 def closure(*inputs):
62 return self.bn_function(inputs)
63
64 return cp.checkpoint(closure, *input)
65

Callers

nothing calls this directly

Calls 1

bn_functionMethod · 0.95

Tested by

no test coverage detected