This project is mirrored from https://github.com/tensorflow/federated. Pull mirroring failed .
Last successful update .
  1. 13 Nov, 2020 1 commit
  2. 08 Oct, 2020 1 commit
  3. 02 Oct, 2020 1 commit
    • Michael Reneer's avatar
      Rename `test` module. · 0b7e8a0f
      Michael Reneer authored
      This module is being excluded from the Python package based on its name, but it should not be. By default `setuptools` is configured so that file ending in "test.py" are tests and tests are excluded from the Python package.
      
      PiperOrigin-RevId: 334625499
      0b7e8a0f
  4. 29 Sep, 2020 1 commit
  5. 04 Sep, 2020 2 commits
  6. 25 Aug, 2020 1 commit
    • Taylor Cramer's avatar
      Rework decorated function argument handling · 9a2f7991
      Taylor Cramer authored
      This change's primary function is to add the names of
      decorated function arguments to the type signatures of
      TFF computations. This is designed to increase debugability,
      improve error messages, and allow users to pass arguments by
      name (as is typically allowed in vanilla python).
      
      PiperOrigin-RevId: 327897439
      9a2f7991
  7. 18 Aug, 2020 1 commit
  8. 04 Aug, 2020 1 commit
    • Taylor Cramer's avatar
      Replace default_executor with set_local_execution_context · 2a93be88
      Taylor Cramer authored
      Previously, the default context included a local execution
      stack, but did not include the compiler built to optimize
      for this native backend. This meant that users of TFF were
      not getting the advantages of compilation-for-native unless
      they explicitly set `set_local_execution_context`.
      
      Additionally, this change moves the integration tests inside
      `core` to use this same local execution stack, including the
      native compiler. These tests are designed to exercise the
      local execution stack, and shouldn't be testing against a
      different environment than the one users experience.
      
      PiperOrigin-RevId: 324705661
      2a93be88
  9. 22 Jul, 2020 1 commit
    • Taylor Cramer's avatar
      Rename `AnonymousTuple` to `Struct`. · d12deec7
      Taylor Cramer authored
      This change moves and renames `AnonymousTuple` and its `Type`-based
      brethren. It re-exports the new types under the old names to allow
      for a more gradual transition to the new API.
      
      PiperOrigin-RevId: 322477504
      d12deec7
  10. 21 Jul, 2020 1 commit
  11. 18 Jul, 2020 1 commit
    • Taylor Cramer's avatar
      Propagate container_type and include it in type equality checks. · 4ed574ab
      Taylor Cramer authored
      Previously, NamedTupleTypeWithPyContainerType was often lost and turned into
      a NamedTupleType without the container. This resulted in users being given
      AnonymousTuples when a more specific container should have been returned.
      
      This change fixes a large number of sites where container types were lost, and
      adjusts usage sites as appropriate, including the removal of `from_tff_result`
      functions.
      
      This change also makes the `__eq__` function for
      `NamedTupleTypeWithPyContainerType` require equivalent container types, rather
      than just equivalent field structure. Call sites that wished to compare only
      field structure are adjusted to use `Type.{is, check}_equivalent_to`.
      
      PiperOrigin-RevId: 321883012
      4ed574ab
  12. 15 Jul, 2020 1 commit
    • 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
  13. 11 Jul, 2020 2 commits
  14. 09 Jul, 2020 1 commit
  15. 09 Jun, 2020 1 commit
  16. 06 Jun, 2020 1 commit
  17. 28 May, 2020 1 commit
  18. 16 May, 2020 1 commit
    • Michael Reneer's avatar
      Move `type_utils` conversion functions to the `types` package. · 06be556d
      Michael Reneer authored
      TF_DATASET_REPRESENTATION_TYPES
      infer_type
      type_to_tf_dtypes_and_shapes
      type_to_tf_tensor_specs
      type_to_tf_structure
      type_from_tensors
      convert_to_py_container -> type_to_py_container
      to_non_all_equal -> type_to_non_all_equal
      
      Note: The "type" prefix is retained here to make the public API a little clearer. (e.g. tff.framework.type_to_tf_dtypes_and_shapes)
      PiperOrigin-RevId: 311838556
      06be556d
  19. 12 May, 2020 1 commit
  20. 19 Mar, 2020 1 commit
  21. 10 Mar, 2020 1 commit
    • Scott Wegner's avatar
      Support dict-like syntax for extracting values from AnonymousTuple by key. · ef39a39e
      Scott Wegner authored
      This is a convenience for working with the output of a federated computation, which is generally returned as a nested AnonymousTuple structure. Now, individual values can be extracted from the structure using:
      
        result = my_federated_computation()
        pprint(result['foo'])
      
      This was previously possible using `getattr(result, 'foo')`; this change makes the existing functionality more discoverable.
      
      PiperOrigin-RevId: 299964819
      ef39a39e
  22. 27 Feb, 2020 1 commit
  23. 14 Feb, 2020 1 commit
  24. 30 Jan, 2020 1 commit
  25. 21 Dec, 2019 1 commit
  26. 06 Dec, 2019 1 commit
  27. 16 Nov, 2019 2 commits
  28. 17 Oct, 2019 1 commit
  29. 16 Oct, 2019 1 commit
  30. 10 Oct, 2019 1 commit
  31. 20 Sep, 2019 1 commit