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. Jul 17, 2020
  2. May 28, 2020
  3. May 09, 2020
  4. May 08, 2020
  5. Mar 19, 2020
    • Michael Reneer's avatar
      Fix typos. · b319d457
      Michael Reneer authored
      * Replaced `# Unsued` with `# Unused.`
      * Replaced `# unused` with `# Unused.`
      
      PiperOrigin-RevId: 301667453
      b319d457
  6. Mar 17, 2020
    • Zachary Garrett's avatar
      Remove deprecatred `TrainableModel`. · f6cec068
      Zachary Garrett authored
      This has been replaced with passing a `tff.learning.Model` and two optimizers (client and server)
      the federated optimization processes.
      
      PiperOrigin-RevId: 301266327
      f6cec068
  7. Feb 28, 2020
  8. Jan 03, 2020
  9. Dec 31, 2019
  10. Dec 17, 2019
  11. Dec 12, 2019
    • A. Unique TensorFlower's avatar
      Automated rollback of commit 13c5a443 · 0fb8880a
      A. Unique TensorFlower authored
      PiperOrigin-RevId: 285116495
      0fb8880a
    • Zachary Garrett's avatar
      Don't rely on variable names for type signatures, as TF may invoke some · 13c5a443
      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
      13c5a443
  12. Nov 16, 2019
  13. Nov 14, 2019
    • Zachary Garrett's avatar
      Correctly compute the number of examples when Keras is using multiple inputs. · d5ba7547
      Zachary Garrett authored
      Previously tried calling shape on a nested structure of tensors, which will not
      work. Instead flatten the structre and call shape on the first tensor (all
      input tensors are expected to have the same first dimension size, the batch
      size).
      
      Updated example models and tests, ensured the test failed under the current
      code and passes after this change.
      
      Fixes #785
      
      PiperOrigin-RevId: 280221692
      d5ba7547
  14. Nov 13, 2019
    • Zachary Garrett's avatar
      Add an example model using Keras + feature columns and a lookup table. · f0d87dbd
      Zachary Garrett authored
      The unittest adding the example to FedAvg tests currently does not run because
      TFF doesn't have its hands on the lookup table initializer (see
      #783). This test is disabled by
      default (since it won't pass) and any fix should enable and ensure it passes.
      
      Switch to the local executor for tests to make them faster, and decrease the
      size to 'medium' to reflect this improvement.
      
      PiperOrigin-RevId: 280083440
      f0d87dbd
  15. Oct 11, 2019
  16. Aug 21, 2019
  17. Aug 14, 2019
  18. Jun 19, 2019
  19. Jun 14, 2019
  20. May 30, 2019
  21. May 16, 2019
  22. Apr 30, 2019
    • Zachary Garrett's avatar
      Update TensorFlow code to rely on tf.function. · f149d833
      Zachary Garrett authored
      Now that TFF has moved to a more recent version of TensorFlow, this no longer needs to be disabled.
      
      - Remove autograph=False from tf.function decorators
      - Consistently use tf.function everywhere
      - Replace tf.cond() and tf.control_dependencies() with Python control flow
      
      PiperOrigin-RevId: 245817277
      f149d833
  23. Apr 19, 2019
  24. Mar 30, 2019
    • Zachary Garrett's avatar
      Add a model for assign tff.learning.Model weights back to a tf.keras.Model. · 46f9c697
      Zachary Garrett authored
      This is a workaround for issue #258, which uncovered that tf.keras.Model.weights and tf.keras.Model.get_weights() are not ordered the same.
      
      - Add a toy example model that uses batch norm (includes non-trainable variables), which will fail without this change.
      - Move client optimizer variables to local_variables, this includes variables such as iteration number.
      
      PiperOrigin-RevId: 241075678
      46f9c697
  25. Mar 22, 2019
  26. Feb 12, 2019
  27. Feb 09, 2019
  28. Feb 08, 2019
  29. Feb 07, 2019
  30. Jan 29, 2019
    • zachgarrett's avatar
      Extend tff.learning to expose an `input_spec` property of tff.learning.Model. · 8de9f596
      zachgarrett authored
      - Add pydoc to BatchOutput
      - Change tff.learning.Model to expose a new `input_spec`
      - Extend model_utils keras methods to require a dummy_batch argument (necessary for subclassed tf.keras.models.Model)
      - Update `build_model_delta_optimizer_process` to use tff.learning.Model.input_spec, isntead of hard coded type
      
      PiperOrigin-RevId: 231294914
      8de9f596
  31. Jan 26, 2019
    • zachgarrett's avatar
      Flesh out more of the federated_averaging implementation. · 521fcc11
      zachgarrett authored
      - Add the "federated orchestration" logic to tie together local client training with global averaging and global model updates.
      - Rename build_model_delta_optimizer_tff -> build_model_delta_optimizer_process
      - Add a new test utility class that matches any type.
      
      PiperOrigin-RevId: 230965510
      521fcc11
  32. Jan 24, 2019
  33. Jan 08, 2019
  34. Jan 04, 2019
    • Michael Reneer's avatar
      Cleanup and modernize. · 25181a67
      Michael Reneer authored
      * Added missing BUILD dependencies.
      * Added six python dependencies.
      * Fixed whitespace.
      
      PiperOrigin-RevId: 227725720
      25181a67
  35. Dec 29, 2018
  36. Dec 27, 2018
Loading