Commit graph

41 commits

Author SHA1 Message Date
Michael Reneer
0eea97f220 Update to the latest version of tensorflow-probablity.
PiperOrigin-RevId: 572283525
2023-10-10 09:59:01 -07:00
Michael Reneer
97aaf302eb Update the version of some dependencies in tensorflow_privacy.
* `attrs` to `>=21.4`.
* `dp-accounting` to `>=0.4.3`.

PiperOrigin-RevId: 566758983
2023-09-19 15:22:40 -07:00
A. Unique TensorFlower
bcc0d4927e Implement and test a registry function for tfm.nlp.layers.OnDeviceEmbedding.
This CL also moves the common embedding `sqr_norm_fn` logic between
`tf.keras.layers.Embedding` and `tfm.nlp.layers.OnDeviceEmbedding` into a
new registry function utility file.

PiperOrigin-RevId: 564481407
2023-09-11 13:18:08 -07:00
Michael Reneer
5b21aad36e Update the scipy dependency to 1.9.
PiperOrigin-RevId: 543452894
2023-06-26 08:59:44 -07:00
Steve Chien
60d237be83 Update tensorflow-probability version to 0.20.0
PiperOrigin-RevId: 533550592
2023-05-19 14:22:24 -07:00
Galen Andrew
9710a4acc7 Bump version and update dependenciesfor pypi release.
PiperOrigin-RevId: 527377853
2023-04-26 14:35:24 -07:00
Steve Chien
f99a74c7a4 Fix dependencies required by privacy_tests.
Update `distutils` to `packaging`.

PiperOrigin-RevId: 496713867
2022-12-20 11:49:28 -08:00
Michael Reneer
feddd28a63 Pin tensorflow-probability to a specific version.
This matches the documentation for specifying version for this project. Additionally, recent version of `tensorflow-probability` are releasing breaking changes and the existing version specifier allows these to breaking changes to be unintentionally pulled in.

PiperOrigin-RevId: 476443999
2022-09-23 13:04:47 -07:00
Steve Chien
ed16033a92 Update pinned commit of dp-accounting library, update dependency versions, and increase version to 0.8.6.
PiperOrigin-RevId: 470334560
2022-08-26 14:30:16 -07:00
Galen Andrew
7fe491f7a4 Update the conventions used to specify the version of a Python dependency.
* For packages that have a stable release, we use a version that is compatible with that release (e.g. `~=x.y`).
* For packages that do not have a stable release, we use a version that matches a release that has been tested (e.g. `==x.y.z`).

Additionally, added documentation to the requirements.txt.

PiperOrigin-RevId: 468720651
2022-08-19 09:38:19 -07:00
Michael Reneer
052f9a3128 Update the version of numpy to 1.23.2.
* Updated the numpy version.
* Synced the pandas version.

In Python 3.10, if you invoke `pip install pandas~=1.1.4 numpy~=1.21.4` and then `import pandas` you get the following error:

```
>>> import pandas
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/venv/lib/python3.10/site-packages/pandas/__init__.py", line 30, in <module>
    from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
  File "/tmp/venv/lib/python3.10/site-packages/pandas/_libs/__init__.py", line 13, in <module>
    from pandas._libs.interval import Interval
  File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
```

I believe that this is the cause of the issue https://github.com/scikit-learn-contrib/hdbscan/issues/457#issuecomment-773671043

PiperOrigin-RevId: 467952859
2022-08-16 10:02:07 -07:00
Galen Andrew
5a9866726d Change requirements for tensorflow-probability and pandas.
PiperOrigin-RevId: 467220343
2022-08-12 08:58:14 -07:00
Steve Chien
38fe4aa984 Changes to prepare for release of v0.8.1.
Update WORKSPACE, setup.py, and requirements.txt to latest dp-accounting library release.

Update scipy version in setup.py.

Update version to 0.8.1.

PiperOrigin-RevId: 461944491
2022-07-19 12:22:07 -07:00
Michael Reneer
64c6b5ea25 Revert scipy dependency.
PiperOrigin-RevId: 460957101
2022-07-14 07:45:03 -07:00
Michael Reneer
27c07fa7b8 Update the TFP requirements.
PiperOrigin-RevId: 459806353
2022-07-08 12:04:04 -07:00
Steve Chien
24f80e8c76 Increase scipy version to 1.7.1.
PiperOrigin-RevId: 459371512
2022-07-06 16:27:01 -07:00
Markus Kunesch
9383743252 Update attrs dependency in requirements.txt to match setup.py.
PiperOrigin-RevId: 456986050
2022-06-24 04:59:18 -07:00
Michael Reneer
2d692bbf73 Update the direct scipy dependency to ~=1.5.0.
PiperOrigin-RevId: 429122811
2022-02-16 23:27:57 +00:00
Michael Reneer
8544af2500 Update the Python dependency for sklearn package.
PiperOrigin-RevId: 428896276
2022-02-16 23:27:43 +00:00
Michael Reneer
c8a49e1039 Update the direct TensorFlow dependency to ~=2.4.
This means that we would accept a hot fix and a new minor version , but not accept major version changes without releasing TFP.

