Python tensorflow.python.framework.test_util.IsGoogleCudaEnabled() Examples
The following are 6
code examples of tensorflow.python.framework.test_util.IsGoogleCudaEnabled().
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.framework.test_util
, or try the search function
.
Example #1
Source File: test.py From lambda-packs with MIT License | 5 votes |
def is_built_with_cuda(): """Returns whether TensorFlow was built with CUDA (GPU) support.""" return _test_util.IsGoogleCudaEnabled()
Example #2
Source File: test.py From auto-alt-text-lambda-api with MIT License | 5 votes |
def is_built_with_cuda(): """Returns whether TensorFlow was built with CUDA (GPU) support.""" return _test_util.IsGoogleCudaEnabled()
Example #3
Source File: test.py From deep_image_model with Apache License 2.0 | 5 votes |
def is_built_with_cuda(): """Returns whether TensorFlow was built with CUDA (GPU) support.""" return _test_util.IsGoogleCudaEnabled()
Example #4
Source File: test_util_test.py From deep_image_model with Apache License 2.0 | 5 votes |
def testIsGoogleCudaEnabled(self): # The test doesn't assert anything. It ensures the py wrapper # function is generated correctly. if test_util.IsGoogleCudaEnabled(): print("GoogleCuda is enabled") else: print("GoogleCuda is disabled")
Example #5
Source File: test.py From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License | 5 votes |
def is_built_with_cuda(): """Returns whether TensorFlow was built with CUDA (GPU) support.""" return _test_util.IsGoogleCudaEnabled()
Example #6
Source File: test.py From keras-lambda with MIT License | 5 votes |
def is_built_with_cuda(): """Returns whether TensorFlow was built with CUDA (GPU) support.""" return _test_util.IsGoogleCudaEnabled()