This project is mirrored from https://github.com/tensorflow/federated.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
- Jul 21, 2020
-
-
Zachary Garrett authored
PiperOrigin-RevId: 322178848
-
- Jun 24, 2020
-
-
Zachary Garrett authored
Update `build_federated_averaging_process` and `build_federated_sgd_process` to return the full metrics suite. After this change, users of `tff.learning.build_federated_averaging_process` (and the FedSGD version) will receives a named tuple of three groups of metrics: broadcast, train, and aggregation. - `train` are the same metrics that were previously returned. - `broadcast` and `aggregation` are metrics for the broadcast and aggregatin process respectively. For example, an aggregation process might report metrics about the client updates and the aggregated update (e.g. the global norms). Previously these methods only extracted the training metrics to retain historical behavior. This change updates the methods and callsites to return the full metrics set (including those from the broadcast and aggregation processes). PiperOrigin-RevId: 317888544
-
- Jun 06, 2020
-
-
Michael Reneer authored
* Regex search replace. * Removed unused imports. * Removed BUILD deps. PiperOrigin-RevId: 314969638
-
- May 28, 2020
-
-
Michael Reneer authored
PiperOrigin-RevId: 313410789
-
- May 09, 2020
-
-
Michael Reneer authored
Replace `import tensorflow.compat.v2 as tf` with `import tensorflow as tf` in the `learning` module. PiperOrigin-RevId: 310572253
-
- May 08, 2020
-
-
Michael Reneer authored
PiperOrigin-RevId: 310377468
-
- Feb 28, 2020
-
-
Keith Rush authored
Step 1 of 3. PiperOrigin-RevId: 297684545
-
- Feb 19, 2020
-
-
Zachary Garrett authored
- Removes `tff.learning.from_compiled_keras_model()` from API. - Removes unused `tff.learning._TrainableKerasModel`. - Removes usage of `tf.keras.Model.output_names` and `tf.keras.Model.loss_functions` in `tff.learning._KerasModel` to be compliant with upcoming Keras refactoring. As a side-effect of this change, TFF will no longer supported (though no known usages): 1. Specifying multiple loss functions or loss weights via dictionaries keyed by model output name. Instead, using ordered sequences of functions mapping to outputs is still possible. 2. Sublcassed `tf.keras.Model` instances cannot be used in TFF. PiperOrigin-RevId: 295824509
-
- Feb 14, 2020
-
-
Michael Reneer authored
* This is required for parameterized test to work because decorators are parsed before the main function is called, if there is tf code in the parameters it may be not obvious why things are failing. PiperOrigin-RevId: 294983486
-
- Dec 17, 2019
-
-
Zachary Garrett authored
PiperOrigin-RevId: 285801872
-
- Dec 12, 2019
-
-
A. Unique TensorFlower authored
PiperOrigin-RevId: 285116495
-
Zachary Garrett authored
de-duplication strategy in non-eager mode. TF, under certain circumstances, prepends `_#` numbers to variables with the same name. This appears to happen in non-eager mode and in some occasions with Keras. TFF previously used these names for the type signature, which would cause problems when the same model was created more than once in the same graph context. Instead, rely on the ordering of the sequence of variables contained in the model and use the unnamed structure for types. PiperOrigin-RevId: 285032395
-
- Nov 16, 2019
-
-
A. Unique TensorFlower authored
PiperOrigin-RevId: 280784907
-
Michael Reneer authored
PiperOrigin-RevId: 280767713
-
- Nov 08, 2019
-
-
Zachary Garrett authored
- Replace `dict` with `collections.OrderedDict` when used in `tf.data.Dataset` - Convert tests to eager mode. PiperOrigin-RevId: 279172544
-
- Aug 30, 2019
-
-
Michael Reneer authored
PiperOrigin-RevId: 266383040
-
- Aug 14, 2019
-
-
Emily Glanz authored
PiperOrigin-RevId: 263172828
-
- Jul 19, 2019
-
-
Zachary Garrett authored
PiperOrigin-RevId: 258830309
-
- Jun 04, 2019
-
-
Zachary Garrett authored
Change calls from `tensor.numpy()` to `self.evaluate(tensor)`, which is compatible in graph and eager mode. Additionally tighten up the assertions on nested structures in a few unittests. PiperOrigin-RevId: 251246960
-
- Jun 01, 2019
-
-
Zachary Garrett authored
PiperOrigin-RevId: 250977892
-
Keith Rush authored
python/learning. PiperOrigin-RevId: 250908176
-
- May 24, 2019
-
-
Zachary Garrett authored
PiperOrigin-RevId: 249666998
-
- Apr 19, 2019
-
-
Zachary Garrett authored
PiperOrigin-RevId: 244269098
-
- Apr 18, 2019
-
-
Zachary Garrett authored
- Annotate many tests to be wrapped in a graph. - Avoid comparison on the string representation of the Tensor. - Do not use self.session() provided by the testcase, rather construct a new tf.Session(). In eager mode, the returned object is not `tf.Session`, it is type `EagerSessionWarner` which fails tff.pytype_check(). - Normalize on tf.test.main() [for pure Tensorflow tests) or test.main() [for TFF + TF tests] - Use the forward compatible tf.compat.v1.enable_v2_behavior() method. PiperOrigin-RevId: 244033806
-
- Apr 04, 2019
-
-
Brendan McMahan authored
Support state in the function used to do the federated_broadcast. This could allow, e.g., for an adaptive quantization scheme to be used. Also removes some older type-based tests, since we now have execution tests, and the type-based tests are likely to be brittle (needing to be updated due to changes in distant files). PiperOrigin-RevId: 241843768
-
- Apr 03, 2019
-
-
Brendan McMahan authored
Allow stateful aggregation operators in model_delta_optimizer_processes like Federated Averaging. Allowing stateful aggregation functions to be applied to model deltas paves the way for using a differentially private average such as the GaussianAverageQuery of TensorFlow Privacy (where the state includes for example the Privacy Ledger). PiperOrigin-RevId: 241628028
-
- Apr 02, 2019
-
-
Zachary Garrett authored
- Remove variable creation in __init__, not needed - Add back @tf.contrib.eager.function() annotations and remove tf.control_dependencies - Reduce number of repeates in unittests so execution time is faster (2 reptitions is sufficient) - Replace EagerTensor.numpy() calls with tf.TestCase.evaluate() for extracting tensor values in unittests PiperOrigin-RevId: 241365351
-
- Mar 25, 2019
-
-
Michael Reneer authored
* Rename `func` to `fn` for variables. * Rename `func` to `function` for module name. PiperOrigin-RevId: 240143663
-
- Mar 13, 2019
-
-
Keith Rush authored
PiperOrigin-RevId: 238046002
-
- Mar 12, 2019
-
-
Keith Rush authored
PiperOrigin-RevId: 237892686
-
- Mar 07, 2019
-
-
krush authored
Breakage in colabs caused by shifting the API surface and thus being out of sync between pip package and head. Reverting changes to learning directory and ipynb, keeping them in core. PiperOrigin-RevId: 237058456
-
- Mar 05, 2019
-
-
krush authored
In particular, federated_zip will now simply promote the federation of a 1-tuple of federated values, returning a federated 1-tuple of values. WARNING: This CL is backwards-incompatible. Now an IterativeProcess built through `build_federated_optimizer_process` will always return a *tuple* of metrics as the second return value of its next method, as opposed to returning a tuple if there are 2 or more metrics specified and a scalar if there is only 1. PiperOrigin-RevId: 236763176
-
- Mar 02, 2019
-
-
zachgarrett authored
PiperOrigin-RevId: 236402517
-
- Jan 25, 2019
-
-
michaelreneer authored
* Moved test functions into one location. * Renamed test functions and module to be more concisely named. * Moved TF 2.0 setup from setup methods to main function. PiperOrigin-RevId: 230776467
-
- Jan 24, 2019
-
-
michaelreneer authored
PiperOrigin-RevId: 230591634
-
- Jan 04, 2019
-
-
Michael Reneer authored
* Added missing BUILD dependencies. * Added six python dependencies. * Fixed whitespace. PiperOrigin-RevId: 227725720
-
- Dec 28, 2018
-
-
Brendan McMahan authored
Updated FedAvg and FedSgd to ignore non-finite updates and to calculate a client_weight to use in the federated average of deltas. PiperOrigin-RevId: 227063793
-
Brendan McMahan authored
Renaming to clarify the relationship between trainable, non-trainable, and local variables. Also resolves the issue that 'model' and 'initial_model' were different types, which was surprising. In particular: * initial_model => initial_weights * model_delta => weights_delta * ModelVars => ModelWeights * enhanced_model.vars => enhanced_model.weights Also regenerates documentation. PiperOrigin-RevId: 227040535
-
- Dec 27, 2018
-
-
Brendan McMahan authored
Implements the client logic for federated_sgd, and adds a common interface for client optimizers that average model deltas (FedSgd and FedAvg). Common functionality for building federated optimizers moves to framework/optimizer_utils.py. PiperOrigin-RevId: 227026404
-