Module: tff.test
Stay organized with collections
Save and categorize content based on your preferences.
Libraries for testing TensorFlow Federated.
Functions
assert_contains_secure_aggregation(...)
: Asserts that comp
contains at least one secure aggregation call.
assert_contains_unsecure_aggregation(...)
: Asserts that comp
contains at least one unsecure aggregation call.
assert_not_contains_secure_aggregation(...)
: Asserts that comp
contains no secure aggregation calls.
assert_not_contains_unsecure_aggregation(...)
: Asserts that comp
contains no unsecure aggregation calls.
assert_type_assignable_from(...)
: Asserts that target_type
is assignable from source_type
.
assert_types_equivalent(...)
: Asserts that the types are equivalent.
assert_types_identical(...)
: Asserts that the types are identical.
create_runtime_error_context(...)
: Creates a context that will raise an error when computations are invoked.
set_no_default_context(...)
: Places a RuntimeErrorContext
at the bottom of the stack.
with_context(...)
: Returns a decorator for running a test in a context.
with_contexts(...)
: Returns a decorator for parameterizing a test by a context.
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,["# Module: tff.test\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\nLibraries for testing TensorFlow Federated.\n\nFunctions\n---------\n\n[`assert_contains_secure_aggregation(...)`](../tff/test/assert_contains_secure_aggregation): Asserts that `comp` contains at least one secure aggregation call.\n\n[`assert_contains_unsecure_aggregation(...)`](../tff/test/assert_contains_unsecure_aggregation): Asserts that `comp` contains at least one unsecure aggregation call.\n\n[`assert_not_contains_secure_aggregation(...)`](../tff/test/assert_not_contains_secure_aggregation): Asserts that `comp` contains no secure aggregation calls.\n\n[`assert_not_contains_unsecure_aggregation(...)`](../tff/test/assert_not_contains_unsecure_aggregation): Asserts that `comp` contains no unsecure aggregation calls.\n\n[`assert_type_assignable_from(...)`](../tff/test/assert_type_assignable_from): Asserts that `target_type` is assignable from `source_type`.\n\n[`assert_types_equivalent(...)`](../tff/test/assert_types_equivalent): Asserts that the types are equivalent.\n\n[`assert_types_identical(...)`](../tff/test/assert_types_identical): Asserts that the types are identical.\n\n[`create_runtime_error_context(...)`](../tff/test/create_runtime_error_context): Creates a context that will raise an error when computations are invoked.\n\n[`set_no_default_context(...)`](../tff/test/set_no_default_context): Places a `RuntimeErrorContext` at the bottom of the stack.\n\n[`with_context(...)`](../tff/test/with_context): Returns a decorator for running a test in a context.\n\n[`with_contexts(...)`](../tff/test/with_contexts): Returns a decorator for parameterizing a test by a context."]]