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

Method forward

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

Source from the content-addressed store, hash-verified

10
11 @staticmethod
12 def forward(ctx, inputs, targets, features, momentum):
13 ctx.features = features
14 ctx.momentum = momentum
15 ctx.save_for_backward(inputs, targets)
16 outputs = inputs.mm(ctx.features.t())
17
18 return outputs
19
20 @staticmethod
21 def backward(ctx, grad_outputs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected