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
import numpy as np | |
import tensorflow as tf | |
from tensorflow import keras | |
from tensorflow.keras import layers as L | |
from tensorflow.keras import optimizers as O | |
from time import perf_counter | |
### BEGIN perf tweaks | |
physical_devices = tf.config.list_physical_devices('GPU') | |
print(f"Number of GPUs: {len(physical_devices)}") |