util

package
v0.0.0-...-2fe1034 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgParser

type ArgParser struct {
	// contains filtered or unexported fields
}

func NewArgParser

func NewArgParser() *ArgParser

func (*ArgParser) Args

func (p *ArgParser) Args() []interface{}

func (*ArgParser) Backend

func (p *ArgParser) Backend() string

func (*ArgParser) BatchSize

func (p *ArgParser) BatchSize() int

func (*ArgParser) DataDir

func (p *ArgParser) DataDir() string

func (*ArgParser) Epochs

func (p *ArgParser) Epochs() int

func (*ArgParser) Init

func (p *ArgParser) Init()

func (*ArgParser) Output

func (p *ArgParser) Output() string

func (*ArgParser) Parse

func (p *ArgParser) Parse()

type Engine

type Engine struct {
	base.ObjectBase
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(args ...interface{}) *Engine

func (*Engine) Backend

func (e *Engine) Backend() string

func (*Engine) BatchSize

func (e *Engine) BatchSize() int

func (*Engine) Be

func (e *Engine) Be() generators.Generator

func (*Engine) ClassName

func (e *Engine) ClassName() string

func (*Engine) DataDir

func (e *Engine) DataDir() string

func (*Engine) Display

func (e *Engine) Display(format string, args ...interface{})

func (*Engine) Epochs

func (e *Engine) Epochs() int

func (*Engine) Init

func (e *Engine) Init(self base.Object, args base.Args)

func (*Engine) Output

func (e *Engine) Output() string

func (*Engine) Run

func (e *Engine) Run(mainFunc MainFunc)

type MainFunc

type MainFunc func(engine *Engine)

Jump to

Keyboard shortcuts

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