Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
finetune
Function · 0.45
finetune
Function · 0.45
finetune
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected