Documentation
¶
Overview ¶
package shared contains client and shared dependency without direct dependency on tensorflow
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
Name string
Index int // Position in cache key.
DataType string `json:",omitempty" yaml:",omitempty"`
// Indicates not an input for the model, but is eligible to
// be passed in a payload.
Auxiliary bool `json:",omitempty" yaml:",omitempty"`
// Indicates, on its own, that it is an input for the model,
// and that it should be directly input as a cache key.
// Applies to string inputs.
Wildcard bool `json:",omitempty" yaml:",omitempty"`
// Indicates, on its own, that it is an input for the model,
// and that it should be directly input as a cache key.
Precision int `json:",omitempty" yaml:",omitempty"`
// contains filtered or unexported fields
}
func (*Field) SetRawType ¶
type Fields ¶
type Fields []*Field
type MetaInput ¶
type MetaInput struct {
Inputs []*Field
// This is used to order inputs and provide extra caching information
// to the client.
// TODO rethink this, use a property on Field instead.
KeyFields []string `json:",omitempty" yaml:",omitempty"`
// Deprecated: use Field.Auxiliary
Auxiliary []string `json:",omitempty" yaml:",omitempty"`
Outputs []*Field `json:",omitempty" yaml:",omitempty"`
}
func (*MetaInput) FieldByName ¶
func (*MetaInput) OutputIndex ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.