evaluation

package module
v0.0.0-...-054d88b Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: NCSA Imports: 42 Imported by: 0

README

Evaluation Build Status

MLModelScope enables easy evaluations of both performance and accuracy of models across frameworks and systems. This repo contains commands that help summarize and visualize the experiments results.

Documentation

Index

Constants

View Source
const (
	GoldRatio = 1.618033989
)

Variables

View Source
var (
	DefaultShowTitle          = true
	DefaultAssetHost          = `https://s3.amazonaws.com/store.carml.org/model_analysis_2019/assets/`
	DefaultTitleFontSize      = 18
	DefaultSeriesFontSize     = 14
	DefaultLegendFontSize     = 14
	DefaultBarPlotAspectRatio = 3.0
	DefaultBarPlotWidth       = 900
	DefaultBarPlotHeight      = int(float64(DefaultBarPlotWidth) / DefaultBarPlotAspectRatio)
	DefaultBoxPlotAspectRatio = 3.0
	DefaultBoxPlotWidth       = 900
	DefaultBoxPlotHeight      = int(float64(DefaultBoxPlotWidth) / DefaultBoxPlotAspectRatio)
	DefaultPiePlotWidth       = 900
	DefaultPiePlotHeight      = 500
)
View Source
var (
	DefaultTrimmedMeanFraction = 0.2
	DefaultDimiter             = ";"
)

Functions

func GetMeanLogValue

func GetMeanLogValue(info SummaryGPUKernelInformation, name string, trimmedMeanFraction float64) float64

func TempFile

func TempFile(dir, pattern string) string

TempFile creates a new temporary file in the directory dir, opens the file for reading and writing, and returns the resulting *os.File. The filename is generated by taking pattern and adding a random string to the end. If pattern includes a "*", the random string replaces the last "*". If dir is the empty string, TempFile uses the default directory for temporary files (see os.TempDir). Multiple programs calling TempFile simultaneously will not choose the same file. The caller can use f.Name() to find the pathname of the file. It is the caller's responsibility to remove the file when no longer needed.

func TrimmedMean

func TrimmedMean(data []float64, frac float64) float64

func TrimmedMeanInt64Slice

func TrimmedMeanInt64Slice(data []int64, frac float64) float64

Types

type AllocationDescription

type AllocationDescription struct {
	RequestedBytes int    `json:"requested_bytes"`
	AllocatedBytes int    `json:"allocated_bytes"`
	AllocatorName  string `json:"allocator_name"`
	AllocationID   int    `json:"allocation_id"`
	Ptr            int64  `json:"ptr"`
}

type AllocationRecords

type AllocationRecords struct {
	AllocMicros int64 `json:"alloc_micros"`
	AllocBytes  int   `json:"alloc_bytes"`
}

type BarPlotter

type BarPlotter interface {
	PlotNamed
	BarPlot() *charts.Bar
	BarPlotAdd(*charts.Bar) *charts.Bar
	WriteBarPlot(string) error
	OpenBarPlot() error
}

type BoxPlotter

type BoxPlotter interface {
	PlotNamed
	BoxPlot() *charts.BoxPlot
	BoxPlotAdd(*charts.BoxPlot) *charts.BoxPlot
	WriteBoxPlot(string) error
	OpenBoxPlot() error
}

type Dim

type Dim struct {
	Size int `json:"size"`
}

type Divergence

type Divergence struct {
	ID                           bson.ObjectId        `bson:"id,omitempty" json:"id,omitempty"`
	CreatedAt                    time.Time            `bson:"created_at,omitempty" bson:"created_at" json:"created_at,omitempty"`
	Method                       string               `bson:"method,omitempty" json:"method,omitempty"`
	Value                        float64              `bson:"value,omitempty" json:"value,omitempty"`
	SourcePredictionID           bson.ObjectId        `bson:"source_prediction_id,omitempty" json:"source_prediction_id,omitempty"`
	TargetPredictionID           bson.ObjectId        `bson:"target_prediction_id,omitempty" json:"target_prediction_id,omitempty"`
	SourceInputPredictionInputID string               `bson:"source_input_prediction_input_id,omitempty" json:"source_input_prediction_input_id,omitempty"`
	TargetInputPredictionInputID string               `bson:"target_input_prediction_input_id,omitempty" json:"target_input_prediction_input_id,omitempty"`
	SourceFeatures               dlframework.Features `bson:"source_features,omitempty" json:"source_features,omitempty"`
	TargetFeatures               dlframework.Features `bson:"target_features,omitempty" json:"target_features,omitempty"`
}

func (Divergence) TableName

func (Divergence) TableName() string

type DivergenceCollection

type DivergenceCollection struct {
	*mongodb.MongoTable
}

func NewDivergenceCollection

func NewDivergenceCollection(db database.Database) (*DivergenceCollection, error)

func (*DivergenceCollection) Close

func (m *DivergenceCollection) Close() error

type Evaluation

type Evaluation struct {
	ID                  bson.ObjectId                 `json:"id,omitempty" bson:"_id,omitempty"`
	UserID              string                        `json:"user_id,omitempty" bson:"user_id,omitempty"`
	RunID               string                        `json:"run_id,omitempty"  bson:"run_id,omitempty"`
	CreatedAt           time.Time                     `json:"created_at,omitempty" bson:"created_at,omitempty"`
	Framework           dlframework.FrameworkManifest `json:"framework,omitempty"  bson:"framework,omitempty"`
	Model               dlframework.ModelManifest     `json:"model,omitempty"  bson:"model,omitempty"`
	DatasetCategory     string                        `json:"dataset_category,omitempty" bson:"dataset_category"`
	DatasetName         string                        `json:"dataset_name,omitempty" bson:"dataset_name,omitempty"`
	MachineArchitecture string                        `json:"machine_architecture,omitempty" bson:"machine_architecture,omitempty"`
	UsingGPU            bool                          `json:"using_gpu,omitempty" bson:"using_gpu,omitempty"`
	BatchSize           int                           `json:"batch_size,omitempty" bson:"batch_size,omitempty"`
	GPUMetrics          string                        `json:"gpu_metrics,omitempty" bson:"gpu_metrics,omitempty"`
	Hostname            string                        `json:"hostname,omitempty" bson:"hostname,omitempty"`
	HostIP              string                        `json:"host_ip,omitempty" bson:"host_ip,omitempty"`
	TraceLevel          string                        `json:"trace_level,omitempty" bson:"trace_level,omitempty"`
	ModelAccuracyID     bson.ObjectId                 `json:"model_accuracy_id,omitempty" bson:"model_accuracy_id,omitempty"`
	InputPredictionIDs  []bson.ObjectId               `json:"input_prediction_ids,omitempty" bson:"input_prediction_ids,omitempty"`
	PerformanceID       bson.ObjectId                 `json:"performance_id,omitempty" bson:"performance_id,omitempty"`
	Public              bool                          `json:"public,omitempty" bson:"public,omitempty"`
	MachineInformation  *machine.Machine              `json:"machine_information,omitempty" bson:"machine_information,omitempty"`
	GPUDriverVersion    *string                       `json:"gpu_driver,omitempty" bson:"gpu_driver,omitempty"`
	GPUDevice           *int                          `json:"gpu_device,omitempty" bson:"gpu_device,omitempty"`
	GPUInformation      *nvidiasmi.GPU                `json:"gpu_information,omitempty" bson:"gpu_information,omitempty"`
	Metadata            map[string]string             `json:"metadata,omitempty" bson:"metadata,omitempty"`
}

