This project is mirrored from https://github.com/tensorflow/federated.
Pull mirroring failed .
Last successful update .
Last successful update .
- 24 Nov, 2021 3 commits
-
-
Zachary Charles authored
PiperOrigin-RevId: 411837027
-
Taylor Cramer authored
Previously, we relied on numpy to provide helpful error messages in the case where the provided value did not match the required dtype. However, this resulted in somewhat unfriendly error messages such as the following (in the case where an int64 tensor was expected but a tf.data.Dataset was provided): TypeError: Cannot cast scalar from dtype('O') to dtype('int64') according to the rule 'same_kind' The additional context provided by this error message (the value being serialized, the Python type of the value being serialized, and the desired TFF TensorType) should help users find and correct errors more easily. PiperOrigin-RevId: 411833481
-
Zachary Charles authored
PiperOrigin-RevId: 411828023
-
- 23 Nov, 2021 3 commits
-
-
Sean Augenstein authored
PiperOrigin-RevId: 411664233
-
Shanshan Wu authored
PiperOrigin-RevId: 411629757
-
Zachary Charles authored
PiperOrigin-RevId: 411610540
-
- 20 Nov, 2021 5 commits
-
-
Keith Rush authored
PiperOrigin-RevId: 411173120
-
Taylor Cramer authored
PiperOrigin-RevId: 411172320
-
Zachary Garrett authored
This is a method to create a `tff.learning.models.FunctionalModel` from a `tf.keras.Model`. PiperOrigin-RevId: 411169398
-
Taylor Cramer authored
The CachingExecutor formerly played a critical role in the TFF execution stack, as it prevented multiple execution of the myriad duplicate computations in TFF's ASTs. Nowadays, TFF no longer generates these types of duplicate computations, and it is no longer to cache at this level to ensure performance. Additionally, this type of caching plays poorly with nondeterministic computations. Prior to this CL, the CachingExecutor was already unused outside of tests. This should be a no-op for TFF customers. PiperOrigin-RevId: 411112532
-
Zheng Xu authored
PiperOrigin-RevId: 411090036
-
- 19 Nov, 2021 3 commits
-
-
Michael Reneer authored
This change should enable the MacOS presubmit to succeed. PiperOrigin-RevId: 410926931
-
Michael Reneer authored
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
-
Michael Reneer authored
PiperOrigin-RevId: 410894245
-
- 18 Nov, 2021 5 commits
-
-
Yu Xiao authored
PiperOrigin-RevId: 410631896
-
Zachary Charles authored
PiperOrigin-RevId: 410595976
-
Michael Reneer authored
PiperOrigin-RevId: 410587320
-
Zachary Charles authored
PiperOrigin-RevId: 410538549
-
Zachary Charles authored
PiperOrigin-RevId: 410538498
-
- 17 Nov, 2021 8 commits
-
-
Keith Rush authored
Now uses dtype.name to match known-rank case (used dtype previously), and adjusts from [None] to (shape=None). This will change the string representation e.g. of TensorType(tf.float32, shape=None) from: tf.float32[None] to float32(shape=None). For reference, a TensorType(tf.float32, shape=[None]) (IE, rank-1 tensor of unknown size) will remain represnted as: float32[?]. PiperOrigin-RevId: 410428097
-
Zachary Garrett authored
This copied from TF's .bazelrc. PiperOrigin-RevId: 410381396
-
Zachary Charles authored
PiperOrigin-RevId: 410361295
-
Zachary Charles authored
PiperOrigin-RevId: 410350199
-
Zachary Garrett authored
PiperOrigin-RevId: 410327209
-
Yu Xiao authored
PiperOrigin-RevId: 410312882
-
Yu Xiao authored
PiperOrigin-RevId: 410271764
-
Wennan Zhu authored
PiperOrigin-RevId: 410254008
-
- 13 Nov, 2021 3 commits
-
-
A. Unique TensorFlower authored
PiperOrigin-RevId: 409593450
-
Shanshan Wu authored
This will be used as the default metric aggregator for most iterative process/eval computation builders provided by TFF learning. PiperOrigin-RevId: 409444231
-
Jakub Konecny authored
- Moves a generic check to py_typecheck.py or as private module level helpers specific to concrete optimizers. - Corrects structural checks on weights and gradients, and adds them to public API. PiperOrigin-RevId: 409418948
-
- 12 Nov, 2021 2 commits
-
-
Jakub Konecny authored
PiperOrigin-RevId: 409407858
-
Zachary Garrett authored
PiperOrigin-RevId: 409155243
-
- 11 Nov, 2021 2 commits
-
-
Michael Reneer authored
* Added unit tests. * Removed sorting the key of the returned value when it is flattened. * Updated type annotations. PiperOrigin-RevId: 408970683
-
Taylor Cramer authored
PiperOrigin-RevId: 408917062
-
- 10 Nov, 2021 6 commits
-
-
Zachary Garrett authored
- 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
-
Zachary Garrett authored
PiperOrigin-RevId: 408518267
-
Rebecca Chen authored
PiperOrigin-RevId: 408462877
-
Michael Reneer authored
* 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
-
Michael Reneer authored
* Added `CSVFileReleaseManager`. * Added tests. * Updated datatypes for all tests in the `program` package. PiperOrigin-RevId: 408384664
-
Keith Rush authored
First of a stream of CLs with boilerplate work for sequence executor. PiperOrigin-RevId: 407896764
-