Help us shape the future of Go! Take the 2026 Go Developer Survey

tools

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

README

Mly tools (v1)

Provided in setup and run assistance.

System Installation

git clone https://github.com/viant/mly.git
( cd mly/tools/mly
  go build
  cp -v mlytool /usr/local/bin/mly )

Usage

mly -h

Exporting layers

mly -m=discover -s=~/model/ -d=layers.json -o=layers

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discover

func Discover(options *Options) error

func DiscoverConfig added in v0.5.0

func DiscoverConfig(sourceURL string, model *tf.SavedModel, writer io.Writer) error

func DiscoverDictHash added in v0.5.0

func DiscoverDictHash(model *tf.SavedModel, writer io.Writer) error

func DiscoverSignature added in v0.5.0

func DiscoverSignature(writer io.Writer, signature *domain.Signature) error

func FetchDictHash deprecated added in v0.5.0

func FetchDictHash(writer io.Writer, sourceURL string, fs afs.Service) error

Deprecated: FetchDictHash is used to inspect dictionary data from a meta URL, which is no longer a supported feature.

func GenerateTable added in v0.5.0

func GenerateTable(w io.Writer, single bool, signature *domain.Signature) error

func GetWriter added in v0.5.0

func GetWriter(destURL string, fs afs.Service) (io.WriteCloser, error)

func LoadModel added in v0.5.0

func LoadModel(ctx context.Context, URL string) (*tf.SavedModel, error)

func Run

func Run(args []string)

Types

type Options

type Options struct {
	Mode      string `short:"m" long:"mode" choice:"discover" choice:"run" description:"mode"`
	Operation string `short:"o" long:"opt" choice:"dictHash" choice:"signature" choice:"layers" choice:"config"`
	SourceURL string `short:"s" long:"src" description:"source location, required by all opt where mode=discover"`
	DestURL   string `short:"d" long:"dest" description:"dest location, required if opt=layers"`
	ConfigURL string `short:"c" long:"config" description:"required if mode=run"`
}

func (Options) Validate

func (o Options) Validate() error

Directories

Path Synopsis
cmd command
testcmd command

Jump to

Keyboard shortcuts

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