Documentation ¶
Index ¶
- Variables
- type VersionDef
- func (*VersionDef) Descriptor() ([]byte, []int)deprecated
- func (x *VersionDef) GetBadConsumers() []int32
- func (x *VersionDef) GetMinConsumer() int32
- func (x *VersionDef) GetProducer() int32
- func (*VersionDef) ProtoMessage()
- func (x *VersionDef) ProtoReflect() protoreflect.Message
- func (x *VersionDef) Reset()
- func (x *VersionDef) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_tensorflow_core_framework_versions_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type VersionDef ¶
type VersionDef struct { // The version of the code that produced this data. Producer int32 `protobuf:"varint,1,opt,name=producer,proto3" json:"producer,omitempty"` // Any consumer below this version is not allowed to consume this data. MinConsumer int32 `protobuf:"varint,2,opt,name=min_consumer,json=minConsumer,proto3" json:"min_consumer,omitempty"` // Specific consumer versions which are disallowed (e.g. due to bugs). BadConsumers []int32 `protobuf:"varint,3,rep,packed,name=bad_consumers,json=badConsumers,proto3" json:"bad_consumers,omitempty"` // contains filtered or unexported fields }
Version information for a piece of serialized data
There are different types of versions for each type of data (GraphDef, etc.), but they all have the same common shape described here.
Each consumer has "consumer" and "min_producer" versions (specified elsewhere). A consumer is allowed to consume this data if
producer >= min_producer consumer >= min_consumer consumer not in bad_consumers
func (*VersionDef) Descriptor
deprecated
func (*VersionDef) Descriptor() ([]byte, []int)
Deprecated: Use VersionDef.ProtoReflect.Descriptor instead.
func (*VersionDef) GetBadConsumers ¶
func (x *VersionDef) GetBadConsumers() []int32
func (*VersionDef) GetMinConsumer ¶
func (x *VersionDef) GetMinConsumer() int32
func (*VersionDef) GetProducer ¶
func (x *VersionDef) GetProducer() int32
func (*VersionDef) ProtoMessage ¶
func (*VersionDef) ProtoMessage()
func (*VersionDef) ProtoReflect ¶
func (x *VersionDef) ProtoReflect() protoreflect.Message
func (*VersionDef) Reset ¶
func (x *VersionDef) Reset()
func (*VersionDef) String ¶
func (x *VersionDef) String() string
Click to show internal directories.
Click to hide internal directories.