From 2d906af47cd1d3b8717ce58f8546a9c8452de41b Mon Sep 17 00:00:00 2001 From: wogong Date: Wed, 23 May 2018 10:54:37 +0800 Subject: [PATCH] add debug code. --- models/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/functions.py b/models/functions.py index fc0eab1..f33f2a6 100644 --- a/models/functions.py +++ b/models/functions.py @@ -12,7 +12,7 @@ class ReverseLayerF(Function): @staticmethod def backward(ctx, grad_output): output = grad_output.neg() * ctx.alpha - + #print("reverse gradient is {}".format(output)) return output, None