Skip to content
Snippets Groups Projects
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 .
  1. Sep 21, 2019
  2. Sep 12, 2019
    • Keith Rush's avatar
      Adds iter_elements module function to anonymous_tuple. · a82c3187
      Keith Rush authored
      Generates the elements of the tuple in sequence instead of pulling the entire thing into a list.
      
      Also replaces any instances of immediate iteration over the elements with iterating over the generator instead.
      
      PiperOrigin-RevId: 268550273
      a82c3187
  3. Sep 07, 2019
    • Keith Rush's avatar
      Moves hash function and equality of anonymous tuple to use newly added name_array. · f2ac433c
      Keith Rush authored
      Previously, equality was checked by equality of name_to_index dict (IE equality as dicts, as unordered sets of key-value pairs), while hash was generated by iterating over the dict (where order matters).
      
      Since dicts are unordered, it is an implementation detail of the underlying Python whether equality as AnonymousTuples then implies equality of hashes. This is not quite in line with the python spec of hash, which states that objects which compare as equal *must* return the same hash value.
      
      PiperOrigin-RevId: 267644204
      f2ac433c
  4. Sep 06, 2019
  5. Aug 29, 2019
  6. Aug 23, 2019
  7. Aug 20, 2019
  8. Aug 16, 2019
  9. Aug 02, 2019
  10. May 24, 2019
  11. May 16, 2019
  12. May 15, 2019
  13. May 14, 2019
  14. May 13, 2019
  15. May 11, 2019
  16. May 10, 2019
  17. May 02, 2019
  18. Apr 19, 2019
  19. Apr 16, 2019
  20. Apr 10, 2019
  21. Feb 16, 2019
    • mcmahan's avatar
      Preserve the order of variable lists and provide ModelWeights.keras_weights,... · 39088947
      mcmahan authored
      Preserve the order of variable lists and provide ModelWeights.keras_weights, and add methods to convert (keras model weights) <--> (tff model state).
      
      This lets us get back from a ModelWeights structure to a list that can be used with keras_model.set_weights().
      
      Fixes a bug where anonymous_tuple.flatten was used together with nest.pack_sequence_as, which happened to work before but didn't after the other changes in this CL. Consolidates all the TFF-specific code in optimizer_utils.py to a single function.
      
      Raise a ValueError if someone tries to construct an AnonymousTuple with duplicated names, and also check to this when construct OrderedDicts of variables.
      
      PiperOrigin-RevId: 234265469
      39088947
    • ostrowski's avatar
      Implements federated evaluation (also adds recursive conversion to anonymous... · 8d0f3182
      ostrowski authored
      Implements federated evaluation (also adds recursive conversion to anonymous tuples from containers, and picks up a few changes to api_docs on rebuild).
      
      PiperOrigin-RevId: 234161245
      8d0f3182
  22. Feb 08, 2019
  23. Feb 02, 2019
  24. Jan 29, 2019
  25. Jan 24, 2019
  26. Jan 23, 2019
  27. Jan 18, 2019
  28. Jan 16, 2019
  29. Dec 21, 2018
  30. Dec 18, 2018
    • Michael Reneer's avatar
      Update to use python3 by default. · aa68f85a
      Michael Reneer authored
      * Run modernize.
      * Updated the py_test to set default_python_version to PY3.
      * Updated the Dockerfile to use python3 by default.
      * Added imports to `six.moves` functions.
      
      PiperOrigin-RevId: 225912518
      aa68f85a
  31. Dec 12, 2018
  32. Dec 08, 2018
  33. Dec 07, 2018
  34. Dec 06, 2018
    • Michael Reneer's avatar
      Fix lint warnings and use absltest. · 3468499d
      Michael Reneer authored
      * Fixed incorrectly formatted docstrings.
      * Fixed use of generic asserts.
      * Changed to use absltest to be able to use more specific assert variants.
      
      PiperOrigin-RevId: 224189879
      3468499d
  35. Dec 05, 2018
    • Zachary Garrett's avatar
      Add support and testing for python2 and python3. · d2d3eaa8
      Zachary Garrett authored
      Make source be python 2 and 3 compattble:
        - xrange -> six.moves.range
        - __builtin__ -> six.moves.builtins
        - dict.iteritems() -> six.iteritems(dict)
        - Iterate over dict.values() views to avoid indexing
        - str -> six.b(str) to wrap strings in bytes
        - raise ValueError -> raise AttributeError when accessing a property that does not exist on the object
        - hoist variable declaration out of try/catch block
      
      PiperOrigin-RevId: 224019632
      d2d3eaa8
  36. Nov 10, 2018
Loading