Skip to content

Commit

Permalink
Update VBPR.py
Browse files Browse the repository at this point in the history
  • Loading branch information
duxy-me committed Nov 27, 2018
1 parent 332bc5e commit c924225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/VBPR.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _create_loss(self):
else:
print 'gradient noise'
self.delta = tf.gradients(self.loss, [self.image_feature])[0]
tf.stop_gradient(self.delta)
self.delta = tf.stop_gradient(self.delta)

self.pos_pred_adv,_,_,_ = self._create_inference(self.user_input, self.pos_input, adv=True)
self.neg_pred_adv,_,_,_ = self._create_inference(self.user_input, self.neg_input, adv=True)
Expand Down

0 comments on commit c924225

Please sign in to comment.