MCPcopy Create free account
hub / github.com/TPCD/DCCL / forward

Method forward

project_utils/cluster_memory_utils.py:45–51  ·  view source on GitHub ↗
(ctx, inputs, targets, features, momentum)

Source from the content-addressed store, hash-verified

43
44 @staticmethod
45 def forward(ctx, inputs, targets, features, momentum):
46 ctx.features = features
47 ctx.momentum = momentum
48 ctx.save_for_backward(inputs, targets)
49 outputs = inputs.mm(ctx.features.t())
50
51 return outputs
52
53 @staticmethod
54 def backward(ctx, grad_outputs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected