This project is mirrored from https://github.com/tensorflow/federated. Pull mirroring failed .
Last successful update .
  1. 20 11月, 2021 4 次提交
  2. 19 11月, 2021 3 次提交
    • Michael Reneer's avatar
      Tag the CC tests related to the remote executor with `nomacos`. · a65256cf
      Michael Reneer 创作于
      This change should enable the MacOS presubmit to succeed.
      
      PiperOrigin-RevId: 410926931
      a65256cf
    • Michael Reneer's avatar
      Cleanup usage of various `flatten` functions. · dcbf78d0
      Michael Reneer 创作于
      In the tff.program library, there is usage of various `flatten` functions:
      
      * `tf.nest.flatten`
      * `tree.flatten`
      * `structure_utils.flatten`, which is a wrapper around `tree.flatten_with_path`
      
      This change does two things:
      
      1. Consolidates usage of various `flatten` functions to the `tree` package, `tree` is used over `tf.nest` because it has more functionality.
      2. Renames `structure_utils.flatten` to `structure_utils.flatten_with_name` to disambiguate this functionality.
      
      PiperOrigin-RevId: 410910920
      dcbf78d0
    • Michael Reneer's avatar
      Fix broken link. · 67425029
      Michael Reneer 创作于
      PiperOrigin-RevId: 410894245
      67425029
  3. 18 11月, 2021 5 次提交
  4. 17 11月, 2021 8 次提交
  5. 13 11月, 2021 3 次提交
  6. 12 11月, 2021 2 次提交
  7. 11 11月, 2021 2 次提交
  8. 10 11月, 2021 13 次提交
    • Zachary Garrett's avatar
      Small fixes. · ca3e1555
      Zachary Garrett 创作于
      - Remove unused pybind_protobuf wrappings for methods without protocol buffers.
      - Fix header only dep to include implementation.
      - Update bazelrc to avoid ubp compilation error.
      
      PiperOrigin-RevId: 408671302
      ca3e1555
    • Zachary Garrett's avatar
      Clean-up dependencies to scope to narrower targets. · e62a3be9
      Zachary Garrett 创作于
      PiperOrigin-RevId: 408518267
      e62a3be9
    • Rebecca Chen's avatar
      Silence some pytype errors. · 78179bdb
      Rebecca Chen 创作于
      PiperOrigin-RevId: 408462877
      78179bdb
    • Michael Reneer's avatar
      Add documentation describing how values are being released and program state is being saved. · 8c399fe0
      Michael Reneer 创作于
      * Added documentation about how value references are materialized.
      * Added documentation about how values and program state is flattened or unflattend.
      * Added documentation about the format of the released values and saved program state.
      
      PiperOrigin-RevId: 408459647
      8c399fe0
    • Michael Reneer's avatar
      Add `CSVFileReleaseManager` to the `program` package. · c8531e20
      Michael Reneer 创作于
      * Added `CSVFileReleaseManager`.
      * Added tests.
      * Updated datatypes for all tests in the `program` package.
      
      PiperOrigin-RevId: 408384664
      c8531e20
    • Keith Rush's avatar
      Adds sequence intrinsic mappings from URIs to enum class. · 10455d66
      Keith Rush 创作于
      First of a stream of CLs with boilerplate work for sequence executor.
      
      PiperOrigin-RevId: 407896764
      10455d66
    • Taylor Cramer's avatar
      Parallelize child aggregation within the composing executor · b6d979b2
      Taylor Cramer 创作于
      Note that this does not parallelize materializing or merging of child results: those
      steps are still serialized.
      
      PiperOrigin-RevId: 407878128
      b6d979b2
    • Taylor Cramer's avatar
      Test dataset reduction computation in tensorflow_executor_test · 37ee8298
      Taylor Cramer 创作于
      As an aside, this CL adds a new `main` function for tests running in OSS.
      This was necessary in order to use absl flags in OSS C++ tests because OSS
      gtest_main intercepts argc and argv but does not parse absl flags. For
      details, see https://github.com/google/googletest/issues/3646.
      
      PiperOrigin-RevId: 407875061
      37ee8298
    • Jakub Konecny's avatar
      Implements Adam optimizer. · ab058572
      Jakub Konecny 创作于
      PiperOrigin-RevId: 407853543
      ab058572
    • Taylor Cramer's avatar
      Provide a helpful error if `ExecutorValue` types aren't copy-constructible · 156d6588
      Taylor Cramer 创作于
      Previously, failure to make `ExecutorValue` instances copy-constructible would result in confusing template instantiation errors. This `static_assert` makes the
      requirement explicit and provides the user with a clear, actionable suggestion.
      
      Example error:
      
      ```
      ERROR: third_party/tensorflow_federated/cc/core/impl/executors/executor.h:230:3 static_assert failed due to requirement 'std::is_copy_constructible<std::unique_ptr<int, std::default_delete<int>>>::value' "`ExecutorValue`s (the type parameter passed to `ExecutorBase`) must be copy-constructible. Consider wrapping with `std::shared_ptr`, `std::shared_future`, or other similar container like: `class MyExecutor: public ExecutorBase<std::shared_ptr<MyExecutorValue>>`"
        static_assert(std::is_copy_constructible<ExecutorValue>::value,
        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      third_party/tensorflow_federated/cc/core/impl/executors/executor.h:356:26 in instantiation of template class 'tensorflow_federated::ExecutorBase<std::unique_ptr<int>>' requested here
      class MyExecutor: public ExecutorBase<std::unique_ptr<int>> {
                               ^
      ```
      PiperOrigin-RevId: 407853500
      156d6588
    • Jakub Konecny's avatar
      Implements RMSprop optimizer. · 3bc94d77
      Jakub Konecny 创作于
      PiperOrigin-RevId: 407830629
      3bc94d77
    • Michael Reneer's avatar
      Add static cast for `client_results.size()` so it's not ambiguous. · 0d4b9008
      Michael Reneer 创作于
      Without this, some compilers complain with:
      ```
      In file included from tensorflow_federated/cc/core/impl/executors/composing_executor_test.cc:31:
      ./tensorflow_federated/cc/core/impl/executors/value_test_utils.h:83:22: error: call to constructor of 'tensorflow::Tensor' is ambiguous
        tensorflow::Tensor tensor(tensor_constructor_args...);
                           ^      ~~~~~~~~~~~~~~~~~~~~~~~
      tensorflow_federated/cc/core/impl/executors/composing_executor_test.cc:510:26: note: in instantiation of function template specialization 'tensorflow_federated::testing::TensorV<unsigned long>' requested here
            v0::Value result = TensorV(client_results.size());
                               ^
      ```
      
      PiperOrigin-RevId: 407829908
      0d4b9008
    • A. Unique TensorFlower's avatar
      Remove no-op flag from rc file. · c865da66
      A. Unique TensorFlower 创作于
      PiperOrigin-RevId: 407826333
      c865da66