caffe

package
v0.0.0-...-b44688a Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

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

func (InferenceCollector) CollectMetrics(metricTypes []plugin.Metric) ([]plugin.Metric, error)

CollectMetrics implements plugin.PluginCollector interface.

func (InferenceCollector) GetConfigPolicy

func (InferenceCollector) GetConfigPolicy() (plugin.ConfigPolicy, error)

GetConfigPolicy implements plugin.PluginCollector interface.

func (InferenceCollector) GetMetricTypes

func (InferenceCollector) GetMetricTypes(configType plugin.Config) ([]plugin.Metric, error)

GetMetricTypes implements plugin.PluginCollector interface. Single metric only: /intel/swan/caffe/inference/img which holds number of processed images.

Jump to

Keyboard shortcuts

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