Documentation ¶
Index ¶
Constants ¶
View Source
const ( NAME = "caffe-inference" VERSION = 1 METRICNAME = "batches" UNIT = "batches" DESCRIPTION = "Images classified by caffe (in batches)" )
Constants representing plugin name, version, type and unit of measurement used.
Variables ¶
View Source
var ( // ErrNspace means that invalid namespace was passed to the plugin ErrNspace = errors.New("invalid namespace") // ErrConf means that stdout_file is missing ErrConf = errors.New("invalid config") // ErrParse means that parsing stdout_file failed ErrParse = errors.New("parse stdout_file") // ErrPlugin means that plugin related error occurred ErrPlugin = errors.New("plugin internal error") )
Functions ¶
This section is empty.
Types ¶
type InferenceCollector ¶
type InferenceCollector struct { }
InferenceCollector implements snap Plugin interface.
func (InferenceCollector) CollectMetrics ¶
CollectMetrics implements plugin.PluginCollector interface.
func (InferenceCollector) GetConfigPolicy ¶
func (InferenceCollector) GetConfigPolicy() (plugin.ConfigPolicy, error)
GetConfigPolicy implements plugin.PluginCollector interface.
func (InferenceCollector) GetMetricTypes ¶
GetMetricTypes implements plugin.PluginCollector interface. Single metric only: /intel/swan/caffe/inference/img which holds number of processed images.
Click to show internal directories.
Click to hide internal directories.