Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AllCmds = []*cobra.Command{
modelCmd,
layerCmd,
gpuKernelCmd,
eventflowCmd,
}
)
View Source
var EvaluationCmd = &cobra.Command{ Use: "evaluation", Short: "Get various information about the evaluation", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { fmt.Println("Running " + cmd.Name()) return nil }, PersistentPostRunE: func(cmd *cobra.Command, args []string) error { safeClose := func(cls ...io.Closer) { for _, c := range cls { if c == nil { return } c.Close() } } safeClose( evaluationCollection, performanceCollection, inputPredictionCollection, modelAccuracyCollection, divergenceCollection, db, ) return nil }, }
Functions ¶
func TempFile ¶
TempFile creates a new temporary file in the directory dir, opens the file for reading and writing, and returns the resulting *os.File. The filename is generated by taking pattern and adding a random string to the end. If pattern includes a "*", the random string replaces the last "*". If dir is the empty string, TempFile uses the default directory for temporary files (see os.TempDir). Multiple programs calling TempFile simultaneously will not choose the same file. The caller can use f.Name() to find the pathname of the file. It is the caller's responsibility to remove the file when no longer needed.
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.