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