-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
439417f
commit 23ffdd4
Showing
2 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
import nougat | ||
print(dir(nougat)) | ||
import tensorflow as tf | ||
|
||
print("TensorFlow version:", tf.__version__) | ||
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU'))) | ||
|
||
if len(tf.config.experimental.list_physical_devices('GPU')) == 0: | ||
print("No GPU found. Please check your installation.") | ||
else: | ||
for device in tf.config.experimental.list_physical_devices('GPU'): | ||
print("GPU Device:", device) |