Documentation ¶
Index ¶
- Variables
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func MustAsset(name string) []byte
- func Register()
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type Graph
- func (*Graph) Descriptor() ([]byte, []int)
- func (this *Graph) Equal(that interface{}) bool
- func (m *Graph) GetArgNodes() []int64
- func (m *Graph) GetAttrs() *Graph_Attributes
- func (m *Graph) GetHeads() []*Graph_NodeEntry
- func (m *Graph) GetNodeRowPtr() []int64
- func (m *Graph) GetNodes() []*Graph_Node
- func (this *Graph) GoString() string
- func (m *Graph) Marshal() (dAtA []byte, err error)
- func (m *Graph) MarshalTo(dAtA []byte) (int, error)
- func (*Graph) ProtoMessage()
- func (m *Graph) Reset()
- func (m *Graph) Size() (n int)
- func (this *Graph) String() string
- func (g *Graph) ToDotGraph() (*gographviz.Escape, error)
- func (m *Graph) Unmarshal(dAtA []byte) error
- func (this *Graph) VerboseEqual(that interface{}) error
- func (m *Graph) XXX_DiscardUnknown()
- func (m *Graph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Graph) XXX_Merge(src proto.Message)
- func (m *Graph) XXX_Size() int
- func (m *Graph) XXX_Unmarshal(b []byte) error
- type Graph_Attributes
- func (*Graph_Attributes) Descriptor() ([]byte, []int)
- func (this *Graph_Attributes) Equal(that interface{}) bool
- func (m *Graph_Attributes) GetAttrs() map[string]string
- func (this *Graph_Attributes) GoString() string
- func (m *Graph_Attributes) Marshal() (dAtA []byte, err error)
- func (m *Graph_Attributes) MarshalTo(dAtA []byte) (int, error)
- func (*Graph_Attributes) ProtoMessage()
- func (m *Graph_Attributes) Reset()
- func (m *Graph_Attributes) Size() (n int)
- func (this *Graph_Attributes) String() string
- func (m *Graph_Attributes) Unmarshal(dAtA []byte) error
- func (this *Graph_Attributes) VerboseEqual(that interface{}) error
- func (m *Graph_Attributes) XXX_DiscardUnknown()
- func (m *Graph_Attributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Graph_Attributes) XXX_Merge(src proto.Message)
- func (m *Graph_Attributes) XXX_Size() int
- func (m *Graph_Attributes) XXX_Unmarshal(b []byte) error
- type Graph_Node
- func (*Graph_Node) Descriptor() ([]byte, []int)
- func (this *Graph_Node) Equal(that interface{}) bool
- func (m *Graph_Node) GetBackwardSourceId() int64
- func (m *Graph_Node) GetControlDeps() []int64
- func (m *Graph_Node) GetInputs() []*Graph_NodeEntry
- func (m *Graph_Node) GetName() string
- func (m *Graph_Node) GetOp() string
- func (m *Graph_Node) GetParam() map[string]string
- func (this *Graph_Node) GoString() string
- func (m *Graph_Node) Marshal() (dAtA []byte, err error)
- func (m *Graph_Node) MarshalTo(dAtA []byte) (int, error)
- func (*Graph_Node) ProtoMessage()
- func (m *Graph_Node) Reset()
- func (m *Graph_Node) Size() (n int)
- func (this *Graph_Node) String() string
- func (m *Graph_Node) Unmarshal(dAtA []byte) error
- func (this *Graph_Node) VerboseEqual(that interface{}) error
- func (m *Graph_Node) XXX_DiscardUnknown()
- func (m *Graph_Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Graph_Node) XXX_Merge(src proto.Message)
- func (m *Graph_Node) XXX_Size() int
- func (m *Graph_Node) XXX_Unmarshal(b []byte) error
- type Graph_NodeEntry
- func (*Graph_NodeEntry) Descriptor() ([]byte, []int)
- func (this *Graph_NodeEntry) Equal(that interface{}) bool
- func (m *Graph_NodeEntry) GetIndex() int64
- func (m *Graph_NodeEntry) GetNodeId() int64
- func (m *Graph_NodeEntry) GetVersion() int64
- func (this *Graph_NodeEntry) GoString() string
- func (m *Graph_NodeEntry) Marshal() (dAtA []byte, err error)
- func (e *Graph_NodeEntry) MarshalJSON() ([]byte, error)
- func (m *Graph_NodeEntry) MarshalTo(dAtA []byte) (int, error)
- func (*Graph_NodeEntry) ProtoMessage()
- func (m *Graph_NodeEntry) Reset()
- func (m *Graph_NodeEntry) Size() (n int)
- func (this *Graph_NodeEntry) String() string
- func (m *Graph_NodeEntry) Unmarshal(dAtA []byte) error
- func (e *Graph_NodeEntry) UnmarshalJSON(b []byte) error
- func (this *Graph_NodeEntry) VerboseEqual(that interface{}) error
- func (m *Graph_NodeEntry) XXX_DiscardUnknown()
- func (m *Graph_NodeEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Graph_NodeEntry) XXX_Merge(src proto.Message)
- func (m *Graph_NodeEntry) XXX_Size() int
- func (m *Graph_NodeEntry) XXX_Unmarshal(b []byte) error
- type ModelGraphAttributes
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthMxnet = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMxnet = fmt.Errorf("proto: integer overflow") )
var ( Version = "0.3.0" BuildDate = "undefined" GitCommit = "undefined" )
var FrameworkManifest = dlframework.FrameworkManifest{ Name: "MXNet", Version: "1.4.0", Container: map[string]*dlframework.ContainerHardware{ "amd64": { Cpu: "raiproject/carml-mxnet:amd64-cpu", Gpu: "raiproject/carml-mxnet:amd64-gpu", }, "ppc64le": { Cpu: "raiproject/carml-mxnet:ppc64le-gpu", Gpu: "raiproject/carml-mxnet:ppc64le-gpu", }, }, }
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type Graph ¶
type Graph struct { Nodes []*Graph_Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty" yaml:"nodes,omitempty"` ArgNodes []int64 `protobuf:"varint,2,rep,packed,name=arg_nodes,json=argNodes,proto3" json:"arg_nodes,omitempty" yaml:"arg_nodes,omitempty"` NodeRowPtr []int64 `` /* 131-byte string literal not displayed */ Heads []*Graph_NodeEntry `protobuf:"bytes,4,rep,name=heads,proto3" json:"heads,omitempty" yaml:"heads,omitempty"` Attrs *Graph_Attributes `protobuf:"bytes,5,opt,name=attrs,proto3" json:"attrs,omitempty" yaml:"attrs,omitempty"` }
func NewPopulatedGraph ¶
func (*Graph) Descriptor ¶
func (*Graph) GetArgNodes ¶
func (*Graph) GetAttrs ¶
func (m *Graph) GetAttrs() *Graph_Attributes
func (*Graph) GetHeads ¶
func (m *Graph) GetHeads() []*Graph_NodeEntry
func (*Graph) GetNodeRowPtr ¶
func (*Graph) GetNodes ¶
func (m *Graph) GetNodes() []*Graph_Node
func (*Graph) ProtoMessage ¶
func (*Graph) ProtoMessage()
func (*Graph) ToDotGraph ¶
func (g *Graph) ToDotGraph() (*gographviz.Escape, error)
func (*Graph) VerboseEqual ¶
func (*Graph) XXX_DiscardUnknown ¶
func (m *Graph) XXX_DiscardUnknown()
func (*Graph) XXX_Marshal ¶
func (*Graph) XXX_Unmarshal ¶
type Graph_Attributes ¶
type Graph_Attributes struct {
Attrs map[string]string `` /* 174-byte string literal not displayed */
}
func NewPopulatedGraph_Attributes ¶
func NewPopulatedGraph_Attributes(r randyMxnet, easy bool) *Graph_Attributes
func (*Graph_Attributes) Descriptor ¶
func (*Graph_Attributes) Descriptor() ([]byte, []int)
func (*Graph_Attributes) Equal ¶
func (this *Graph_Attributes) Equal(that interface{}) bool
func (*Graph_Attributes) GetAttrs ¶
func (m *Graph_Attributes) GetAttrs() map[string]string
func (*Graph_Attributes) GoString ¶
func (this *Graph_Attributes) GoString() string
func (*Graph_Attributes) Marshal ¶
func (m *Graph_Attributes) Marshal() (dAtA []byte, err error)
func (*Graph_Attributes) ProtoMessage ¶
func (*Graph_Attributes) ProtoMessage()
func (*Graph_Attributes) Reset ¶
func (m *Graph_Attributes) Reset()
func (*Graph_Attributes) Size ¶
func (m *Graph_Attributes) Size() (n int)
func (*Graph_Attributes) String ¶
func (this *Graph_Attributes) String() string
func (*Graph_Attributes) Unmarshal ¶
func (m *Graph_Attributes) Unmarshal(dAtA []byte) error
func (*Graph_Attributes) VerboseEqual ¶
func (this *Graph_Attributes) VerboseEqual(that interface{}) error
func (*Graph_Attributes) XXX_DiscardUnknown ¶
func (m *Graph_Attributes) XXX_DiscardUnknown()
func (*Graph_Attributes) XXX_Marshal ¶
func (m *Graph_Attributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Graph_Attributes) XXX_Merge ¶
func (m *Graph_Attributes) XXX_Merge(src proto.Message)
func (*Graph_Attributes) XXX_Size ¶
func (m *Graph_Attributes) XXX_Size() int
func (*Graph_Attributes) XXX_Unmarshal ¶
func (m *Graph_Attributes) XXX_Unmarshal(b []byte) error
type Graph_Node ¶
type Graph_Node struct { Op string `protobuf:"bytes,1,opt,name=op,proto3" json:"op,omitempty" yaml:"op,omitempty"` Param map[string]string `` /* 175-byte string literal not displayed */ Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name,omitempty"` Inputs []*Graph_NodeEntry `protobuf:"bytes,4,rep,name=inputs,proto3" json:"inputs,omitempty" yaml:"inputs,omitempty"` BackwardSourceId int64 `` /* 148-byte string literal not displayed */ ControlDeps []int64 `` /* 132-byte string literal not displayed */ }
func NewPopulatedGraph_Node ¶
func NewPopulatedGraph_Node(r randyMxnet, easy bool) *Graph_Node
func (*Graph_Node) Descriptor ¶
func (*Graph_Node) Descriptor() ([]byte, []int)
func (*Graph_Node) Equal ¶
func (this *Graph_Node) Equal(that interface{}) bool
func (*Graph_Node) GetBackwardSourceId ¶
func (m *Graph_Node) GetBackwardSourceId() int64
func (*Graph_Node) GetControlDeps ¶
func (m *Graph_Node) GetControlDeps() []int64
func (*Graph_Node) GetInputs ¶
func (m *Graph_Node) GetInputs() []*Graph_NodeEntry
func (*Graph_Node) GetName ¶
func (m *Graph_Node) GetName() string
func (*Graph_Node) GetOp ¶
func (m *Graph_Node) GetOp() string
func (*Graph_Node) GetParam ¶
func (m *Graph_Node) GetParam() map[string]string
func (*Graph_Node) GoString ¶
func (this *Graph_Node) GoString() string
func (*Graph_Node) Marshal ¶
func (m *Graph_Node) Marshal() (dAtA []byte, err error)
func (*Graph_Node) ProtoMessage ¶
func (*Graph_Node) ProtoMessage()
func (*Graph_Node) Reset ¶
func (m *Graph_Node) Reset()
func (*Graph_Node) Size ¶
func (m *Graph_Node) Size() (n int)
func (*Graph_Node) String ¶
func (this *Graph_Node) String() string
func (*Graph_Node) Unmarshal ¶
func (m *Graph_Node) Unmarshal(dAtA []byte) error
func (*Graph_Node) VerboseEqual ¶
func (this *Graph_Node) VerboseEqual(that interface{}) error
func (*Graph_Node) XXX_DiscardUnknown ¶
func (m *Graph_Node) XXX_DiscardUnknown()
func (*Graph_Node) XXX_Marshal ¶
func (m *Graph_Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Graph_Node) XXX_Merge ¶
func (m *Graph_Node) XXX_Merge(src proto.Message)
func (*Graph_Node) XXX_Size ¶
func (m *Graph_Node) XXX_Size() int
func (*Graph_Node) XXX_Unmarshal ¶
func (m *Graph_Node) XXX_Unmarshal(b []byte) error
type Graph_NodeEntry ¶
type Graph_NodeEntry struct { NodeId int64 `protobuf:"varint,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty" yaml:"node_id,omitempty"` Index int64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty" yaml:"input,omitempty"` Version int64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty" yaml:"version,omitempty"` }
func NewPopulatedGraph_NodeEntry ¶
func NewPopulatedGraph_NodeEntry(r randyMxnet, easy bool) *Graph_NodeEntry
func (*Graph_NodeEntry) Descriptor ¶
func (*Graph_NodeEntry) Descriptor() ([]byte, []int)
func (*Graph_NodeEntry) Equal ¶
func (this *Graph_NodeEntry) Equal(that interface{}) bool
func (*Graph_NodeEntry) GetIndex ¶
func (m *Graph_NodeEntry) GetIndex() int64
func (*Graph_NodeEntry) GetNodeId ¶
func (m *Graph_NodeEntry) GetNodeId() int64
func (*Graph_NodeEntry) GetVersion ¶
func (m *Graph_NodeEntry) GetVersion() int64
func (*Graph_NodeEntry) GoString ¶
func (this *Graph_NodeEntry) GoString() string
func (*Graph_NodeEntry) Marshal ¶
func (m *Graph_NodeEntry) Marshal() (dAtA []byte, err error)
func (*Graph_NodeEntry) MarshalJSON ¶
func (e *Graph_NodeEntry) MarshalJSON() ([]byte, error)
func (*Graph_NodeEntry) ProtoMessage ¶
func (*Graph_NodeEntry) ProtoMessage()
func (*Graph_NodeEntry) Reset ¶
func (m *Graph_NodeEntry) Reset()
func (*Graph_NodeEntry) Size ¶
func (m *Graph_NodeEntry) Size() (n int)
func (*Graph_NodeEntry) String ¶
func (this *Graph_NodeEntry) String() string
func (*Graph_NodeEntry) Unmarshal ¶
func (m *Graph_NodeEntry) Unmarshal(dAtA []byte) error
func (*Graph_NodeEntry) UnmarshalJSON ¶
func (e *Graph_NodeEntry) UnmarshalJSON(b []byte) error
func (*Graph_NodeEntry) VerboseEqual ¶
func (this *Graph_NodeEntry) VerboseEqual(that interface{}) error
func (*Graph_NodeEntry) XXX_DiscardUnknown ¶
func (m *Graph_NodeEntry) XXX_DiscardUnknown()
func (*Graph_NodeEntry) XXX_Marshal ¶
func (m *Graph_NodeEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Graph_NodeEntry) XXX_Merge ¶
func (m *Graph_NodeEntry) XXX_Merge(src proto.Message)
func (*Graph_NodeEntry) XXX_Size ¶
func (m *Graph_NodeEntry) XXX_Size() int
func (*Graph_NodeEntry) XXX_Unmarshal ¶
func (m *Graph_NodeEntry) XXX_Unmarshal(b []byte) error