Tensorflow h5 file doesn't contain network, it only include weighs?

I have downloaded bert-base-uncased tf_model.h5 form bert-base-uncased at main

Inspect it with netron, only weight can be found, how can I save network in h5?


Sorry for late reply, you might’ve already figured it out.
TF models can be saved in two ways, one is .h5 file which contains weights and other is SavedModel protobuf file. SavedModel has everything you need (graphs, variables etc) so it’s more platform agnostic. When you save as SavedModel you can use it everywhere (android/flutter apps with TF lite, browser with tf.js, or REST API with tensorflow serving).

See more here on how to save as SavedModel and h5.