Closed shuqike closed 9 months ago
The term self.optimizer only appears in the function detach() of PrivacyEngine.
self.optimizer
That means it leads to AttributeError when you call privacyengine.detach().
privacyengine.detach()
So we cannot run the example file CIFAR_TIMM_2phase.py properly.
Fixed. Added one line at L310 https://github.com/awslabs/fast-differential-privacy/blob/main/fastDP/privacy_engine.py
The term
self.optimizer
only appears in the function detach() of PrivacyEngine.That means it leads to AttributeError when you call
privacyengine.detach()
.So we cannot run the example file CIFAR_TIMM_2phase.py properly.