versions_go_proto

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL