[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# Module: tf.test\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/test) |\n\nTesting.\n\nSee the [Testing](https://tensorflow.org/api_docs/python/tf/test) guide.\n| **Note:** `tf.compat.v1.test.mock` is an alias to the python `mock` or `unittest.mock` depending on the python version.\n\nClasses\n-------\n\n[`class Benchmark`](../tf/test/Benchmark): Abstract class that provides helpers for TensorFlow benchmarks.\n\n[`class TestCase`](../tf/test/TestCase): Base class for tests that need to test TensorFlow.\n\nFunctions\n---------\n\n[`assert_equal_graph_def(...)`](../tf/test/assert_equal_graph_def): Asserts that two `GraphDef`s are (mostly) the same.\n\n[`benchmark_config(...)`](../tf/test/benchmark_config): Returns a tf.compat.v1.ConfigProto for disabling the dependency optimizer.\n\n[`compute_gradient(...)`](../tf/test/compute_gradient): Computes the theoretical and numeric Jacobian of `f`.\n\n[`create_local_cluster(...)`](../tf/test/create_local_cluster): Create and start local servers and return the associated `Server` objects.\n\n[`gpu_device_name(...)`](../tf/test/gpu_device_name): Returns the name of a GPU device if available or the empty string.\n\n[`is_built_with_cuda(...)`](../tf/test/is_built_with_cuda): Returns whether TensorFlow was built with CUDA (GPU) support.\n\n[`is_built_with_gpu_support(...)`](../tf/test/is_built_with_gpu_support): Returns whether TensorFlow was built with GPU (i.e. CUDA or ROCm) support.\n\n[`is_built_with_rocm(...)`](../tf/test/is_built_with_rocm): Returns whether TensorFlow was built with ROCm (GPU) support.\n\n[`is_gpu_available(...)`](../tf/test/is_gpu_available): Returns whether TensorFlow can access a GPU.\n\n[`main(...)`](../tf/test/main): Runs all unit tests."]]