[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-01 UTC."],[],[],null,["# Module: tf.compat.v1.test\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/compat/v1/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 StubOutForTesting`](../../../tf/compat/v1/test/StubOutForTesting): Support class for stubbing methods out for unit testing.\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/compat/v1/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/compat/v1/test/compute_gradient): Computes and returns the theoretical and numerical Jacobian. (deprecated)\n\n[`compute_gradient_error(...)`](../../../tf/compat/v1/test/compute_gradient_error): Computes the gradient error. (deprecated)\n\n[`create_local_cluster(...)`](../../../tf/test/create_local_cluster): Create and start local servers and return the associated `Server` objects.\n\n[`get_temp_dir(...)`](../../../tf/compat/v1/test/get_temp_dir): Returns a temporary directory for use during tests.\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.\n\n[`test_src_dir_path(...)`](../../../tf/compat/v1/test/test_src_dir_path): Creates an absolute test srcdir path given a relative path."]]