Error when running from_keras.py (Solved by updating keras to 2.2.4)

When running from_keras.py, the following error occurs:

Traceback (most recent call last):
File “TVM/tvm_example/from_keras.py”, line 77, in
func, params = relay.frontend.from_keras(keras_resnet50, shape_dict)
File “/home/zsx/TVM/tvm/python/tvm/relay/frontend/keras.py”, line 704, in from_keras
if not model._node_key(keras_layer, node_idx) in model._network_nodes:
AttributeError: ‘Model’ object has no attribute ‘_network_nodes’

My keras version is 2.1.6,tensorflow version is 1.7.0

Hello, i met the same error, and resolved it by upgrading the keras to 2.2.4. [my tensorflow version is 1.13.1]