Documentation ¶
Index ¶
- Variables
- func NewBatchPlot(name string, os ...OptionModifier) (*batchPlot, error)
- func ReadTraceFile(path string) ([]model.Span, error)
- type EligiblebatchDurationSummaryFilterFunc
- type OptionModifier
- type OptionModifiers
- func (o OptionModifiers) BaseDir(dir string) OptionModifier
- func (o OptionModifiers) BatchSize(val int) OptionModifier
- func (o OptionModifiers) FrameworkName(s string) OptionModifier
- func (o OptionModifiers) FrameworkVersion(s string) OptionModifier
- func (o OptionModifiers) IgnoreReadErrors(val bool) OptionModifier
- func (o OptionModifiers) MachineHostName(hostName string) OptionModifier
- func (o OptionModifiers) ModelName(s string) OptionModifier
- func (o OptionModifiers) ModelVersion(s string) OptionModifier
- func (o OptionModifiers) UseGPU(val bool) OptionModifier
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var Option = OptionModifiers{}
Functions ¶
func NewBatchPlot ¶
func NewBatchPlot(name string, os ...OptionModifier) (*batchPlot, error)
Types ¶
type EligiblebatchDurationSummaryFilterFunc ¶
type EligiblebatchDurationSummaryFilterFunc func(item batchDurationSummary) bool
type OptionModifier ¶
type OptionModifier func(o *Options)
type OptionModifiers ¶
type OptionModifiers struct{}
func (OptionModifiers) BaseDir ¶
func (o OptionModifiers) BaseDir(dir string) OptionModifier
func (OptionModifiers) BatchSize ¶
func (o OptionModifiers) BatchSize(val int) OptionModifier
func (OptionModifiers) FrameworkName ¶
func (o OptionModifiers) FrameworkName(s string) OptionModifier
func (OptionModifiers) FrameworkVersion ¶
func (o OptionModifiers) FrameworkVersion(s string) OptionModifier
func (OptionModifiers) IgnoreReadErrors ¶
func (o OptionModifiers) IgnoreReadErrors(val bool) OptionModifier
func (OptionModifiers) MachineHostName ¶
func (o OptionModifiers) MachineHostName(hostName string) OptionModifier
func (OptionModifiers) ModelName ¶
func (o OptionModifiers) ModelName(s string) OptionModifier
func (OptionModifiers) ModelVersion ¶
func (o OptionModifiers) ModelVersion(s string) OptionModifier
func (OptionModifiers) UseGPU ¶
func (o OptionModifiers) UseGPU(val bool) OptionModifier
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions(os ...OptionModifier) *Options
Click to show internal directories.
Click to hide internal directories.