tff.test.assert_not_contains_unsecure_aggregation
Stay organized with collections
Save and categorize content based on your preferences.
Asserts that comp
contains no unsecure aggregation calls.
tff.test.assert_not_contains_unsecure_aggregation(
comp
)
Raises |
AssertionError if comp contains an unsecure aggregation call.
ValueError if comp contains a call whose target function cannot be
identified. This may result from calls to references or other
indirect structures.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-20 UTC.
[null,null,["Last updated 2024-09-20 UTC."],[],[],null,["# tff.test.assert_not_contains_unsecure_aggregation\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |\n\nAsserts that `comp` contains no unsecure aggregation calls. \n\n tff.test.assert_not_contains_unsecure_aggregation(\n comp\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `comp` | A [`tff.Computation`](../../tff/Computation), often a function annotated with [`tff.federated_computation`](../../tff/federated_computation) or [`tff.tensorflow.computation`](../../tff/tensorflow/computation). Note that polymorphic functions (those without the types of their arguments explicitly specified) will not yet be [`tff.Computation`](../../tff/Computation)s. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|---|---|\n| AssertionError if `comp` contains an unsecure aggregation call. ValueError if `comp` contains a call whose target function cannot be identified. This may result from calls to references or other indirect structures. ||\n\n\u003cbr /\u003e"]]