tf_privacy.v1.make_optimizer_class
Stay organized with collections
Save and categorize content based on your preferences.
Given a subclass of tf.compat.v1.train.Optimizer
, returns a DP-SGD subclass of it.
tf_privacy.v1.make_optimizer_class(
cls
)
Returns |
A DP-SGD subclass of cls .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-16 UTC.
[null,null,["Last updated 2024-02-16 UTC."],[],[],null,["# tf_privacy.v1.make_optimizer_class\n\n\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/privacy/blob/v0.9.0/privacy/privacy/optimizers/dp_optimizer.py#L21-L267) |\n\nGiven a subclass of [`tf.compat.v1.train.Optimizer`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/train/Optimizer), returns a DP-SGD subclass of it. \n\n tf_privacy.v1.make_optimizer_class(\n cls\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `cls` | Class from which to derive a DP subclass. Should be a subclass of [`tf.compat.v1.train.Optimizer`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/train/Optimizer). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A DP-SGD subclass of `cls`. ||\n\n\u003cbr /\u003e"]]