Python tensorflow.python.platform.googletest.GetTempDir() Examples
The following are 13
code examples of tensorflow.python.platform.googletest.GetTempDir().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
tensorflow.python.platform.googletest
, or try the search function
.
Example #1
Source File: test_util.py From lambda-packs with MIT License | 6 votes |
def get_temp_dir(self): """Returns a unique temporary directory for the test to use. If you call this method multiple times during in a test, it will return the same folder. However, across different runs the directories will be different. This will ensure that across different runs tests will not be able to pollute each others environment. If you need multiple unique directories within a single test, you should use tempfile.mkdtemp as follows: tempfile.mkdtemp(dir=self.get_temp_dir()): Returns: string, the path to the unique temporary directory created for this test. """ if not self._tempdir: self._tempdir = tempfile.mkdtemp(dir=googletest.GetTempDir()) return self._tempdir
Example #2
Source File: test_util.py From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License | 6 votes |
def get_temp_dir(self): """Returns a unique temporary directory for the test to use. If you call this method multiple times during in a test, it will return the same folder. However, across different runs the directories will be different. This will ensure that across different runs tests will not be able to pollute each others environment. If you need multiple unique directories within a single test, you should use tempfile.mkdtemp as follows: tempfile.mkdtemp(dir=self.get_temp_dir()): Returns: string, the path to the unique temporary directory created for this test. """ if not self._tempdir: self._tempdir = tempfile.mkdtemp(dir=googletest.GetTempDir()) return self._tempdir
Example #3
Source File: test.py From lambda-packs with MIT License | 5 votes |
def get_temp_dir(): """Returns a temporary directory for use during tests. There is no need to delete the directory after the test. Returns: The temporary directory. """ return _googletest.GetTempDir()
Example #4
Source File: test.py From auto-alt-text-lambda-api with MIT License | 5 votes |
def get_temp_dir(): """Returns a temporary directory for use during tests. There is no need to delete the directory after the test. Returns: The temporary directory. """ return _googletest.GetTempDir()
Example #5
Source File: test_util.py From auto-alt-text-lambda-api with MIT License | 5 votes |
def get_temp_dir(self): """Returns a unique temporary directory for the test to use. Across different test runs, this method will return a different folder. This will ensure that across different runs tests will not be able to pollute each others environment. Returns: string, the path to the unique temporary directory created for this test. """ if not self._tempdir: self._tempdir = tempfile.mkdtemp(dir=googletest.GetTempDir()) return self._tempdir
Example #6
Source File: test.py From deep_image_model with Apache License 2.0 | 5 votes |
def get_temp_dir(): """Returns a temporary directory for use during tests. There is no need to delete the directory after the test. Returns: The temporary directory. """ return _googletest.GetTempDir()
Example #7
Source File: test_util.py From deep_image_model with Apache License 2.0 | 5 votes |
def get_temp_dir(self): if not self._tempdir: self._tempdir = googletest.GetTempDir() return self._tempdir
Example #8
Source File: ctl_imagenet_test.py From Live-feed-object-device-identification-using-Tensorflow-and-OpenCV with Apache License 2.0 | 5 votes |
def get_temp_dir(self): if not self._tempdir: self._tempdir = mkdtemp(dir=googletest.GetTempDir()) return self._tempdir
Example #9
Source File: resnet_cifar_test.py From Live-feed-object-device-identification-using-Tensorflow-and-OpenCV with Apache License 2.0 | 5 votes |
def get_temp_dir(self): if not self._tempdir: self._tempdir = tempfile.mkdtemp(dir=googletest.GetTempDir()) return self._tempdir
Example #10
Source File: resnet_cifar_test.py From models with Apache License 2.0 | 5 votes |
def get_temp_dir(self): if not self._tempdir: self._tempdir = tempfile.mkdtemp(dir=googletest.GetTempDir()) return self._tempdir
Example #11
Source File: test.py From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License | 5 votes |
def get_temp_dir(): """Returns a temporary directory for use during tests. There is no need to delete the directory after the test. Returns: The temporary directory. """ return _googletest.GetTempDir()
Example #12
Source File: test.py From keras-lambda with MIT License | 5 votes |
def get_temp_dir(): """Returns a temporary directory for use during tests. There is no need to delete the directory after the test. Returns: The temporary directory. """ return _googletest.GetTempDir()
Example #13
Source File: test_util.py From keras-lambda with MIT License | 5 votes |
def get_temp_dir(self): """Returns a unique temporary directory for the test to use. Across different test runs, this method will return a different folder. This will ensure that across different runs tests will not be able to pollute each others environment. Returns: string, the path to the unique temporary directory created for this test. """ if not self._tempdir: self._tempdir = tempfile.mkdtemp(dir=googletest.GetTempDir()) return self._tempdir