Tags: tensorflow/privacy
Tags
Update the Python package scripts to use Python 3.10 explicitly. Failure: 1. From the build scripts: ``` + ./tools/build_pip_package.sh Python 3.8.10 ``` 2. But `tensorflow-probability` does not support Python 3.8, https://pypi.org/project/tensorflow-probability/ The fix is to update TFP build scripts to use Python 3.10 explicitly because it appears there are unsupported version of Python on the build machines. PiperOrigin-RevId: 572339377
The previous version uses `tf.nest.map_structure` to apply `add_noise… …` to a `tf.RaggedTensor`. This causes a bug when used in tensorflow federated because `tf.nest.map_structure` will also map `add_noise` to the tensor for shape information in `tf.RaggedTensor`. This causes failure when tff conducts automatic type conversion. Also use fixed random seed to avoid flaky timeouts and testing failures. PiperOrigin-RevId: 384573740
PreviousNext