PiperOrigin-RevId: 428811702
2022-02-16 23:27:21 +00:00
Michael Reneer
13a79f419f Update the direct tensorflow-probability dependency to ~=0.15.0.
This means that we would accept a hot fix, but not accept major or minor version changes without releasing TFP.

PiperOrigin-RevId: 428025242
2022-02-11 09:52:00 -08:00
Michael Reneer
8d20ae7c3b Update the direct tensorflow-datasets dependency to ~=4.5.2.
This means that we would accept a hot fix, but not accept major or minor version changes without releasing TFP.

PiperOrigin-RevId: 428023939
2022-02-11 09:46:04 -08:00
Michael Reneer
f393322593 Automated rollback of commit 823aacb315
PiperOrigin-RevId: 428022174
2022-02-11 09:37:34 -08:00
Michael Reneer
823aacb315 Delete the direct tensorflow-probability.
PiperOrigin-RevId: 428020273
2022-02-11 09:28:51 -08:00
Michael Reneer
9d59eabd40 Add direct sklearn dependency.
PiperOrigin-RevId: 427925353
2022-02-10 22:33:02 -08:00
Michael Reneer
592ed995f1 Update the direct scipy dependency to ~=1.2.1.
This means that we would accept a hot fix, but not accept major or minor version changes without releasing TFP.

PiperOrigin-RevId: 427916084
2022-02-10 21:19:53 -08:00
Michael Reneer
93bd134947 Add direct pandas dependency.
PiperOrigin-RevId: 427915591
2022-02-10 21:15:39 -08:00
Michael Reneer
28f8a5ff61 Add direct numpy dependency.
PiperOrigin-RevId: 427915040
2022-02-10 21:10:52 -08:00
Michael Reneer
1f229dbaf5 Update the direct attrs dependency to ~=21.2.0.
This means that we would accept a hot fix, but not accept major or minor version changes without releasing TFP.

PiperOrigin-RevId: 427914787
2022-02-10 21:08:42 -08:00
Michael Reneer
6aa31d95dd Add direct matplotlib dependency.
PiperOrigin-RevId: 427914629
2022-02-10 21:06:59 -08:00
Michael Reneer
d1e045ed88 Add direct absl-py dependency.
PiperOrigin-RevId: 427914169
2022-02-10 21:04:06 -08:00
Michael Reneer
75f88f8120 Sort TensorFlow Privacy requirements and required dependencies.
Sorting alphabetically this can help keep these lists maintained, in sync, and current.

PiperOrigin-RevId: 424433354
2022-01-26 13:46:23 -08:00
Galen Andrew
f44dcb8760 Add tensorflow and tensorflow-datasets to setup/requirements.
PiperOrigin-RevId: 390171562
2021-08-11 10:54:46 -07:00
Galen Andrew
fbaa55cc43 Add dependency on tensorflow probability.
PiperOrigin-RevId: 389962756
2021-08-10 13:23:31 -07:00
Steve Chien
94f03d09f3 Add attrs to setup and requirements.
PiperOrigin-RevId: 382121530
2021-06-29 10:57:58 -07:00
Steve Chien
8d89ef0a4b Update version to 0.5.1, and add dependence on tensorflow-estimator.
PiperOrigin-RevId: 329822203
2020-09-02 17:31:32 -07:00
A. Unique TensorFlower
5238ccd77b Update prerequisite to TF 1.14 in requirements.txt.
PiperOrigin-RevId: 297006998
2020-02-24 17:15:16 -08:00
Keith Rush
a8a2d91795 Move TF privacy off contrib.
PiperOrigin-RevId: 289953826
2020-01-15 15:47:21 -08:00
Ilya Mironov
a94dc626b1 Specifying minimal TF version required (currently 1.13, due to dependency on the train module).
PiperOrigin-RevId: 248809713
2019-05-17 16:39:48 -07:00
A. Unique TensorFlower
29fac758af - Fixing dependencies in setup.py and requirements.txt.
PiperOrigin-RevId: 227742524
2019-01-04 15:58:19 -08:00
Steve Chien
0af76c7b3d Update to allow bazel on tensorflow_privacy to work out of the box.
PiperOrigin-RevId: 225605386
2018-12-18 15:41:26 -08:00