Documentation ¶
Index ¶
- Variables
- type LogCollectorConfig
- func (*LogCollectorConfig) Descriptor() ([]byte, []int)
- func (m *LogCollectorConfig) GetFilenamePrefix() string
- func (m *LogCollectorConfig) GetType() string
- func (*LogCollectorConfig) ProtoMessage()
- func (m *LogCollectorConfig) Reset()
- func (m *LogCollectorConfig) String() string
- func (m *LogCollectorConfig) XXX_DiscardUnknown()
- func (m *LogCollectorConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogCollectorConfig) XXX_Merge(src proto.Message)
- func (m *LogCollectorConfig) XXX_Size() int
- func (m *LogCollectorConfig) XXX_Unmarshal(b []byte) error
- type LoggingConfig
- func (*LoggingConfig) Descriptor() ([]byte, []int)
- func (m *LoggingConfig) GetLogCollectorConfig() *LogCollectorConfig
- func (m *LoggingConfig) GetSamplingConfig() *SamplingConfig
- func (*LoggingConfig) ProtoMessage()
- func (m *LoggingConfig) Reset()
- func (m *LoggingConfig) String() string
- func (m *LoggingConfig) XXX_DiscardUnknown()
- func (m *LoggingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoggingConfig) XXX_Merge(src proto.Message)
- func (m *LoggingConfig) XXX_Size() int
- func (m *LoggingConfig) XXX_Unmarshal(b []byte) error
- type ModelConfig
- func (*ModelConfig) Descriptor() ([]byte, []int)
- func (m *ModelConfig) GetBasePath() string
- func (m *ModelConfig) GetLoggingConfig() *LoggingConfig
- func (m *ModelConfig) GetModelPlatform() string
- func (m *ModelConfig) GetModelType() ModelTypedeprecated
- func (m *ModelConfig) GetModelVersionPolicy() *storage_path.FileSystemStoragePathSourceConfig_ServableVersionPolicy
- func (m *ModelConfig) GetName() string
- func (m *ModelConfig) GetVersionLabels() map[string]int64
- func (*ModelConfig) ProtoMessage()
- func (m *ModelConfig) Reset()
- func (m *ModelConfig) String() string
- func (m *ModelConfig) XXX_DiscardUnknown()
- func (m *ModelConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModelConfig) XXX_Merge(src proto.Message)
- func (m *ModelConfig) XXX_Size() int
- func (m *ModelConfig) XXX_Unmarshal(b []byte) error
- type ModelConfigList
- func (*ModelConfigList) Descriptor() ([]byte, []int)
- func (m *ModelConfigList) GetConfig() []*ModelConfig
- func (*ModelConfigList) ProtoMessage()
- func (m *ModelConfigList) Reset()
- func (m *ModelConfigList) String() string
- func (m *ModelConfigList) XXX_DiscardUnknown()
- func (m *ModelConfigList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModelConfigList) XXX_Merge(src proto.Message)
- func (m *ModelConfigList) XXX_Size() int
- func (m *ModelConfigList) XXX_Unmarshal(b []byte) error
- type ModelServerConfig
- func (*ModelServerConfig) Descriptor() ([]byte, []int)
- func (m *ModelServerConfig) GetConfig() isModelServerConfig_Config
- func (m *ModelServerConfig) GetCustomModelConfig() *any.Any
- func (m *ModelServerConfig) GetModelConfigList() *ModelConfigList
- func (*ModelServerConfig) ProtoMessage()
- func (m *ModelServerConfig) Reset()
- func (m *ModelServerConfig) String() string
- func (m *ModelServerConfig) XXX_DiscardUnknown()
- func (m *ModelServerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModelServerConfig) XXX_Merge(src proto.Message)
- func (*ModelServerConfig) XXX_OneofWrappers() []interface{}
- func (m *ModelServerConfig) XXX_Size() int
- func (m *ModelServerConfig) XXX_Unmarshal(b []byte) error
- type ModelServerConfig_CustomModelConfig
- type ModelServerConfig_ModelConfigList
- type ModelType
- type SamplingConfig
- func (*SamplingConfig) Descriptor() ([]byte, []int)
- func (m *SamplingConfig) GetSamplingRate() float64
- func (*SamplingConfig) ProtoMessage()
- func (m *SamplingConfig) Reset()
- func (m *SamplingConfig) String() string
- func (m *SamplingConfig) XXX_DiscardUnknown()
- func (m *SamplingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SamplingConfig) XXX_Merge(src proto.Message)
- func (m *SamplingConfig) XXX_Size() int
- func (m *SamplingConfig) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ModelType_name = map[int32]string{
0: "MODEL_TYPE_UNSPECIFIED",
1: "TENSORFLOW",
2: "OTHER",
}
View Source
var ModelType_value = map[string]int32{
"MODEL_TYPE_UNSPECIFIED": 0,
"TENSORFLOW": 1,
"OTHER": 2,
}
Functions ¶
This section is empty.
Types ¶
type LogCollectorConfig ¶
type LogCollectorConfig struct { // Identifies the type of the LogCollector we will use to collect these logs. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // The prefix to use for the filenames of the logs. FilenamePrefix string `protobuf:"bytes,2,opt,name=filename_prefix,json=filenamePrefix,proto3" json:"filename_prefix,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogCollectorConfig) Descriptor ¶
func (*LogCollectorConfig) Descriptor() ([]byte, []int)
func (*LogCollectorConfig) GetFilenamePrefix ¶
func (m *LogCollectorConfig) GetFilenamePrefix() string
func (*LogCollectorConfig) GetType ¶
func (m *LogCollectorConfig) GetType() string
func (*LogCollectorConfig) ProtoMessage ¶
func (*LogCollectorConfig) ProtoMessage()
func (*LogCollectorConfig) Reset ¶
func (m *LogCollectorConfig) Reset()
func (*LogCollectorConfig) String ¶
func (m *LogCollectorConfig) String() string
func (*LogCollectorConfig) XXX_DiscardUnknown ¶
func (m *LogCollectorConfig) XXX_DiscardUnknown()
func (*LogCollectorConfig) XXX_Marshal ¶
func (m *LogCollectorConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogCollectorConfig) XXX_Merge ¶
func (m *LogCollectorConfig) XXX_Merge(src proto.Message)
func (*LogCollectorConfig) XXX_Size ¶
func (m *LogCollectorConfig) XXX_Size() int
func (*LogCollectorConfig) XXX_Unmarshal ¶
func (m *LogCollectorConfig) XXX_Unmarshal(b []byte) error
type LoggingConfig ¶
type LoggingConfig struct { LogCollectorConfig *LogCollectorConfig `protobuf:"bytes,1,opt,name=log_collector_config,json=logCollectorConfig,proto3" json:"log_collector_config,omitempty"` SamplingConfig *SamplingConfig `protobuf:"bytes,2,opt,name=sampling_config,json=samplingConfig,proto3" json:"sampling_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Configuration for logging query/responses.
func (*LoggingConfig) Descriptor ¶
func (*LoggingConfig) Descriptor() ([]byte, []int)
func (*LoggingConfig) GetLogCollectorConfig ¶
func (m *LoggingConfig) GetLogCollectorConfig() *LogCollectorConfig
func (*LoggingConfig) GetSamplingConfig ¶
func (m *LoggingConfig) GetSamplingConfig() *SamplingConfig
func (*LoggingConfig) ProtoMessage ¶
func (*LoggingConfig) ProtoMessage()
func (*LoggingConfig) Reset ¶
func (m *LoggingConfig) Reset()
func (*LoggingConfig) String ¶
func (m *LoggingConfig) String() string
func (*LoggingConfig) XXX_DiscardUnknown ¶
func (m *LoggingConfig) XXX_DiscardUnknown()
func (*LoggingConfig) XXX_Marshal ¶
func (m *LoggingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoggingConfig) XXX_Merge ¶
func (m *LoggingConfig) XXX_Merge(src proto.Message)
func (*LoggingConfig) XXX_Size ¶
func (m *LoggingConfig) XXX_Size() int
func (*LoggingConfig) XXX_Unmarshal ¶
func (m *LoggingConfig) XXX_Unmarshal(b []byte) error
type ModelConfig ¶
type ModelConfig struct { // Name of the model. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Base path to the model, excluding the version directory. // E.g> for a model at /foo/bar/my_model/123, where 123 is the version, the // base path is /foo/bar/my_model. // // (This can be changed once a model is in serving, *if* the underlying data // remains the same. Otherwise there are no guarantees about whether the old // or new data will be used for model versions currently loaded.) BasePath string `protobuf:"bytes,2,opt,name=base_path,json=basePath,proto3" json:"base_path,omitempty"` // Type of model. // TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead. ModelType ModelType `protobuf:"varint,3,opt,name=model_type,json=modelType,proto3,enum=tensorflow.serving.ModelType" json:"model_type,omitempty"` // Deprecated: Do not use. // Type of model (e.g. "tensorflow"). // // (This cannot be changed once a model is in serving.) ModelPlatform string `protobuf:"bytes,4,opt,name=model_platform,json=modelPlatform,proto3" json:"model_platform,omitempty"` // Version policy for the model indicating which version(s) of the model to // load and make available for serving simultaneously. // The default option is to serve only the latest version of the model. // // (This can be changed once a model is in serving.) ModelVersionPolicy *storage_path.FileSystemStoragePathSourceConfig_ServableVersionPolicy `protobuf:"bytes,7,opt,name=model_version_policy,json=modelVersionPolicy,proto3" json:"model_version_policy,omitempty"` // String labels to associate with versions of the model, allowing inference // queries to refer to versions by label instead of number. Multiple labels // can map to the same version, but not vice-versa. // // An envisioned use-case for these labels is canarying tentative versions. // For example, one can assign labels "stable" and "canary" to two specific // versions. Perhaps initially "stable" is assigned to version 0 and "canary" // to version 1. Once version 1 passes canary, one can shift the "stable" // label to refer to version 1 (at that point both labels map to the same // version -- version 1 -- which is fine). Later once version 2 is ready to // canary one can move the "canary" label to version 2. And so on. VersionLabels map[string]int64 `` /* 189-byte string literal not displayed */ // Configures logging requests and responses, to the model. // // (This can be changed once a model is in serving.) LoggingConfig *LoggingConfig `protobuf:"bytes,6,opt,name=logging_config,json=loggingConfig,proto3" json:"logging_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Common configuration for loading a model being served.
func (*ModelConfig) Descriptor ¶
func (*ModelConfig) Descriptor() ([]byte, []int)
func (*ModelConfig) GetBasePath ¶
func (m *ModelConfig) GetBasePath() string
func (*ModelConfig) GetLoggingConfig ¶
func (m *ModelConfig) GetLoggingConfig() *LoggingConfig
func (*ModelConfig) GetModelPlatform ¶
func (m *ModelConfig) GetModelPlatform() string
func (*ModelConfig) GetModelType
deprecated
func (m *ModelConfig) GetModelType() ModelType
Deprecated: Do not use.
func (*ModelConfig) GetModelVersionPolicy ¶
func (m *ModelConfig) GetModelVersionPolicy() *storage_path.FileSystemStoragePathSourceConfig_ServableVersionPolicy
func (*ModelConfig) GetName ¶
func (m *ModelConfig) GetName() string
func (*ModelConfig) GetVersionLabels ¶
func (m *ModelConfig) GetVersionLabels() map[string]int64
func (*ModelConfig) ProtoMessage ¶
func (*ModelConfig) ProtoMessage()
func (*ModelConfig) Reset ¶
func (m *ModelConfig) Reset()
func (*ModelConfig) String ¶
func (m *ModelConfig) String() string
func (*ModelConfig) XXX_DiscardUnknown ¶
func (m *ModelConfig) XXX_DiscardUnknown()
func (*ModelConfig) XXX_Marshal ¶
func (m *ModelConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModelConfig) XXX_Merge ¶
func (m *ModelConfig) XXX_Merge(src proto.Message)
func (*ModelConfig) XXX_Size ¶
func (m *ModelConfig) XXX_Size() int
func (*ModelConfig) XXX_Unmarshal ¶
func (m *ModelConfig) XXX_Unmarshal(b []byte) error
type ModelConfigList ¶
type ModelConfigList struct { Config []*ModelConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Static list of models to be loaded for serving.
func (*ModelConfigList) Descriptor ¶
func (*ModelConfigList) Descriptor() ([]byte, []int)
func (*ModelConfigList) GetConfig ¶
func (m *ModelConfigList) GetConfig() []*ModelConfig
func (*ModelConfigList) ProtoMessage ¶
func (*ModelConfigList) ProtoMessage()
func (*ModelConfigList) Reset ¶
func (m *ModelConfigList) Reset()
func (*ModelConfigList) String ¶
func (m *ModelConfigList) String() string
func (*ModelConfigList) XXX_DiscardUnknown ¶
func (m *ModelConfigList) XXX_DiscardUnknown()
func (*ModelConfigList) XXX_Marshal ¶
func (m *ModelConfigList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModelConfigList) XXX_Merge ¶
func (m *ModelConfigList) XXX_Merge(src proto.Message)
func (*ModelConfigList) XXX_Size ¶
func (m *ModelConfigList) XXX_Size() int
func (*ModelConfigList) XXX_Unmarshal ¶
func (m *ModelConfigList) XXX_Unmarshal(b []byte) error
type ModelServerConfig ¶
type ModelServerConfig struct { // ModelServer takes either a static file-based model config list or an Any // proto representing custom model config that is fetched dynamically at // runtime (through network RPC, custom service, etc.). // // Types that are valid to be assigned to Config: // *ModelServerConfig_ModelConfigList // *ModelServerConfig_CustomModelConfig Config isModelServerConfig_Config `protobuf_oneof:"config"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ModelServer config.
func (*ModelServerConfig) Descriptor ¶
func (*ModelServerConfig) Descriptor() ([]byte, []int)
func (*ModelServerConfig) GetConfig ¶
func (m *ModelServerConfig) GetConfig() isModelServerConfig_Config
func (*ModelServerConfig) GetCustomModelConfig ¶
func (m *ModelServerConfig) GetCustomModelConfig() *any.Any
func (*ModelServerConfig) GetModelConfigList ¶
func (m *ModelServerConfig) GetModelConfigList() *ModelConfigList
func (*ModelServerConfig) ProtoMessage ¶
func (*ModelServerConfig) ProtoMessage()
func (*ModelServerConfig) Reset ¶
func (m *ModelServerConfig) Reset()
func (*ModelServerConfig) String ¶
func (m *ModelServerConfig) String() string
func (*ModelServerConfig) XXX_DiscardUnknown ¶
func (m *ModelServerConfig) XXX_DiscardUnknown()
func (*ModelServerConfig) XXX_Marshal ¶
func (m *ModelServerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModelServerConfig) XXX_Merge ¶
func (m *ModelServerConfig) XXX_Merge(src proto.Message)
func (*ModelServerConfig) XXX_OneofWrappers ¶
func (*ModelServerConfig) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ModelServerConfig) XXX_Size ¶
func (m *ModelServerConfig) XXX_Size() int
func (*ModelServerConfig) XXX_Unmarshal ¶
func (m *ModelServerConfig) XXX_Unmarshal(b []byte) error
type ModelServerConfig_ModelConfigList ¶
type ModelServerConfig_ModelConfigList struct {
ModelConfigList *ModelConfigList `protobuf:"bytes,1,opt,name=model_config_list,json=modelConfigList,proto3,oneof"`
}
type ModelType ¶
type ModelType int32
The type of model. TODO(b/31336131): DEPRECATED.
func (ModelType) EnumDescriptor ¶
type SamplingConfig ¶
type SamplingConfig struct { // Requests will be logged uniformly at random with this probability. Valid // range: [0, 1.0]. SamplingRate float64 `protobuf:"fixed64,1,opt,name=sampling_rate,json=samplingRate,proto3" json:"sampling_rate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SamplingConfig) Descriptor ¶
func (*SamplingConfig) Descriptor() ([]byte, []int)
func (*SamplingConfig) GetSamplingRate ¶
func (m *SamplingConfig) GetSamplingRate() float64
func (*SamplingConfig) ProtoMessage ¶
func (*SamplingConfig) ProtoMessage()
func (*SamplingConfig) Reset ¶
func (m *SamplingConfig) Reset()
func (*SamplingConfig) String ¶
func (m *SamplingConfig) String() string
func (*SamplingConfig) XXX_DiscardUnknown ¶
func (m *SamplingConfig) XXX_DiscardUnknown()
func (*SamplingConfig) XXX_Marshal ¶
func (m *SamplingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SamplingConfig) XXX_Merge ¶
func (m *SamplingConfig) XXX_Merge(src proto.Message)
func (*SamplingConfig) XXX_Size ¶
func (m *SamplingConfig) XXX_Size() int
func (*SamplingConfig) XXX_Unmarshal ¶
func (m *SamplingConfig) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.