Closed mshearer0 closed 2 years ago
Hi @mshearer0,
I have made some tweaks to the example a few days ago. It requires tf-nightly
. Feel free to check out the example branch: https://github.com/Building-ML-Pipelines/building-machine-learning-pipelines/tree/updated-privacy-example
Hi Hannes, yes I spotted that and used the new version from the pull request branch but got the same error. Using the modified optimiser works ok
model.fit produces:
AssertionError: compute_gradients() on the differentially private optimizer was not called. Which means that the training is not differentially private. It happens for example in Keras training in TensorFlow 2.0+.
Using modified optimiser here allowed fit to complete.