go-ml.dev/pkg/base@v0.0.0-20200610162856-60c38abac71b/fu/path.go (about)

     1  package fu
     2  
     3  import (
     4  	"go-ml.dev/pkg/iokit"
     5  	"path/filepath"
     6  )
     7  
     8  func ModelPath(s string) string {
     9  	if filepath.IsAbs(s) {
    10  		return s
    11  	}
    12  	return iokit.CacheFile(filepath.Join("go-ml", "Models", s))
    13  }