forked from rai-project/caffe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
register.go
39 lines (34 loc) · 893 Bytes
/
register.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package caffe
import (
"os"
assetfs "github.com/elazarl/go-bindata-assetfs"
"github.com/c3sr/dlframework"
"github.com/c3sr/dlframework/framework"
)
// FrameworkManifest ...
var FrameworkManifest = dlframework.FrameworkManifest{
Name: "Caffe",
Version: "1.0",
Container: map[string]*dlframework.ContainerHardware{
"amd64": {
Cpu: "raiproject/carml-caffe:amd64-cpu",
Gpu: "raiproject/carml-caffe:amd64-gpu",
},
"ppc64le": {
Cpu: "raiproject/carml-caffe:ppc64le-gpu",
Gpu: "raiproject/carml-caffe:ppc64le-gpu",
},
},
}
func assetFS() *assetfs.AssetFS {
assetInfo := func(path string) (os.FileInfo, error) {
return os.Stat(path)
}
for k := range _bintree.Children {
return &assetfs.AssetFS{Asset: Asset, AssetDir: AssetDir, AssetInfo: assetInfo, Prefix: k}
}
panic("unreachable")
}
func Register() {
framework.Register(FrameworkManifest, assetFS())
}