Documentation ¶
Index ¶
- type Blob
- type Net
- type Workspace
- func (w *Workspace) CreateBlob(blob string) *Blob
- func (w *Workspace) CreateLocalBlob(blob string) *Blob
- func (w *Workspace) CreateNet(net *caffe2pb.NetDef) (*Net, error)
- func (w *Workspace) DeleteNet(name string)
- func (w *Workspace) GetBlob(blob string) *Blob
- func (w *Workspace) GetNet(name string) *Net
- func (w *Workspace) HasBlob(blob string) bool
- func (p *Workspace) NewChild() *Workspace
- func (w *Workspace) RemoveBlob(blob string) error
- func (w *Workspace) RunNet(name string) error
- func (w *Workspace) RunPlan(plan *caffe2pb.PlanDef) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob struct {
// contains filtered or unexported fields
}
func (*Blob) Deserialize ¶
type Workspace ¶
type Workspace struct {
// contains filtered or unexported fields
}
func NewWorkspace ¶
func NewWorkspace() *Workspace
NewWorkspace creates a new workspace. The underlying C++ workspace is freed via a finalizer and all child Blobs and Nets have a pointer to the workspace so there won't ever be any unsafe memory accesses.
func (*Workspace) CreateBlob ¶
func (*Workspace) CreateLocalBlob ¶
func (*Workspace) NewChild ¶
NewChild returns a new child workspace that inherits blobs from the parent workspace.
func (*Workspace) RemoveBlob ¶
Click to show internal directories.
Click to hide internal directories.