Documentation ¶
Index ¶
- Variables
- type EmbeddingInfo
- func (*EmbeddingInfo) Descriptor() ([]byte, []int)deprecated
- func (x *EmbeddingInfo) GetBookmarksPath() string
- func (x *EmbeddingInfo) GetMetadataPath() string
- func (x *EmbeddingInfo) GetSprite() *SpriteMetadata
- func (x *EmbeddingInfo) GetTensorName() string
- func (x *EmbeddingInfo) GetTensorPath() string
- func (x *EmbeddingInfo) GetTensorShape() []uint32
- func (*EmbeddingInfo) ProtoMessage()
- func (x *EmbeddingInfo) ProtoReflect() protoreflect.Message
- func (x *EmbeddingInfo) Reset()
- func (x *EmbeddingInfo) String() string
- type ProjectorConfig
- func (*ProjectorConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProjectorConfig) GetEmbeddings() []*EmbeddingInfo
- func (x *ProjectorConfig) GetModelCheckpointDir() string
- func (x *ProjectorConfig) GetModelCheckpointPath() string
- func (*ProjectorConfig) ProtoMessage()
- func (x *ProjectorConfig) ProtoReflect() protoreflect.Message
- func (x *ProjectorConfig) Reset()
- func (x *ProjectorConfig) String() string
- type SavedMetadata
- type SavedObject
- func (*SavedObject) Descriptor() ([]byte, []int)deprecated
- func (x *SavedObject) GetIdentifier() string
- func (x *SavedObject) GetMetadata() string
- func (x *SavedObject) GetNodeId() int32
- func (x *SavedObject) GetNodePath() string
- func (x *SavedObject) GetVersion() *VersionDef
- func (*SavedObject) ProtoMessage()
- func (x *SavedObject) ProtoReflect() protoreflect.Message
- func (x *SavedObject) Reset()
- func (x *SavedObject) String() string
- type SpriteMetadata
- func (*SpriteMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *SpriteMetadata) GetImagePath() string
- func (x *SpriteMetadata) GetSingleImageDim() []uint32
- func (*SpriteMetadata) ProtoMessage()
- func (x *SpriteMetadata) ProtoReflect() protoreflect.Message
- func (x *SpriteMetadata) Reset()
- func (x *SpriteMetadata) String() string
- 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 ¶
var File_tensorflow_python_keras_protobuf_projector_config_proto protoreflect.FileDescriptor
var File_tensorflow_python_keras_protobuf_saved_metadata_proto protoreflect.FileDescriptor
var File_tensorflow_python_keras_protobuf_versions_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EmbeddingInfo ¶
type EmbeddingInfo struct { TensorName string `protobuf:"bytes,1,opt,name=tensor_name,json=tensorName,proto3" json:"tensor_name,omitempty"` MetadataPath string `protobuf:"bytes,2,opt,name=metadata_path,json=metadataPath,proto3" json:"metadata_path,omitempty"` BookmarksPath string `protobuf:"bytes,3,opt,name=bookmarks_path,json=bookmarksPath,proto3" json:"bookmarks_path,omitempty"` // Shape of the 2D tensor [N x D]. If missing, it will be inferred from the // model checkpoint. TensorShape []uint32 `protobuf:"varint,4,rep,packed,name=tensor_shape,json=tensorShape,proto3" json:"tensor_shape,omitempty"` Sprite *SpriteMetadata `protobuf:"bytes,5,opt,name=sprite,proto3" json:"sprite,omitempty"` // Path to the TSV file holding the tensor values. If missing, the tensor // is assumed to be stored in the model checkpoint. TensorPath string `protobuf:"bytes,6,opt,name=tensor_path,json=tensorPath,proto3" json:"tensor_path,omitempty"` // contains filtered or unexported fields }
func (*EmbeddingInfo) Descriptor
deprecated
func (*EmbeddingInfo) Descriptor() ([]byte, []int)
Deprecated: Use EmbeddingInfo.ProtoReflect.Descriptor instead.
func (*EmbeddingInfo) GetBookmarksPath ¶
func (x *EmbeddingInfo) GetBookmarksPath() string
func (*EmbeddingInfo) GetMetadataPath ¶
func (x *EmbeddingInfo) GetMetadataPath() string
func (*EmbeddingInfo) GetSprite ¶
func (x *EmbeddingInfo) GetSprite() *SpriteMetadata
func (*EmbeddingInfo) GetTensorName ¶
func (x *EmbeddingInfo) GetTensorName() string
func (*EmbeddingInfo) GetTensorPath ¶
func (x *EmbeddingInfo) GetTensorPath() string
func (*EmbeddingInfo) GetTensorShape ¶
func (x *EmbeddingInfo) GetTensorShape() []uint32
func (*EmbeddingInfo) ProtoMessage ¶
func (*EmbeddingInfo) ProtoMessage()
func (*EmbeddingInfo) ProtoReflect ¶
func (x *EmbeddingInfo) ProtoReflect() protoreflect.Message
func (*EmbeddingInfo) Reset ¶
func (x *EmbeddingInfo) Reset()
func (*EmbeddingInfo) String ¶
func (x *EmbeddingInfo) String() string
type ProjectorConfig ¶
type ProjectorConfig struct { // Path to the checkpoint file. Use either this or model_checkpoint_dir. ModelCheckpointPath string `protobuf:"bytes,1,opt,name=model_checkpoint_path,json=modelCheckpointPath,proto3" json:"model_checkpoint_path,omitempty"` Embeddings []*EmbeddingInfo `protobuf:"bytes,2,rep,name=embeddings,proto3" json:"embeddings,omitempty"` // Path to the checkpoint directory. The directory will be scanned for the // latest checkpoint file. ModelCheckpointDir string `protobuf:"bytes,3,opt,name=model_checkpoint_dir,json=modelCheckpointDir,proto3" json:"model_checkpoint_dir,omitempty"` // contains filtered or unexported fields }
func (*ProjectorConfig) Descriptor
deprecated
func (*ProjectorConfig) Descriptor() ([]byte, []int)
Deprecated: Use ProjectorConfig.ProtoReflect.Descriptor instead.
func (*ProjectorConfig) GetEmbeddings ¶
func (x *ProjectorConfig) GetEmbeddings() []*EmbeddingInfo
func (*ProjectorConfig) GetModelCheckpointDir ¶
func (x *ProjectorConfig) GetModelCheckpointDir() string
func (*ProjectorConfig) GetModelCheckpointPath ¶
func (x *ProjectorConfig) GetModelCheckpointPath() string
func (*ProjectorConfig) ProtoMessage ¶
func (*ProjectorConfig) ProtoMessage()
func (*ProjectorConfig) ProtoReflect ¶
func (x *ProjectorConfig) ProtoReflect() protoreflect.Message
func (*ProjectorConfig) Reset ¶
func (x *ProjectorConfig) Reset()
func (*ProjectorConfig) String ¶
func (x *ProjectorConfig) String() string
type SavedMetadata ¶
type SavedMetadata struct { // Nodes represent trackable objects in the SavedModel. The data for every // Keras object is stored. Nodes []*SavedObject `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
func (*SavedMetadata) Descriptor
deprecated
func (*SavedMetadata) Descriptor() ([]byte, []int)
Deprecated: Use SavedMetadata.ProtoReflect.Descriptor instead.
func (*SavedMetadata) GetNodes ¶
func (x *SavedMetadata) GetNodes() []*SavedObject
func (*SavedMetadata) ProtoMessage ¶
func (*SavedMetadata) ProtoMessage()
func (*SavedMetadata) ProtoReflect ¶
func (x *SavedMetadata) ProtoReflect() protoreflect.Message
func (*SavedMetadata) Reset ¶
func (x *SavedMetadata) Reset()
func (*SavedMetadata) String ¶
func (x *SavedMetadata) String() string
type SavedObject ¶
type SavedObject struct { // Index of the node in the SavedModel SavedObjectGraph. NodeId int32 `protobuf:"varint,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // String path from root (e.g. "root.child_layer") NodePath string `protobuf:"bytes,3,opt,name=node_path,json=nodePath,proto3" json:"node_path,omitempty"` // Identifier to determine loading function. // Must be one of: // // _tf_keras_input_layer, _tf_keras_layer, _tf_keras_metric, // _tf_keras_model, _tf_keras_network, _tf_keras_rnn_layer, // _tf_keras_sequential Identifier string `protobuf:"bytes,4,opt,name=identifier,proto3" json:"identifier,omitempty"` // Metadata containing a JSON-serialized object with the non-TensorFlow // attributes for this Keras object. Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` // Version defined by the code serializing this Keras object. Version *VersionDef `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
Metadata of an individual Keras object.
func (*SavedObject) Descriptor
deprecated
func (*SavedObject) Descriptor() ([]byte, []int)
Deprecated: Use SavedObject.ProtoReflect.Descriptor instead.
func (*SavedObject) GetIdentifier ¶
func (x *SavedObject) GetIdentifier() string
func (*SavedObject) GetMetadata ¶
func (x *SavedObject) GetMetadata() string
func (*SavedObject) GetNodeId ¶
func (x *SavedObject) GetNodeId() int32
func (*SavedObject) GetNodePath ¶
func (x *SavedObject) GetNodePath() string
func (*SavedObject) GetVersion ¶
func (x *SavedObject) GetVersion() *VersionDef
func (*SavedObject) ProtoMessage ¶
func (*SavedObject) ProtoMessage()
func (*SavedObject) ProtoReflect ¶
func (x *SavedObject) ProtoReflect() protoreflect.Message
func (*SavedObject) Reset ¶
func (x *SavedObject) Reset()
func (*SavedObject) String ¶
func (x *SavedObject) String() string
type SpriteMetadata ¶
type SpriteMetadata struct { ImagePath string `protobuf:"bytes,1,opt,name=image_path,json=imagePath,proto3" json:"image_path,omitempty"` // [width, height] of a single image in the sprite. SingleImageDim []uint32 `protobuf:"varint,2,rep,packed,name=single_image_dim,json=singleImageDim,proto3" json:"single_image_dim,omitempty"` // contains filtered or unexported fields }
func (*SpriteMetadata) Descriptor
deprecated
func (*SpriteMetadata) Descriptor() ([]byte, []int)
Deprecated: Use SpriteMetadata.ProtoReflect.Descriptor instead.
func (*SpriteMetadata) GetImagePath ¶
func (x *SpriteMetadata) GetImagePath() string
func (*SpriteMetadata) GetSingleImageDim ¶
func (x *SpriteMetadata) GetSingleImageDim() []uint32
func (*SpriteMetadata) ProtoMessage ¶
func (*SpriteMetadata) ProtoMessage()
func (*SpriteMetadata) ProtoReflect ¶
func (x *SpriteMetadata) ProtoReflect() protoreflect.Message
func (*SpriteMetadata) Reset ¶
func (x *SpriteMetadata) Reset()
func (*SpriteMetadata) String ¶
func (x *SpriteMetadata) String() string
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
LINT.IfChange
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