Michael Reneer
8a6827b27c
Update to use TF 2.0 API in TensorFlow Privacy:
...
tf.logging -> Removed for absl
tf.assert_type -> tf.debugging.assert_type
tf.assert_less_equal -> tf.debugging.assert_less_equal
tf.global_norm -> tf.linalg.global_norm
PiperOrigin-RevId: 425730344
2022-02-01 15:29:09 -08:00
Michael Reneer
a749ce4e30
Remove TensorFlow Privacy __future__
imports.
...
Note: Exclude changes to the research directory.
PiperOrigin-RevId: 424650953
2022-01-27 10:37:22 -08:00
Galen Andrew
d9236d5619
Remove PrivacyLedger which will soon be replaced by DpEvent and PrivacyAccountant.
...
PiperOrigin-RevId: 393147667
2021-08-26 10:00:15 -07:00
A. Unique TensorFlower
191f2461c5
[tfds] Fix tfds.as_numpy which now returns a reusable iterable.
...
`next(ds)` -> `next(iter(ds))`
Context: https://github.com/tensorflow/datasets/issues/2270
PiperOrigin-RevId: 324951455
2020-08-04 22:06:20 -07:00
Yanhua Sun
856eda3aa1
Explicitly replace "import tensorflow" with "tensorflow.compat.v1"
...
PiperOrigin-RevId: 290355582
2020-02-07 10:18:46 -08:00
Steve Chien
1ce8cd4032
Restructure TF Privacy to be more in line with other repos in the TF ecosystem.
...
PiperOrigin-RevId: 274674077
2019-10-14 15:29:52 -07:00
A. Unique TensorFlower
602b1c3f37
Update tfds.load()
callers to specify shuffle_files=True
when necessary.
...
PiperOrigin-RevId: 264803647
2019-08-22 04:02:08 -07:00
Galen Andrew
d5dcfec745
Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use.
...
set_denominator was added so that the batch size doesn't need to be specified before constructing the optimizer, but it breaks the DPQuery abstraction. Now the optimizer uses a GaussianSumQuery instead of GaussianAverageQuery, and normalization by batch size is done inside the optimizer.
Also instead of creating all DPQueries with a PrivacyLedger and then wrapping with QueryWithLedger, it is now sufficient to create the queries with no ledger and QueryWithLedger will construct the ledger and pass it to all inner queries.
PiperOrigin-RevId: 251462353
2019-06-04 10:14:32 -07:00
Ilya Mironov
9cece21d92
Clean-up pass to eliminate warnings: replacing deprecated endpoints with recommended versions and annotating test sizes.
...
PiperOrigin-RevId: 246901723
2019-05-06 14:50:23 -07:00
Tim Garnsey
aeb6a94b59
added a ledger during optimizer instantiation to the language model tutorial
2019-04-17 12:52:08 +10:00
Nicolas Papernot
fdd110b7df
add a Penn TreeBank example
...
PiperOrigin-RevId: 237160380
2019-03-06 18:27:37 -08:00