mxnet

package module
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2017 License: NCSA Imports: 26 Imported by: 0

Documentation

Overview

Package mxnet is a generated protocol buffer package.

It is generated from these files:

mxnet.proto

It has these top-level messages:

Graph

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMxnet = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMxnet   = fmt.Errorf("proto: integer overflow")
)
View Source
var FrameworkManifest = dlframework.FrameworkManifest{
	Name:    "MXNet",
	Version: "0.1",
	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

func Asset(name string) ([]byte, error)

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

func AssetDir(name string) ([]string, error)

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

func AssetInfo(name string) (os.FileInfo, error)

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 AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Types

type Graph

type Graph struct {
	Nodes      []*Graph_Node      `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty" yaml:"nodes,omitempty"`
	ArgNodes   []int64            `protobuf:"varint,2,rep,packed,name=arg_nodes,json=argNodes" json:"arg_nodes,omitempty" yaml:"arg_nodes,omitempty"`
	NodeRowPtr []int64            `protobuf:"varint,3,rep,packed,name=node_row_ptr,json=nodeRowPtr" json:"node_row_ptr,omitempty" yaml:"node_row_ptr,omitempty"`
	Heads      []*Graph_NodeEntry `protobuf:"bytes,4,rep,name=heads" json:"heads,omitempty" yaml:"heads,omitempty"`
	Attrs      *Graph_Attributes  `protobuf:"bytes,5,opt,name=attrs" json:"attrs,omitempty" yaml:"attrs,omitempty"`
}

func NewPopulatedGraph

func NewPopulatedGraph(r randyMxnet, easy bool) *Graph

func (*Graph) Descriptor

func (*Graph) Descriptor() ([]byte, []int)

func (*Graph) Equal

func (this *Graph) Equal(that interface{}) bool

func (*Graph) GetArgNodes

func (m *Graph) GetArgNodes() []int64

func (*Graph) GetAttrs

func (m *Graph) GetAttrs() *Graph_Attributes

func (*Graph) GetHeads

func (m *Graph) GetHeads() []*Graph_NodeEntry

func (*Graph) GetNodeRowPtr

func (m *Graph) GetNodeRowPtr() []int64

func (*Graph) GetNodes

func (m *Graph) GetNodes() []*Graph_Node

func (*Graph) GoString

func (this *Graph) GoString() string

func (*Graph) Marshal

func (m *Graph) Marshal() (dAtA []byte, err error)

func (*Graph) MarshalTo

func (m *Graph) MarshalTo(dAtA []byte) (int, error)

func (*Graph) ProtoMessage

func (*Graph) ProtoMessage()

func (*Graph) Reset

func (m *Graph) Reset()

func (*Graph) Size

func (m *Graph) Size() (n int)

func (*Graph) String

func (this *Graph) String() string

func (*Graph) ToDotGraph

func (g *Graph) ToDotGraph() (*gographviz.Escape, error)

func (*Graph) Unmarshal

func (m *Graph) Unmarshal(dAtA []byte) error

func (*Graph) VerboseEqual

func (this *Graph) VerboseEqual(that interface{}) error

type Graph_Attributes

type Graph_Attributes struct {
	Attrs map[string]string `` /* 167-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) MarshalTo

func (m *Graph_Attributes) MarshalTo(dAtA []byte) (int, 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

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  `` /* 168-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" json:"inputs,omitempty" yaml:"inputs,omitempty"`
	BackwardSourceId int64              `` /* 148-byte string literal not displayed */
	ControlDeps      []int64            `protobuf:"varint,6,rep,packed,name=control_deps,json=controlDeps" json:"control_deps,omitempty" yaml:"control_deps,omitempty"`
}

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) MarshalTo

func (m *Graph_Node) MarshalTo(dAtA []byte) (int, 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

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) MarshalTo

func (m *Graph_NodeEntry) MarshalTo(dAtA []byte) (int, 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

type ModelGraphAttributes

type ModelGraphAttributes map[string][]string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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