• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1syntax = "proto3";
2
3package tensorflow;
4option cc_enable_arenas = true;
5option java_outer_classname = "VersionsProtos";
6option java_multiple_files = true;
7option java_package = "org.tensorflow.framework";
8option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/framework";
9
10// Version information for a piece of serialized data
11//
12// There are different types of versions for each type of data
13// (GraphDef, etc.), but they all have the same common shape
14// described here.
15//
16// Each consumer has "consumer" and "min_producer" versions (specified
17// elsewhere).  A consumer is allowed to consume this data if
18//
19//   producer >= min_producer
20//   consumer >= min_consumer
21//   consumer not in bad_consumers
22//
23message VersionDef {
24  // The version of the code that produced this data.
25  int32 producer = 1;
26
27  // Any consumer below this version is not allowed to consume this data.
28  int32 min_consumer = 2;
29
30  // Specific consumer versions which are disallowed (e.g. due to bugs).
31  repeated int32 bad_consumers = 3;
32};
33