I\'m using a pre-built ResNet in Keras (TensorFlow 2) in the following way:
from tensorflow.keras.applications.resnet50 import ResNet50 base_model = ResNet50(