Documentation
¶
Index ¶
- func Discover(options *Options) error
- func DiscoverConfig(sourceURL string, model *tf.SavedModel, writer io.Writer) error
- func DiscoverDictHash(model *tf.SavedModel, writer io.Writer) error
- func DiscoverSignature(writer io.Writer, signature *domain.Signature) error
- func FetchDictHash(writer io.Writer, sourceURL string, fs afs.Service) errordeprecated
- func GenerateTable(w io.Writer, single bool, signature *domain.Signature) error
- func GetWriter(destURL string, fs afs.Service) (io.WriteCloser, error)
- func LoadModel(ctx context.Context, URL string) (*tf.SavedModel, error)
- func Run(args []string)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverConfig ¶ added in v0.5.0
func DiscoverDictHash ¶ added in v0.5.0
func DiscoverDictHash(model *tf.SavedModel, writer io.Writer) error
func DiscoverSignature ¶ added in v0.5.0
func GenerateTable ¶ added in v0.5.0
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"` }
Click to show internal directories.
Click to hide internal directories.