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

Method backward

code/utils/grl.py:20–21  ·  view source on GitHub ↗
(ctx, *grad_output)

Source from the content-addressed store, hash-verified

18
19 @staticmethod
20 def backward(ctx, *grad_output):
21 return grad_output * -ctx.lambd, None
22
23# For pytorch version 1.0
24# Usage:

Callers 3

finetuneFunction · 0.45
finetuneFunction · 0.45
finetuneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected