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
    • Shanshan Wu's avatar
      A problem shows up with using subclasses of `tff.learning.Model`: after... · c82f1bfa
      Shanshan Wu authored
      A problem shows up with using subclasses of `tff.learning.Model`: after wrapping the model as an EnhancedModel, one cannot access the methods that are specifically defined by the subclass model.
      
      This CL removes the EnhancedModel wrapper used when computing baseline metrics and training personalized models. This makes sure that users can access the full functionality of the model returned by `model_fn`.
      
      PiperOrigin-RevId: 321578480
      c82f1bfa
  2. Jul 16, 2020
  3. Jul 15, 2020
    • Michael Reneer's avatar
      Remove disallowed terms from TFF. · f505b346
      Michael Reneer authored
      PiperOrigin-RevId: 321268189
      f505b346
    • Weikang Song's avatar
      Expose SizingExecutorFactory and SizeInfo. · da842fdf
      Weikang Song authored
      PiperOrigin-RevId: 321266409
      da842fdf
    • Keith Rush's avatar
      Renames remove_lambdas_and_blocks to remove_called_lambdas_and_blocks. · 0b53db27
      Keith Rush authored
      PiperOrigin-RevId: 321265603
      0b53db27
    • Michael Reneer's avatar
      Add a compiler function to the `ExecutionContext` object. · 187f78aa
      Michael Reneer authored
      This change adds a compiler function to the `ExecutionContext` object. Conceptually a `Context` can be thought of as an "environment" which owns compilation and owns execution for a given computation. Additionally, this change replaces `set_default_executor` with higher level functions in order to simplify how contexts are constructed.
      
      * Added compiler function to the `ExecutionContext`.
      * Deprecated `set_default_executor`.
      * Removed all usage of `set_default_executor` internally.
      * Added convenience high level functions that set an execution context:
        * tff.backends.native.set_local_execution_context
      * Updated `set_default_executor` call-sites to either use the convenience high level functions or to manually construct a context and use `set_default_context`.
      
      Note that we should consider creating the following convenience high level functions:
        * tff.backends.native.set_remote_execution_context
        * tff.backends.native.set_sizing_execution_context
        * tff.backends.iree.set_iree_execution_context
      
      PiperOrigin-RevId: 321263709
      187f78aa
    • Zachary Garrett's avatar
      Add pytype annotations to shared research training utilities. · 997350cd
      Zachary Garrett authored
      Semantic changes:
      -  Use the LR schedule with round 0 during the server intializiation.
         Previously this relied on the optimizer builder specifying a default for the
         learning rate, which was overriden in later rounds. Explicitly call with a
         "round 0" learning rate to ensure the documented type is adhered to. This
         can be seen in the type annotations for the `server_optimizer_fn` argument
         to `build_server_init_fn` and `build_fed_avg_process`.
      
      PiperOrigin-RevId: 321237803
      997350cd
    • Keith Rush's avatar
      Uses bytes of ndarray instead of string rep of flatten. · 6ca78bc5
      Keith Rush authored
      Taking string rep of flattened ndarray can cause non-equal ndarrays to hash to identical values.
      
      E.g., added test here failed previously--arrays that have identical values on the ends of their flattened reps, but differ in the middle, will result in the same key.
      
      PiperOrigin-RevId: 321234171
      6ca78bc5
    • Keith Rush's avatar
      Canonicalizes sequence of transformations as `transform_to_call_dominant`. · ac22eed2
      Keith Rush authored
      PiperOrigin-RevId: 321234129
      ac22eed2
    • Michael Reneer's avatar
      Cleanup PIP package tools and installation documentation. · 54425244
      Michael Reneer authored
      There are a few users to consider:
      
      1. A developer on TFF wants source at HEAD.
      2. A researcher using TFF wants pip package at release in 90% of scenarios and sometimes (ideally rarely) wants nightly, but never wants to build a pip package.
      3. A developer making a framework using TFF wants pip release and nightly, but never wants to build a pip package.
      4. A researcher upstreaming change to TFF basically has moved from #2 to #3.
      
      Fixes: #878
      PiperOrigin-RevId: 321226038
      54425244
    • Tomer Kaftan's avatar
      Explicitly raise a (clearer) error message when models end up in invalid... · c69d2960
      Tomer Kaftan authored
      Explicitly raise a (clearer) error message when models end up in invalid states due to interleaving graph and eager.
      
      In rare cases code may have run w/o crashing when in these invalid states, but it's safer to error with an explanation rather than risk silent failures/fragile behavior.
      
      PiperOrigin-RevId: 321192744
      c69d2960
    • Zachary Garrett's avatar
      Fix typos by replacing `TrainableModel` `Model`. · 4fd7f46f
      Zachary Garrett authored
      TrainableModel has been removed from TFF for a while.
      
      PiperOrigin-RevId: 321184501
      4fd7f46f
  4. Jul 11, 2020
  5. Jul 10, 2020
  6. Jul 09, 2020
  7. Jul 08, 2020
  8. Jul 07, 2020
    • Mehdi Amini's avatar
      Rename `xla_hlo` dialect to `mhlo` · 3b645a50
      Mehdi Amini authored
      This is part of the current refactoring of the HLO related dialect.
      `xla_hlo` will be reintroduced in a new form later.
      
      PiperOrigin-RevId: 319916753
      3b645a50
    • Shanshan Wu's avatar
      Remove client stats from canonical form. · 219717ac
      Shanshan Wu authored
      The type signature of `work` was <client_data, state> -> <client_updates, client_stats> where client_updates = <simple_agg, secure_agg>. After this CL, the type signature of `work` becomes <client_data, state> -> client_updates.
      
      * `canonical_form.py`: remove `client_outputs` from `work`; update doc.
      
      * `canonical_form_utils.py`: remove c8 from the canonical form, and change c7 to c6 and c6 to c5; remove `_create_next_with_fake_client_output` function.
      
      * Remove `client_outputs` from `test_utils.py`.
      
      PiperOrigin-RevId: 319873694
      219717ac
    • Zachary Charles's avatar
      Change kwarg calls to training_loop from `evaluate_fn` to `validation_fn`. · 850d046b
      Zachary Charles authored
      PiperOrigin-RevId: 319868133
      850d046b
  9. Jul 03, 2020
  10. Jul 02, 2020
  11. Jul 01, 2020
Loading