Returns a temporary directory for use during tests.
tf.compat.v1.test.get_temp_dir()
Migrate to TF2
This function is removed in TF2. Please use TestCase.get_temp_dir instead
in a test case.
Outside of a unit test, obtain a temporary directory through Python's
tempfile module.
Description
There is no need to delete the directory after the test.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.compat.v1.test.get_temp_dir\n\n\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.9.3/tensorflow/python/platform/test.py#L59-L75) |\n\nReturns a temporary directory for use during tests. \n\n tf.compat.v1.test.get_temp_dir()\n\n\u003cbr /\u003e\n\nMigrate to TF2\n--------------\n\n\u003cbr /\u003e\n\n| **Caution:** This API was designed for TensorFlow v1. Continue reading for details on how to migrate from this API to a native TensorFlow v2 equivalent. See the [TensorFlow v1 to TensorFlow v2 migration guide](https://www.tensorflow.org/guide/migrate) for instructions on how to migrate the rest of your code.\n\nThis function is removed in TF2. Please use [`TestCase.get_temp_dir`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/utils/test_utils/TestCase#get_temp_dir) instead\nin a test case.\nOutside of a unit test, obtain a temporary directory through Python's\n`tempfile` module.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nDescription\n-----------\n\nThere is no need to delete the directory after the test.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| The temporary directory. ||\n\n\u003cbr /\u003e"]]