I am facing the same issue after converting onnx model to tensorflow, and trying to get model.summary(), it doesn’t work:
import onnx
from onnx_tf.backend import prepare

Load the ONNX model
onnx_model = onnx.load(“model_1.onnx”)
tf_rep = prepare(onnx_model)  # prepare tf representation
tf_rep.export_graph("./model_1")  # export the model as .pb

Load tf model and use
from tensorflow import keras
keras_model = keras.models.load_model(‘model_1’)
keras_model.summary()

Output: ---------------------------------------------------------------------------
  AttributeError                            Traceback (most recent call last)
  <ipython-input-298-81ed83d75a0f> in <module>
  ----> 1 keras_model.summary()

  AttributeError: '_UserObject' object has no attribute 'summary'