privacy icon indicating copy to clipboard operation
privacy copied to clipboard

Does not work with eager mode

Open qinghao1 opened this issue 6 years ago • 2 comments

To reproduce:

  1. Go to tutorials/Classification_Privacy.ipynb
  2. Run the following
tf.compat.v1.enable_eager_execution()
assert tf.executing_eagerly()
  1. Run the notebook. Accuracy does not increase with training, stays at 0.1. If I remove the above two lines and rerun, accuracy increases as expected.

qinghao1 avatar Dec 11 '19 20:12 qinghao1

I can confirm on my own data. Running TF 2 or TF nightly, whether using subclassing or Keras, the losses and weights are all nan. I have to disable_v2_behavior to make it work.

It would be great if this could be fixed, thanks!

skeydan avatar Dec 13 '19 15:12 skeydan

what's the update to this? does tf-privacy still doesn't work on eager mode?

carlodavid012 avatar Mar 02 '20 07:03 carlodavid012