• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Protobuf containing the metadata for each Keras object saved in a SavedModel.
2
3syntax = "proto3";
4
5package third_party.tensorflow.python.keras.protobuf;
6
7import "tensorflow/core/framework/versions.proto";
8
9message SavedMetadata {
10  // Nodes represent trackable objects in the SavedModel. The data for every
11  // Keras object is stored.
12  repeated SavedObject nodes = 1;
13}
14
15// Metadata of an individual Keras object.
16message SavedObject {
17  // Version defined by the code serializing this Keras object.
18  .tensorflow.VersionDef version = 1;
19  // Index of the node in the SavedModel SavedObjectGraph.
20  int32 node_id = 2;
21  // String path from root (e.g. "root.child_layer")
22  string node_path = 3;
23
24  // Identifier to determine loading function.
25  // Must be one of:
26  //   _tf_keras_input_layer, _tf_keras_layer, _tf_keras_metric,
27  //   _tf_keras_model, _tf_keras_network, _tf_keras_rnn_layer,
28  //   _tf_keras_sequential
29  string identifier = 4;
30  // Metadata containing a JSON-serialized object with the non-TensorFlow
31  // attributes for this Keras object.
32  string metadata = 5;
33}
34