MCPcopy Create free account
hub / github.com/openai/point-e / forward

Method forward

point_e/models/checkpoint.py:34–40  ·  view source on GitHub ↗
(ctx, run_function, length, *args)

Source from the content-addressed store, hash-verified

32class CheckpointFunction(torch.autograd.Function):
33 @staticmethod
34 def forward(ctx, run_function, length, *args):
35 ctx.run_function = run_function
36 ctx.input_tensors = list(args[:length])
37 ctx.input_params = list(args[length:])
38 with torch.no_grad():
39 output_tensors = ctx.run_function(*ctx.input_tensors)
40 return output_tensors
41
42 @staticmethod
43 def backward(ctx, *output_grads):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected