io

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0, MIT Imports: 8 Imported by: 1

Documentation

Overview

Package io contains utilities to save and load models. It doesn't include any actual model type support by default. Consider using instead the subpackage `canonical` that includes the canonical (standard) model types support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectFilePrefix

func DetectFilePrefix(modelPath string) (string, error)

DetectFilePrefix detect the prefix of the model. This function is similar as "DetectFilePrefix" in `model_library.cc`.

func LoadModel

func LoadModel(modelPath string) (model.Model, error)

LoadModel loads a model from disk.

func LoadModelWithPrefix

func LoadModelWithPrefix(modelPath string, prefix string) (model.Model, error)

LoadModelWithPrefix loads a model with a prefix from disk.

The "prefix" is a string append to the name of all the files in the model. Using a prefix make it possible to store multiple models in the same directory without sub-directories. Models created by TensorFlow Decision Forests generally have prefix.

Types

This section is empty.

Directories

Path Synopsis
Package canonical is an alias for the `model/io` package that also links all the canonical model support along.
Package canonical is an alias for the `model/io` package that also links all the canonical model support along.

Jump to

Keyboard shortcuts

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