I am loading a model using:
m = tf.saved_model.load(str(model_path))
I want to be able to get the information for the size of the images the model was trained on so I can resize the new images that I want to inference.
I know with a keras model I can use :
shape_0 = m.layers[0].output_shape
input_height = shape_0[1]
input_width= shape_0[2]
to get the input height and width of the training images.
Are there similar commands for getting these values from a tensorflow2 model?