func (Evaluation) EventFlowSummary

func (e Evaluation) EventFlowSummary(perfCol *PerformanceCollection) (*SummaryEventFlow, error)

func (Evaluation) MarshalEasyJSON

func (v Evaluation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Evaluation) MarshalJSON

func (v Evaluation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (Evaluation) PredictAccuracyInformationSummary

func (e Evaluation) PredictAccuracyInformationSummary(accCol *ModelAccuracyCollection) (*SummaryModelAccuracyInformation, error)

func (Evaluation) TableName

func (Evaluation) TableName() string

func (*Evaluation) UnmarshalEasyJSON

func (v *Evaluation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Evaluation) UnmarshalJSON

func (v *Evaluation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EvaluationCollection

type EvaluationCollection struct {
	*mongodb.MongoTable
}

func NewEvaluationCollection

func NewEvaluationCollection(db database.Database) (*EvaluationCollection, error)

func (*EvaluationCollection) Close

func (m *EvaluationCollection) Close() error

func (*EvaluationCollection) Find

func (c *EvaluationCollection) Find(as ...interface{}) ([]Evaluation, error)

func (*EvaluationCollection) FindByModel

func (c *EvaluationCollection) FindByModel(model dlframework.ModelManifest) ([]Evaluation, error)

func (*EvaluationCollection) FindByUserID

func (c *EvaluationCollection) FindByUserID(UserID string) ([]Evaluation, error)

type Evaluations

type Evaluations []Evaluation

func (Evaluations) EventFlowSummary

func (es Evaluations) EventFlowSummary(perfCol *PerformanceCollection) (SummaryEventFlows, error)

func (Evaluations) GetSpansFromPerformanceCollection

func (es Evaluations) GetSpansFromPerformanceCollection(perfCol *PerformanceCollection) (Spans, error)

func (Evaluations) GroupByBatchSize

func (es Evaluations) GroupByBatchSize() map[int]Evaluations

func (Evaluations) PredictAccuracyInformationSummary

func (es Evaluations) PredictAccuracyInformationSummary(accCol *ModelAccuracyCollection) (SummaryModelAccuracyInformations, error)

func (Evaluations) SummaryGPUKernelLayerAggreInformations

func (es Evaluations) SummaryGPUKernelLayerAggreInformations(perfCol *PerformanceCollection) (SummaryGPUKernelLayerAggreInformations, error)

func (Evaluations) SummaryGPUKernelLayerInformations

func (es Evaluations) SummaryGPUKernelLayerInformations(perfCol *PerformanceCollection) (SummaryGPUKernelLayerInformations, error)

func (Evaluations) SummaryGPUKernelModelAggreInformations

func (es Evaluations) SummaryGPUKernelModelAggreInformations(perfCol *PerformanceCollection) (SummaryGPUKernelModelAggreInformations, error)

func (Evaluations) SummaryGPUKernelNameAggreInformations

func (es Evaluations) SummaryGPUKernelNameAggreInformations(perfCol *PerformanceCollection) (SummaryGPUKernelNameAggreInformations, error)

func (Evaluations) SummaryLayerAggreInformations

func (es Evaluations) SummaryLayerAggreInformations(perfCol *PerformanceCollection) (SummaryLayerAggreInformations, error)

func (Evaluations) SummaryLayerInformations

func (es Evaluations) SummaryLayerInformations(perfCol *PerformanceCollection) (SummaryLayerInformations, error)

func (Evaluations) SummaryModelInformations

func (es Evaluations) SummaryModelInformations(perfCol *PerformanceCollection) (SummaryModelInformations, error)

type GPUKernelLayerAggreInformationSelector

type GPUKernelLayerAggreInformationSelector func(elem SummaryGPUKernelLayerAggreInformation) float64

type GPUMemInformation

type GPUMemInformation struct {
	GPUID int `json:"gpuid,omitempty"`

	StartUsed  int64 `json:"start_used,omitempty"`
	StartFree  int64 `json:"start_free,omitempty"`
	StartTotal int64 `json:"start_total,omitempty"`

	FinishUsed  int64 `json:"finish_used,omitempty"`
	FinishFree  int64 `json:"finish_free,omitempty"`
	FinishTotal int64 `json:"finish_total,omitempty"`
}

func (GPUMemInformation) MarshalEasyJSON

func (v GPUMemInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GPUMemInformation) MarshalJSON

func (v GPUMemInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GPUMemInformation) UnmarshalEasyJSON

func (v *GPUMemInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GPUMemInformation) UnmarshalJSON

func (v *GPUMemInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type InputPrediction

type InputPrediction struct {
	ID            bson.ObjectId        `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt     time.Time            `json:"created_at,omitempty"`
	InputID       string               `json:"input_id,omitempty"`
	InputIndex    int                  `json:"input_index,omitempty"`
	ExpectedLabel string               `json:"expected_label,omitempty"`
	Features      dlframework.Features `json:"features,omitempty"`
}

func (InputPrediction) TableName

func (InputPrediction) TableName() string

type InputPredictionCollection

type InputPredictionCollection struct {
	*mongodb.MongoTable
}

func NewInputPredictionCollection

func NewInputPredictionCollection(db database.Database) (*InputPredictionCollection, error)

func (*InputPredictionCollection) Close

func (m *InputPredictionCollection) Close() error

func (*InputPredictionCollection) Find

func (c *InputPredictionCollection) Find(as ...interface{}) ([]InputPrediction, error)

type LayerAggregatedInformationSelector

type LayerAggregatedInformationSelector func(elem SummaryLayerAggreInformation) interface{}

type LayerInformationSelector

type LayerInformationSelector func(elem SummaryLayerInformation) float64

type MemoryInformation

type MemoryInformation struct {
	GPU     []GPUMemInformation      `json:"gpu,omitempty"`
	Runtime RuntimeMemoryInformation `json:"runtime,omitempty"`
	System  SystemMemoryInformation  `json:"system,omitempty"`
}

func (MemoryInformation) MarshalEasyJSON

func (v MemoryInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MemoryInformation) MarshalJSON

func (v MemoryInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MemoryInformation) UnmarshalEasyJSON

func (v *MemoryInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MemoryInformation) UnmarshalJSON

func (v *MemoryInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Metadata

type Metadata map[string]interface{}

type ModelAccuracies

type ModelAccuracies []ModelAccuracy

func (ModelAccuracies) PredictAccuracyInformationSummary

func (as ModelAccuracies) PredictAccuracyInformationSummary(e Evaluation) ([]*SummaryModelAccuracyInformation, error)

type ModelAccuracy

type ModelAccuracy struct {
	ID        bson.ObjectId `bson:"_id,omitempty" json:"id,omitempty"`
	CreatedAt time.Time     `bson:"created_at,omitempty" json:"created_at,omitempty"`
	Top1      float64       `bson:"top_1" json:"top_1"`
	Top5      float64       `bson:"top_5" json:"top_5"`
}

func (ModelAccuracy) PredictAccuracyInformationSummary

func (a ModelAccuracy) PredictAccuracyInformationSummary(e Evaluation) (*SummaryModelAccuracyInformation, error)

func (ModelAccuracy) TableName

func (ModelAccuracy) TableName() string

type ModelAccuracyCollection

type ModelAccuracyCollection struct {
	*mongodb.MongoTable
}

func NewModelAccuracyCollection

func NewModelAccuracyCollection(db database.Database) (*ModelAccuracyCollection, error)

func (*ModelAccuracyCollection) Close

func (m *ModelAccuracyCollection) Close() error

func (*ModelAccuracyCollection) Find

func (c *ModelAccuracyCollection) Find(as ...interface{}) ([]ModelAccuracy, error)

func (*ModelAccuracyCollection) FindByModel

type Performance

type Performance struct {
	ID              bson.ObjectId     `json:"id,omitempty"  bson:"_id,omitempty"`
	CreatedAt       time.Time         `json:"created_at" bson:"created_at,omitempty"`
	TraceCompressed []byte            `json:"trace_compressed" bson:"trace,omitempty"`
	Trace           *TraceInformation `json:"trace" bson:"-"`
	TraceLevel      tracer.Level      `json:"trace_level" bson:"trace_level,omitempty"`
	TraceURL        string            `json:"trace_url" bson:"trace_url,omitempty"`
}

func (*Performance) CompressTrace

func (p *Performance) CompressTrace() error

func (Performance) EventFlowSummary

func (p Performance) EventFlowSummary(e Evaluation) (*SummaryEventFlow, error)

func (Performance) MarshalEasyJSON

func (v Performance) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Performance) MarshalJSON

func (v Performance) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (Performance) MemoryInformationSummary

func (p Performance) MemoryInformationSummary(e Evaluation) (*SummaryMemoryInformation, error)

func (Performance) Spans

func (p Performance) Spans() (Spans, error)

func (Performance) TableName

func (Performance) TableName() string

func (*Performance) UncompressTrace

func (p *Performance) UncompressTrace() error

func (*Performance) UnmarshalEasyJSON

func (v *Performance) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Performance) UnmarshalJSON

func (v *Performance) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PerformanceCollection

type PerformanceCollection struct {
	*mongodb.MongoTable
}

func NewPerformanceCollection

func NewPerformanceCollection(db database.Database) (*PerformanceCollection, error)

func (*PerformanceCollection) Close

func (m *PerformanceCollection) Close() error

func (*PerformanceCollection) Find

func (c *PerformanceCollection) Find(as ...interface{}) ([]Performance, error)

type Performances

type Performances []Performance

func (Performances) Spans

func (ps Performances) Spans() Spans

type PiePlotter

type PiePlotter interface {
	PlotNamed
	PiePlot() *charts.Pie
	PiePlotAdd(*charts.Pie) *charts.Pie
	WritePiePlot(string) error
	OpenPiePlot() error
}

type PlotNamed

type PlotNamed interface {
	PlotName() string
}

type RuntimeMemoryInformation

type RuntimeMemoryInformation struct {
	StartAlloc      int64 `json:"start_alloc,omitempty"`
	StartHeapAlloc  int64 `json:"start_heap_alloc,omitempty"`
	StartHeapSys    int64 `json:"start_heap_sys,omitempty"`
	StartTotalAlloc int64 `json:"start_total_alloc,omitempty"`

	FinishAlloc      int64 `json:"finish_alloc,omitempty"`
	FinishHeapAlloc  int64 `json:"finish_heap_alloc,omitempty"`
	FinishHeapSys    int64 `json:"finish_heap_sys,omitempty"`
	FinishTotalAlloc int64 `json:"finish_total_alloc,omitempty"`
}

func (RuntimeMemoryInformation) MarshalEasyJSON

func (v RuntimeMemoryInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RuntimeMemoryInformation) MarshalJSON

func (v RuntimeMemoryInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RuntimeMemoryInformation) UnmarshalEasyJSON

func (v *RuntimeMemoryInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RuntimeMemoryInformation) UnmarshalJSON

func (v *RuntimeMemoryInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Shape

type Shape struct {
	Dim []Dim `json:"dim"`
}

type Spans

type Spans []model.Span

func (Spans) Duration

func (spns Spans) Duration() []uint64

func (Spans) FilterByOperationName

func (spns Spans) FilterByOperationName(op string) Spans

func (Spans) FilterByOperationNameAndEvalTraceLevel

func (spns Spans) FilterByOperationNameAndEvalTraceLevel(op string, lvl string) Spans

func (Spans) MemoryInformation

func (spns Spans) MemoryInformation() []MemoryInformation

type SummaryBase

type SummaryBase struct {
	ID                       bson.ObjectId    `json:"id" bson:"_id"`
	CreatedAt                time.Time        `json:"created_at" bson:"created_at"`
	UpdatedAt                time.Time        `json:"updated_at" bson:"updated_at"`
	ModelName                string           `json:"model_name,omitempty"`
	ModelVersion             string           `json:"model_version,omitempty"`
	FrameworkName            string           `json:"framework_name,omitempty"`
	FrameworkVersion         string           `json:"framework_version,omitempty"`
	MachineArchitecture      string           `json:"machine_architecture,omitempty"`
	UsingGPU                 bool             `json:"using_gpu,omitempty"`
	BatchSize                int              `json:"batch_size,omitempty"`
	HostName                 string           `json:"host_name,omitempty"`
	HostIP                   string           `json:"host_ip,omitempty"`
	TraceLevel               string           `json:"trace_level,omitempty"`
	MachineInformation       *machine.Machine `json:"machine_information,omitempty"`
	GPUDriverVersion         *string          `json:"gpu_driver,omitempty"`
	GPUDevice                *int             `json:"gpu_device,omitempty"`
	GPUInformation           *nvidiasmi.GPU   `json:"gpu_information,omitempty"`
	InterconnectName         string           `json:"interconnect_name,omitempty"`
	TheoreticalGFlops        int64            `json:"theoretical_glops,omitempty"`
	MemoryBandwidth          float64          `json:"memory_bandwidth,omitempty"`
	IdealArithmeticIntensity float64          `json:"ideal_arithmetic_intensity,omitempty"`
	InterconnectBandwidth    float64          `json:"interconnect_bandwidth,omitempty"`
}

func (SummaryBase) FrameworkModel

func (s SummaryBase) FrameworkModel() string

func (SummaryBase) Header

func (SummaryBase) Header(opts ...writer.Option) []string

func (SummaryBase) MarshalEasyJSON

func (v SummaryBase) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryBase) MarshalJSON

func (v SummaryBase) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryBase) Row

func (s SummaryBase) Row(opts ...writer.Option) []string

func (*SummaryBase) UnmarshalEasyJSON

func (v *SummaryBase) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryBase) UnmarshalJSON

func (v *SummaryBase) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryEventFlow

type SummaryEventFlow struct {
	SummaryBase `json:",inline"`
	EventFlow   eventflow.Events `json:"event_flow,omitempty"`
}

func (SummaryEventFlow) Header

func (SummaryEventFlow) Header(opts ...writer.Option) []string

func (SummaryEventFlow) MarshalEasyJSON

func (v SummaryEventFlow) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryEventFlow) MarshalJSON

func (v SummaryEventFlow) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryEventFlow) Row

func (s SummaryEventFlow) Row(opts ...writer.Option) []string

func (*SummaryEventFlow) UnmarshalEasyJSON

func (v *SummaryEventFlow) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryEventFlow) UnmarshalJSON

func (v *SummaryEventFlow) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryEventFlows

type SummaryEventFlows []SummaryEventFlow

func (SummaryEventFlows) Header

func (SummaryEventFlows) Header(opts ...writer.Option) []string

func (SummaryEventFlows) Rows

func (s SummaryEventFlows) Rows(opts ...writer.Option) [][]string

type SummaryGPUKernelInformation

type SummaryGPUKernelInformation struct {
	Name                  string     `json:"name,omitempty"`
	MangledName           string     `json:"mangled_name,omitempty"`
	Durations             []int64    `json:"durations,omitempty"`
	Tags                  []Metadata `json:"tags,omitempty"`
	Logs                  []Metadata `json:"logs,omitempty"`
	CorrelationId         int64      `json:"correlation_id,omitempty"`
	MeanDuration          float64    `json:"mean_duration,omitempty"`
	MeanFlops             float64    `json:"mean_flops,omitempty"`
	MeanDramReadBytes     float64    `json:"mean_dram_read_bytes,omitempty"`
	MeanDramWriteBytes    float64    `json:"mean_dram_write_bytes,omitempty"`
	MeanAchievedOccupancy float64    `json:"mean_achieved_occupancy,omitempty"`
	ArithmeticIntensity   float64    `json:"arithmetic_intensity,omitempty"`
	ArithmeticThroughput  float64    `json:"arithmetic_throughput,omitempty"`
	MemoryBound           bool       `json:"memory_bound,omitempty"`
}

func CUDALaunchSpantoGPUInformation

func CUDALaunchSpantoGPUInformation(span model.Span) SummaryGPUKernelInformation

func GPUKernelSpantoGPUInformation

func GPUKernelSpantoGPUInformation(span model.Span) SummaryGPUKernelInformation

func (SummaryGPUKernelInformation) Header

func (info SummaryGPUKernelInformation) Header(opts ...writer.Option) []string

func (SummaryGPUKernelInformation) MarshalEasyJSON

func (v SummaryGPUKernelInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryGPUKernelInformation) MarshalJSON

func (v SummaryGPUKernelInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryGPUKernelInformation) Row

func (info SummaryGPUKernelInformation) Row(opts ...writer.Option) []string

func (*SummaryGPUKernelInformation) UnmarshalEasyJSON

func (v *SummaryGPUKernelInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryGPUKernelInformation) UnmarshalJSON

func (v *SummaryGPUKernelInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryGPUKernelInformations

type SummaryGPUKernelInformations []SummaryGPUKernelInformation

func (SummaryGPUKernelInformations) GetKernelLogKeys

func (infos SummaryGPUKernelInformations) GetKernelLogKeys() []string

func (SummaryGPUKernelInformations) Len

func (SummaryGPUKernelInformations) Less

func (p SummaryGPUKernelInformations) Less(i, j int) bool

func (SummaryGPUKernelInformations) Swap

func (p SummaryGPUKernelInformations) Swap(i, j int)

type SummaryGPUKernelLayerAchievedOccupancyInformations

type SummaryGPUKernelLayerAchievedOccupancyInformations SummaryGPUKernelLayerAggreInformations

func (SummaryGPUKernelLayerAchievedOccupancyInformations) BarPlot

func (SummaryGPUKernelLayerAchievedOccupancyInformations) BarPlotAdd

func (SummaryGPUKernelLayerAchievedOccupancyInformations) OpenBarPlot

func (SummaryGPUKernelLayerAchievedOccupancyInformations) PlotName

func (SummaryGPUKernelLayerAchievedOccupancyInformations) WriteBarPlot

type SummaryGPUKernelLayerAggreInformation

type SummaryGPUKernelLayerAggreInformation struct {
	SummaryLayerInformation `json:",inline"`
	GPUDuration             float64 `json:"gpu_duration,omitempty"`
	CPUDuration             float64 `json:"cpu_duration,omitempty"`
	Flops                   float64 `json:"flops,omitempty"`
	DramReadBytes           float64 `json:"dram_read_bytes,omitempty"`
	DramWriteBytes          float64 `json:"dram_write_bytes,omitempty"`
	AchievedOccupancy       float64 `json:"achieved_occupancy,omitempty"`
	ArithmeticIntensity     float64 `json:"arithmetic_intensity,omitempty"`
	ArithmeticThroughput    float64 `json:"arithmetic_throughput,omitempty"`
	MemoryBound             bool    `json:"memory_bound,omitempty"`
}

func (SummaryGPUKernelLayerAggreInformation) Header

func (SummaryGPUKernelLayerAggreInformation) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryGPUKernelLayerAggreInformation) MarshalJSON

func (v SummaryGPUKernelLayerAggreInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryGPUKernelLayerAggreInformation) Row

func (*SummaryGPUKernelLayerAggreInformation) UnmarshalEasyJSON

func (v *SummaryGPUKernelLayerAggreInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryGPUKernelLayerAggreInformation) UnmarshalJSON

func (v *SummaryGPUKernelLayerAggreInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryGPUKernelLayerAggreInformations

type SummaryGPUKernelLayerAggreInformations []SummaryGPUKernelLayerAggreInformation

func (SummaryGPUKernelLayerAggreInformations) Len

func (SummaryGPUKernelLayerAggreInformations) Less

func (SummaryGPUKernelLayerAggreInformations) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryGPUKernelLayerAggreInformations) MarshalJSON

func (v SummaryGPUKernelLayerAggreInformations) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryGPUKernelLayerAggreInformations) Swap

func (*SummaryGPUKernelLayerAggreInformations) UnmarshalEasyJSON

func (v *SummaryGPUKernelLayerAggreInformations) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryGPUKernelLayerAggreInformations) UnmarshalJSON

func (v *SummaryGPUKernelLayerAggreInformations) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryGPUKernelLayerDramReadInformations

type SummaryGPUKernelLayerDramReadInformations SummaryGPUKernelLayerAggreInformations

func (SummaryGPUKernelLayerDramReadInformations) BarPlot

func (SummaryGPUKernelLayerDramReadInformations) BarPlotAdd

func (SummaryGPUKernelLayerDramReadInformations) OpenBarPlot

func (SummaryGPUKernelLayerDramReadInformations) PlotName

func (SummaryGPUKernelLayerDramReadInformations) WriteBarPlot

type SummaryGPUKernelLayerDramWriteInformations

type SummaryGPUKernelLayerDramWriteInformations SummaryGPUKernelLayerAggreInformations

func (SummaryGPUKernelLayerDramWriteInformations) BarPlot

func (SummaryGPUKernelLayerDramWriteInformations) BarPlotAdd

func (SummaryGPUKernelLayerDramWriteInformations) OpenBarPlot

func (SummaryGPUKernelLayerDramWriteInformations) PlotName

func (SummaryGPUKernelLayerDramWriteInformations) WriteBarPlot

type SummaryGPUKernelLayerFlopsInformations

type SummaryGPUKernelLayerFlopsInformations SummaryGPUKernelLayerAggreInformations

func (SummaryGPUKernelLayerFlopsInformations) BarPlot

func (SummaryGPUKernelLayerFlopsInformations) BarPlotAdd

func (SummaryGPUKernelLayerFlopsInformations) OpenBarPlot

func (SummaryGPUKernelLayerFlopsInformations) PlotName

func (SummaryGPUKernelLayerFlopsInformations) WriteBarPlot

type SummaryGPUKernelLayerGPUCPUInformations

type SummaryGPUKernelLayerGPUCPUInformations SummaryGPUKernelLayerAggreInformations

func (SummaryGPUKernelLayerGPUCPUInformations) BarPlot

func (SummaryGPUKernelLayerGPUCPUInformations) BarPlotAdd

func (SummaryGPUKernelLayerGPUCPUInformations) OpenBarPlot

func (SummaryGPUKernelLayerGPUCPUInformations) PlotName

func (SummaryGPUKernelLayerGPUCPUInformations) WriteBarPlot

type SummaryGPUKernelLayerInformation

type SummaryGPUKernelLayerInformation struct {
	SummaryLayerInformation      `json:",inline"`
	SummaryGPUKernelInformations SummaryGPUKernelInformations `json:"kernel_launch_information,omitempty"`
}

func (SummaryGPUKernelLayerInformation) Len

func (SummaryGPUKernelLayerInformation) Less

func (SummaryGPUKernelLayerInformation) MarshalEasyJSON

func (v SummaryGPUKernelLayerInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryGPUKernelLayerInformation) MarshalJSON

func (v SummaryGPUKernelLayerInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryGPUKernelLayerInformation) Rows

func (info SummaryGPUKernelLayerInformation) Rows(iopts ...writer.Option) [][]string

Rows ...

func (SummaryGPUKernelLayerInformation) Swap

func (*SummaryGPUKernelLayerInformation) UnmarshalEasyJSON

func (v *SummaryGPUKernelLayerInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryGPUKernelLayerInformation) UnmarshalJSON

func (v *SummaryGPUKernelLayerInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryGPUKernelLayerInformations

type SummaryGPUKernelLayerInformations []SummaryGPUKernelLayerInformation

func (SummaryGPUKernelLayerInformations) GetKernelLogKeys

func (infos SummaryGPUKernelLayerInformations) GetKernelLogKeys() []string

func (SummaryGPUKernelLayerInformations) Header

func (infos SummaryGPUKernelLayerInformations) Header(opts ...writer.Option) []string

func (SummaryGPUKernelLayerInformations) Len

func (SummaryGPUKernelLayerInformations) Less

func (SummaryGPUKernelLayerInformations) Row

func (SummaryGPUKernelLayerInformations) Swap

type SummaryGPUKernelLayerLatencyInformations

type SummaryGPUKernelLayerLatencyInformations SummaryGPUKernelLayerAggreInformations

func (SummaryGPUKernelLayerLatencyInformations) BarPlot

func (SummaryGPUKernelLayerLatencyInformations) BarPlotAdd

func (SummaryGPUKernelLayerLatencyInformations) OpenBarPlot

func (SummaryGPUKernelLayerLatencyInformations) PlotName

func (SummaryGPUKernelLayerLatencyInformations) WriteBarPlot

type SummaryGPUKernelModelAggreInformation

type SummaryGPUKernelModelAggreInformation struct {
	SummaryModelInformation `json:",inline"`
	Duration                float64 `json:"gpu_duration,omitempty"`
	Flops                   float64 `json:"flops,omitempty"`
	DramReadBytes           float64 `json:"dram_read_bytes,omitempty"`
	DramWriteBytes          float64 `json:"dram_write_bytes,omitempty"`
	AchievedOccupancy       float64 `json:"achieved_occupancy,omitempty"`
	ArithmeticIntensity     float64 `json:"arithmetic_intensity,omitempty"`
	ArithmeticThroughput    float64 `json:"arithmetic_throughput,omitempty"`
	MemoryBound             bool    `json:"memory_bound,omitempty"`
}

func (SummaryGPUKernelModelAggreInformation) Header

func (SummaryGPUKernelModelAggreInformation) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryGPUKernelModelAggreInformation) MarshalJSON

func (v SummaryGPUKernelModelAggreInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryGPUKernelModelAggreInformation) Row

func (*SummaryGPUKernelModelAggreInformation) UnmarshalEasyJSON

func (v *SummaryGPUKernelModelAggreInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryGPUKernelModelAggreInformation) UnmarshalJSON

func (v *SummaryGPUKernelModelAggreInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryGPUKernelModelAggreInformations

type SummaryGPUKernelModelAggreInformations []SummaryGPUKernelModelAggreInformation

func (SummaryGPUKernelModelAggreInformations) Len

func (SummaryGPUKernelModelAggreInformations) Less

func (SummaryGPUKernelModelAggreInformations) Swap

type SummaryGPUKernelNameAggreInformation

type SummaryGPUKernelNameAggreInformation struct {
	SummaryModelInformation `json:",inline"`
	Name                    string  `json:"name,omitempty"`
	Count                   int     `json:"count,omitempty"`
	Duration                float64 `json:"gpu_duration,omitempty"`
	Flops                   float64 `json:"flops,omitempty"`
	DramReadBytes           float64 `json:"dram_read_bytes,omitempty"`
	DramWriteBytes          float64 `json:"dram_write_bytes,omitempty"`
	AchievedOccupancy       float64 `json:"achieved_occupancy,omitempty"`
	ArithmeticIntensity     float64 `json:"arithmetic_intensity,omitempty"`
	ArithmeticThroughput    float64 `json:"arithmetic_throughput,omitempty"`
	MemoryBound             bool    `json:"memory_bound,omitempty"`
}

func (SummaryGPUKernelNameAggreInformation) Header

func (SummaryGPUKernelNameAggreInformation) MarshalEasyJSON

func (v SummaryGPUKernelNameAggreInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryGPUKernelNameAggreInformation) MarshalJSON

func (v SummaryGPUKernelNameAggreInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryGPUKernelNameAggreInformation) Row

func (*SummaryGPUKernelNameAggreInformation) UnmarshalEasyJSON

func (v *SummaryGPUKernelNameAggreInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryGPUKernelNameAggreInformation) UnmarshalJSON

func (v *SummaryGPUKernelNameAggreInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryGPUKernelNameAggreInformations

type SummaryGPUKernelNameAggreInformations []SummaryGPUKernelNameAggreInformation

func (SummaryGPUKernelNameAggreInformations) Len

func (SummaryGPUKernelNameAggreInformations) Less

func (SummaryGPUKernelNameAggreInformations) Swap

type SummaryLayerAggreAllocatedMemoryInformations

type SummaryLayerAggreAllocatedMemoryInformations SummaryLayerAggreInformations

func (SummaryLayerAggreAllocatedMemoryInformations) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryLayerAggreAllocatedMemoryInformations) MarshalJSON

MarshalJSON supports json.Marshaler interface

func (SummaryLayerAggreAllocatedMemoryInformations) OpenPiePlot

func (SummaryLayerAggreAllocatedMemoryInformations) PiePlot

func (SummaryLayerAggreAllocatedMemoryInformations) PiePlotAdd

func (SummaryLayerAggreAllocatedMemoryInformations) PlotName

func (*SummaryLayerAggreAllocatedMemoryInformations) UnmarshalEasyJSON

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryLayerAggreAllocatedMemoryInformations) UnmarshalJSON

func (v *SummaryLayerAggreAllocatedMemoryInformations) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SummaryLayerAggreAllocatedMemoryInformations) WritePiePlot

type SummaryLayerAggreDurationInformations

type SummaryLayerAggreDurationInformations SummaryLayerAggreInformations

func (SummaryLayerAggreDurationInformations) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryLayerAggreDurationInformations) MarshalJSON

func (v SummaryLayerAggreDurationInformations) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryLayerAggreDurationInformations) OpenPiePlot

func (SummaryLayerAggreDurationInformations) PiePlot

func (SummaryLayerAggreDurationInformations) PiePlotAdd

func (SummaryLayerAggreDurationInformations) PlotName

func (*SummaryLayerAggreDurationInformations) UnmarshalEasyJSON

func (v *SummaryLayerAggreDurationInformations) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryLayerAggreDurationInformations) UnmarshalJSON

func (v *SummaryLayerAggreDurationInformations) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SummaryLayerAggreDurationInformations) WritePiePlot

func (o SummaryLayerAggreDurationInformations) WritePiePlot(path string) error

type SummaryLayerAggreInformation

type SummaryLayerAggreInformation struct {
	SummaryModelInformation   `json:",inline"`
	Type                      string  `json:"type,omitempty"`
	Occurence                 int     `json:"occurrence,omitempty"`
	OccurencePercentage       float64 `json:"occurrence_percentage,omitempty"`
	Duration                  float64 `json:"duration,omitempty"`
	DurationPercentage        float64 `json:"duration_percentage,omitempty"`
	AllocatedMemory           float64 `json:"allocated_memory,omitempty"`
	AllocatedMemoryPercentage float64 `json:"allocated_memory_percentage,omitempty"`
}

func (SummaryLayerAggreInformation) Header

func (SummaryLayerAggreInformation) Header(iopts ...writer.Option) []string

func (SummaryLayerAggreInformation) MarshalEasyJSON

func (v SummaryLayerAggreInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryLayerAggreInformation) MarshalJSON

func (v SummaryLayerAggreInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryLayerAggreInformation) Row

func (*SummaryLayerAggreInformation) UnmarshalEasyJSON

func (v *SummaryLayerAggreInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryLayerAggreInformation) UnmarshalJSON

func (v *SummaryLayerAggreInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryLayerAggreInformations

type SummaryLayerAggreInformations []SummaryLayerAggreInformation

func (SummaryLayerAggreInformations) MarshalEasyJSON

func (v SummaryLayerAggreInformations) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryLayerAggreInformations) MarshalJSON

func (v SummaryLayerAggreInformations) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SummaryLayerAggreInformations) UnmarshalEasyJSON

func (v *SummaryLayerAggreInformations) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryLayerAggreInformations) UnmarshalJSON

func (v *SummaryLayerAggreInformations) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryLayerAggreOccurrenceInformations

type SummaryLayerAggreOccurrenceInformations SummaryLayerAggreInformations

func (SummaryLayerAggreOccurrenceInformations) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryLayerAggreOccurrenceInformations) MarshalJSON

func (v SummaryLayerAggreOccurrenceInformations) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryLayerAggreOccurrenceInformations) OpenPiePlot

func (SummaryLayerAggreOccurrenceInformations) PiePlot

func (SummaryLayerAggreOccurrenceInformations) PiePlotAdd

func (SummaryLayerAggreOccurrenceInformations) PlotName

func (*SummaryLayerAggreOccurrenceInformations) UnmarshalEasyJSON

func (v *SummaryLayerAggreOccurrenceInformations) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryLayerAggreOccurrenceInformations) UnmarshalJSON

func (v *SummaryLayerAggreOccurrenceInformations) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SummaryLayerAggreOccurrenceInformations) WritePiePlot

type SummaryLayerAllocatedMemoryInformations

type SummaryLayerAllocatedMemoryInformations SummaryLayerInformations

func (SummaryLayerAllocatedMemoryInformations) BarPlot

func (SummaryLayerAllocatedMemoryInformations) BarPlotAdd

func (SummaryLayerAllocatedMemoryInformations) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryLayerAllocatedMemoryInformations) MarshalJSON

func (v SummaryLayerAllocatedMemoryInformations) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryLayerAllocatedMemoryInformations) OpenBarPlot

func (SummaryLayerAllocatedMemoryInformations) PlotName

func (*SummaryLayerAllocatedMemoryInformations) UnmarshalEasyJSON

func (v *SummaryLayerAllocatedMemoryInformations) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryLayerAllocatedMemoryInformations) UnmarshalJSON

func (v *SummaryLayerAllocatedMemoryInformations) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SummaryLayerAllocatedMemoryInformations) WriteBarPlot

type SummaryLayerInformation

type SummaryLayerInformation struct {
	SummaryModelInformation  `json:",inline"`
	Index                    int     `json:"index,omitempty"`
	Name                     string  `json:"layer_name,omitempty"`
	Type                     string  `json:"type,omitempty"`
	StaticType               string  `json:"static_type,omitempty"`
	Shape                    string  `json:"shap,omitempty"`
	Duration                 float64 `json:"mean_duration,omitempty"`
	Durations                []int64 `json:"durations,omitempty"`
	AllocatedBytes           []int64 `json:"allocated_bytes,omitempty"`      // Total number of bytes allocated if known
	PeakAllocatedBytes       []int64 `json:"peak_allocated_bytes,omitempty"` // Total number of ebytes allocated if known
	AllocatorBytesInUse      []int64 `json:"allocator_bytes_in_use,omitempty"`
	AllocatorName            string  `json:"allocator_name,omitempty"` // Name of the allocator used
	HostTempMemSizes         []int64 `json:"host_temp_mem_bytess,omitempty"`
	DeviceTempMemSizes       []int64 `json:"device_temp_mem_bytess,omitempty"`
	HostPersistentMemSizes   []int64 `json:"host_persistent_mem_bytess,omitempty"`
	DevicePersistentMemSizes []int64 `json:"device_persistent_mem_bytess,omitempty"`
}

func (SummaryLayerInformation) Header

func (SummaryLayerInformation) Header(iopts ...writer.Option) []string

func (SummaryLayerInformation) MarshalEasyJSON

func (v SummaryLayerInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryLayerInformation) MarshalJSON

func (v SummaryLayerInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryLayerInformation) Row

func (s SummaryLayerInformation) Row(iopts ...writer.Option) []string

func (*SummaryLayerInformation) UnmarshalEasyJSON

func (v *SummaryLayerInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryLayerInformation) UnmarshalJSON

func (v *SummaryLayerInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryLayerInformations

type SummaryLayerInformations []SummaryLayerInformation

func (SummaryLayerInformations) GetLayerInfoByName

func (s SummaryLayerInformations) GetLayerInfoByName(name string) SummaryLayerInformation

func (SummaryLayerInformations) MarshalEasyJSON

func (v SummaryLayerInformations) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryLayerInformations) MarshalJSON

func (v SummaryLayerInformations) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SummaryLayerInformations) UnmarshalEasyJSON

func (v *SummaryLayerInformations) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryLayerInformations) UnmarshalJSON

func (v *SummaryLayerInformations) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryLayerLatencyInformations

type SummaryLayerLatencyInformations SummaryLayerInformations

func (SummaryLayerLatencyInformations) BarPlot

func (SummaryLayerLatencyInformations) BarPlotAdd

func (o SummaryLayerLatencyInformations) BarPlotAdd(bar0 *charts.Bar) *charts.Bar

func (SummaryLayerLatencyInformations) BoxPlot

func (SummaryLayerLatencyInformations) BoxPlotAdd

func (SummaryLayerLatencyInformations) MarshalEasyJSON

func (v SummaryLayerLatencyInformations) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryLayerLatencyInformations) MarshalJSON

func (v SummaryLayerLatencyInformations) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryLayerLatencyInformations) OpenBarPlot

func (o SummaryLayerLatencyInformations) OpenBarPlot() error

func (SummaryLayerLatencyInformations) OpenBoxPlot

func (o SummaryLayerLatencyInformations) OpenBoxPlot() error

func (SummaryLayerLatencyInformations) PlotName

func (*SummaryLayerLatencyInformations) UnmarshalEasyJSON

func (v *SummaryLayerLatencyInformations) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryLayerLatencyInformations) UnmarshalJSON

func (v *SummaryLayerLatencyInformations) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SummaryLayerLatencyInformations) WriteBarPlot

func (o SummaryLayerLatencyInformations) WriteBarPlot(path string) error

func (SummaryLayerLatencyInformations) WriteBoxPlot

func (o SummaryLayerLatencyInformations) WriteBoxPlot(path string) error

type SummaryMeanLayerInformation

type SummaryMeanLayerInformation SummaryLayerInformation

func (SummaryMeanLayerInformation) Header

func (s SummaryMeanLayerInformation) Header(opts ...writer.Option) []string

func (SummaryMeanLayerInformation) MarshalEasyJSON

func (v SummaryMeanLayerInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryMeanLayerInformation) MarshalJSON

func (v SummaryMeanLayerInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryMeanLayerInformation) Row

func (*SummaryMeanLayerInformation) UnmarshalEasyJSON

func (v *SummaryMeanLayerInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryMeanLayerInformation) UnmarshalJSON

func (v *SummaryMeanLayerInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryMemoryInformation

type SummaryMemoryInformation struct {
	SummaryBase        `json:",inline"`
	MemoryInformations []MemoryInformation `json:"memory_informations,omitempty"`
}

func (SummaryMemoryInformation) MarshalEasyJSON

func (v SummaryMemoryInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryMemoryInformation) MarshalJSON

func (v SummaryMemoryInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SummaryMemoryInformation) UnmarshalEasyJSON

func (v *SummaryMemoryInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryMemoryInformation) UnmarshalJSON

func (v *SummaryMemoryInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryModelAccuracyInformation

type SummaryModelAccuracyInformation struct {
	SummaryBase  `json:",inline"`
	Top1Accuracy float64 `json:"top1_accuracy,omitempty"`
	Top5Accuracy float64 `json:"top5_accuracy,omitempty"`
}

func (SummaryModelAccuracyInformation) Header

func (SummaryModelAccuracyInformation) MarshalEasyJSON

func (v SummaryModelAccuracyInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryModelAccuracyInformation) MarshalJSON

func (v SummaryModelAccuracyInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryModelAccuracyInformation) Row

func (*SummaryModelAccuracyInformation) UnmarshalEasyJSON

func (v *SummaryModelAccuracyInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryModelAccuracyInformation) UnmarshalJSON

func (v *SummaryModelAccuracyInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryModelAccuracyInformations

type SummaryModelAccuracyInformations []SummaryModelAccuracyInformation

func (SummaryModelAccuracyInformations) Group

func (SummaryModelAccuracyInformations) Header

func (SummaryModelAccuracyInformations) Rows

type SummaryModelInformation

type SummaryModelInformation struct {
	SummaryBase `json:",inline,omitempty"`
	Durations   []int64 `json:"durations,omitempty"`
	Duration    float64 `json:"duration,omitempty"`
	Latency     float64 `json:"latency,omitempty"`
	Throughput  float64 `json:"throughput,omitempty"`
}

func (SummaryModelInformation) Header

func (SummaryModelInformation) Header(opts ...writer.Option) []string

func (SummaryModelInformation) MarshalEasyJSON

func (v SummaryModelInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SummaryModelInformation) MarshalJSON

func (v SummaryModelInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (SummaryModelInformation) Row

func (s SummaryModelInformation) Row(opts ...writer.Option) []string

func (*SummaryModelInformation) UnmarshalEasyJSON

func (v *SummaryModelInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SummaryModelInformation) UnmarshalJSON

func (v *SummaryModelInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SummaryModelInformations

type SummaryModelInformations []SummaryModelInformation

func (SummaryModelInformations) Len

func (p SummaryModelInformations) Len() int

func (SummaryModelInformations) Less

func (p SummaryModelInformations) Less(i, j int) bool

func (SummaryModelInformations) Swap

func (p SummaryModelInformations) Swap(i, j int)

type SummaryModelInformationsSelector

type SummaryModelInformationsSelector func(elem SummaryModelInformation) float64

type SummaryModelLatencyInformations

type SummaryModelLatencyInformations SummaryModelInformations

func (SummaryModelLatencyInformations) BarPlot

func (SummaryModelLatencyInformations) BarPlotAdd

func (o SummaryModelLatencyInformations) BarPlotAdd(bar0 *charts.Bar) *charts.Bar

func (SummaryModelLatencyInformations) OpenBarPlot

func (o SummaryModelLatencyInformations) OpenBarPlot() error

func (SummaryModelLatencyInformations) PlotName

func (SummaryModelLatencyInformations) WriteBarPlot

func (o SummaryModelLatencyInformations) WriteBarPlot(path string) error

type SummaryModelThroughputInformations

type SummaryModelThroughputInformations SummaryModelInformations

func (SummaryModelThroughputInformations) BarPlot

func (SummaryModelThroughputInformations) BarPlotAdd

func (SummaryModelThroughputInformations) OpenBarPlot

func (o SummaryModelThroughputInformations) OpenBarPlot() error

func (SummaryModelThroughputInformations) PlotName

func (SummaryModelThroughputInformations) WriteBarPlot

func (o SummaryModelThroughputInformations) WriteBarPlot(path string) error

type SystemMemoryInformation

type SystemMemoryInformation struct {
	StartAvailable int64 `json:"start_available,omitempty"`
	StartFree      int64 `json:"start_free,omitempty"`
	StartTotal     int64 `json:"start_total,omitempty"`

	FinishAvailable int64 `json:"finish_available,omitempty"`
	FinishFree      int64 `json:"finish_free,omitempty"`
	FinishTotal     int64 `json:"finish_total,omitempty"`
}

func (SystemMemoryInformation) MarshalEasyJSON

func (v SystemMemoryInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SystemMemoryInformation) MarshalJSON

func (v SystemMemoryInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SystemMemoryInformation) UnmarshalEasyJSON

func (v *SystemMemoryInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SystemMemoryInformation) UnmarshalJSON

func (v *SystemMemoryInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TensorDescription

type TensorDescription struct {
	Dtype                 int                   `json:"dtype"`
	Shape                 Shape                 `json:"shape"`
	AllocationDescription AllocationDescription `json:"allocation_description"`
}

type TensorFlowAllocatorMemoryUsed

type TensorFlowAllocatorMemoryUsed struct {
	AllocatorName       string              `json:"allocator_name"`
	TotalBytes          int                 `json:"total_bytes"`
	PeakBytes           int                 `json:"peak_bytes"`
	LiveBytes           int                 `json:"live_bytes"`
	AllocationRecords   []AllocationRecords `json:"allocation_records"`
	AllocatorBytesInUse int                 `json:"allocator_bytes_in_use"`
}

type TensorFlowTagOutput

type TensorFlowTagOutput struct {
	TensorDescription TensorDescription `json:"tensor_description"`
}

type TraceInformation

type TraceInformation struct {
	Traces []model.Trace     `bson:"data,omitempty" json:"data,omitempty"`
	Total  int               `bson:"total,omitempty" json:"total,omitempty"`
	Limit  int               `bson:"limit,omitempty" json:"limit,omitempty"`
	Offset int               `bson:"offset,omitempty" json:"offset,omitempty"`
	Errors []structuredError `bson:"errors,omitempty" json:"errors,omitempty"`
}

func (TraceInformation) MarshalEasyJSON

func (v TraceInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TraceInformation) MarshalJSON

func (v TraceInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (TraceInformation) Spans

func (info TraceInformation) Spans() Spans

func (*TraceInformation) UnmarshalEasyJSON

func (v *TraceInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TraceInformation) UnmarshalJSON

func (v *TraceInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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