Tensorflow h5 file doesn't contain network, it only include weighs?
I have downloaded bert-base-uncased tf_model.h5 formbert-base-uncased at mainInspect it with netron, only weight can be found, how can I save network in h5?image632×1314 27.1 KB
2021-12-20T11:07:38Z
Hello,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 morehereon how to save as SavedModel and h5.