MCPcopy
hub / github.com/jindongwang/transferlearning / backward

Method backward

code/DeepDG/network/Adver_network.py:13–15  ·  view source on GitHub ↗
(ctx, grad_output)

Source from the content-addressed store, hash-verified

11
12 @staticmethod
13 def backward(ctx, grad_output):
14 output = grad_output.neg() * ctx.alpha
15 return output, None
16
17
18class Discriminator(nn.Module):

Callers 11

updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
teanettrainMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected