Documentation
¶
Index ¶
- Constants
- 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 Argument
- func (*Argument) Descriptor() ([]byte, []int)
- func (m *Argument) GetF() float32
- func (m *Argument) GetFloats() []float32
- func (m *Argument) GetI() int64
- func (m *Argument) GetInts() []int64
- func (m *Argument) GetName() string
- func (m *Argument) GetS() []byte
- func (m *Argument) GetStrings() [][]byte
- func (m *Argument) Marshal() (dAtA []byte, err error)
- func (m *Argument) MarshalTo(dAtA []byte) (int, error)
- func (*Argument) ProtoMessage()
- func (m *Argument) Reset()
- func (m *Argument) Size() (n int)
- func (m *Argument) String() string
- func (m *Argument) Unmarshal(dAtA []byte) error
- func (m *Argument) XXX_DiscardUnknown()
- func (m *Argument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Argument) XXX_Merge(src proto.Message)
- func (m *Argument) XXX_Size() int
- func (m *Argument) XXX_Unmarshal(b []byte) error
- type BlobProto
- func (*BlobProto) Descriptor() ([]byte, []int)
- func (m *BlobProto) GetContent() []byte
- func (m *BlobProto) GetName() string
- func (m *BlobProto) GetQtensor() *QTensorProto
- func (m *BlobProto) GetTensor() *TensorProto
- func (m *BlobProto) GetType() string
- func (m *BlobProto) Marshal() (dAtA []byte, err error)
- func (m *BlobProto) MarshalTo(dAtA []byte) (int, error)
- func (*BlobProto) ProtoMessage()
- func (m *BlobProto) Reset()
- func (m *BlobProto) Size() (n int)
- func (m *BlobProto) String() string
- func (m *BlobProto) Unmarshal(dAtA []byte) error
- func (m *BlobProto) XXX_DiscardUnknown()
- func (m *BlobProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlobProto) XXX_Merge(src proto.Message)
- func (m *BlobProto) XXX_Size() int
- func (m *BlobProto) XXX_Unmarshal(b []byte) error
- type BlobsMap
- func (*BlobsMap) Descriptor() ([]byte, []int)
- func (m *BlobsMap) GetKey() string
- func (m *BlobsMap) GetValue() []string
- func (m *BlobsMap) Marshal() (dAtA []byte, err error)
- func (m *BlobsMap) MarshalTo(dAtA []byte) (int, error)
- func (*BlobsMap) ProtoMessage()
- func (m *BlobsMap) Reset()
- func (m *BlobsMap) Size() (n int)
- func (m *BlobsMap) String() string
- func (m *BlobsMap) Unmarshal(dAtA []byte) error
- func (m *BlobsMap) XXX_DiscardUnknown()
- func (m *BlobsMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlobsMap) XXX_Merge(src proto.Message)
- func (m *BlobsMap) XXX_Size() int
- func (m *BlobsMap) XXX_Unmarshal(b []byte) error
- type DBReaderProto
- func (*DBReaderProto) Descriptor() ([]byte, []int)
- func (m *DBReaderProto) GetDbType() string
- func (m *DBReaderProto) GetKey() string
- func (m *DBReaderProto) GetName() string
- func (m *DBReaderProto) GetSource() string
- func (m *DBReaderProto) Marshal() (dAtA []byte, err error)
- func (m *DBReaderProto) MarshalTo(dAtA []byte) (int, error)
- func (*DBReaderProto) ProtoMessage()
- func (m *DBReaderProto) Reset()
- func (m *DBReaderProto) Size() (n int)
- func (m *DBReaderProto) String() string
- func (m *DBReaderProto) Unmarshal(dAtA []byte) error
- func (m *DBReaderProto) XXX_DiscardUnknown()
- func (m *DBReaderProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DBReaderProto) XXX_Merge(src proto.Message)
- func (m *DBReaderProto) XXX_Size() int
- func (m *DBReaderProto) XXX_Unmarshal(b []byte) error
- type DeviceOption
- func (*DeviceOption) Descriptor() ([]byte, []int)
- func (m *DeviceOption) GetCudaGpuId() int32
- func (m *DeviceOption) GetDeviceType() int32
- func (m *DeviceOption) GetRandomSeed() uint32
- func (m *DeviceOption) Marshal() (dAtA []byte, err error)
- func (m *DeviceOption) MarshalTo(dAtA []byte) (int, error)
- func (*DeviceOption) ProtoMessage()
- func (m *DeviceOption) Reset()
- func (m *DeviceOption) Size() (n int)
- func (m *DeviceOption) String() string
- func (m *DeviceOption) Unmarshal(dAtA []byte) error
- func (m *DeviceOption) XXX_DiscardUnknown()
- func (m *DeviceOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeviceOption) XXX_Merge(src proto.Message)
- func (m *DeviceOption) XXX_Size() int
- func (m *DeviceOption) XXX_Unmarshal(b []byte) error
- type DeviceType
- type ExecutionStep
- func (*ExecutionStep) Descriptor() ([]byte, []int)
- func (m *ExecutionStep) GetConcurrentSubsteps() bool
- func (m *ExecutionStep) GetCriteriaNetwork() stringdeprecated
- func (m *ExecutionStep) GetName() string
- func (m *ExecutionStep) GetNetwork() []string
- func (m *ExecutionStep) GetNumIter() int64
- func (m *ExecutionStep) GetOnlyOnce() bool
- func (m *ExecutionStep) GetReportInterval() int32
- func (m *ExecutionStep) GetReportNet() string
- func (m *ExecutionStep) GetRunEveryMs() int64
- func (m *ExecutionStep) GetShouldStopBlob() string
- func (m *ExecutionStep) GetSubstep() []*ExecutionStep
- func (m *ExecutionStep) Marshal() (dAtA []byte, err error)
- func (m *ExecutionStep) MarshalTo(dAtA []byte) (int, error)
- func (*ExecutionStep) ProtoMessage()
- func (m *ExecutionStep) Reset()
- func (m *ExecutionStep) Size() (n int)
- func (m *ExecutionStep) String() string
- func (m *ExecutionStep) Unmarshal(dAtA []byte) error
- func (m *ExecutionStep) XXX_DiscardUnknown()
- func (m *ExecutionStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ExecutionStep) XXX_Merge(src proto.Message)
- func (m *ExecutionStep) XXX_Size() int
- func (m *ExecutionStep) XXX_Unmarshal(b []byte) error
- type HierarchyProto
- func (*HierarchyProto) Descriptor() ([]byte, []int)
- func (m *HierarchyProto) GetPaths() []*PathProto
- func (m *HierarchyProto) GetSize_() int32
- func (m *HierarchyProto) Marshal() (dAtA []byte, err error)
- func (m *HierarchyProto) MarshalTo(dAtA []byte) (int, error)
- func (*HierarchyProto) ProtoMessage()
- func (m *HierarchyProto) Reset()
- func (m *HierarchyProto) Size() (n int)
- func (m *HierarchyProto) String() string
- func (m *HierarchyProto) Unmarshal(dAtA []byte) error
- func (m *HierarchyProto) XXX_DiscardUnknown()
- func (m *HierarchyProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HierarchyProto) XXX_Merge(src proto.Message)
- func (m *HierarchyProto) XXX_Size() int
- func (m *HierarchyProto) XXX_Unmarshal(b []byte) error
- type LegacyPadding
- type MetaNetDef
- func (*MetaNetDef) Descriptor() ([]byte, []int)
- func (m *MetaNetDef) GetApplicationSpecificInfo() []*StringMap
- func (m *MetaNetDef) GetBlobs() []*BlobsMap
- func (m *MetaNetDef) GetModelInfo() *ModelInfo
- func (m *MetaNetDef) GetNets() []*NetsMap
- func (m *MetaNetDef) GetPlans() []*PlansMap
- func (m *MetaNetDef) Marshal() (dAtA []byte, err error)
- func (m *MetaNetDef) MarshalTo(dAtA []byte) (int, error)
- func (*MetaNetDef) ProtoMessage()
- func (m *MetaNetDef) Reset()
- func (m *MetaNetDef) Size() (n int)
- func (m *MetaNetDef) String() string
- func (m *MetaNetDef) Unmarshal(dAtA []byte) error
- func (m *MetaNetDef) XXX_DiscardUnknown()
- func (m *MetaNetDef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MetaNetDef) XXX_Merge(src proto.Message)
- func (m *MetaNetDef) XXX_Size() int
- func (m *MetaNetDef) XXX_Unmarshal(b []byte) error
- type ModelInfo
- func (*ModelInfo) Descriptor() ([]byte, []int)
- func (m *ModelInfo) GetModelClass() string
- func (m *ModelInfo) GetModelId() string
- func (m *ModelInfo) GetPredictorType() string
- func (m *ModelInfo) GetProject() string
- func (m *ModelInfo) GetVersion() string
- func (m *ModelInfo) Marshal() (dAtA []byte, err error)
- func (m *ModelInfo) MarshalTo(dAtA []byte) (int, error)
- func (*ModelInfo) ProtoMessage()
- func (m *ModelInfo) Reset()
- func (m *ModelInfo) Size() (n int)
- func (m *ModelInfo) String() string
- func (m *ModelInfo) Unmarshal(dAtA []byte) error
- func (m *ModelInfo) XXX_DiscardUnknown()
- func (m *ModelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ModelInfo) XXX_Merge(src proto.Message)
- func (m *ModelInfo) XXX_Size() int
- func (m *ModelInfo) XXX_Unmarshal(b []byte) error
- type NetDef
- func (*NetDef) Descriptor() ([]byte, []int)
- func (m *NetDef) GetArg() []*Argument
- func (m *NetDef) GetDeviceOption() *DeviceOption
- func (m *NetDef) GetExternalInput() []string
- func (m *NetDef) GetExternalOutput() []string
- func (m *NetDef) GetName() string
- func (m *NetDef) GetNumWorkers() int32deprecated
- func (m *NetDef) GetOp() []*OperatorDef
- func (m *NetDef) GetType() string
- func (m *NetDef) Marshal() (dAtA []byte, err error)
- func (m *NetDef) MarshalTo(dAtA []byte) (int, error)
- func (*NetDef) ProtoMessage()
- func (m *NetDef) Reset()
- func (m *NetDef) Size() (n int)
- func (m *NetDef) String() string
- func (m *NetDef) Unmarshal(dAtA []byte) error
- func (m *NetDef) XXX_DiscardUnknown()
- func (m *NetDef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetDef) XXX_Merge(src proto.Message)
- func (m *NetDef) XXX_Size() int
- func (m *NetDef) XXX_Unmarshal(b []byte) error
- type NetsMap
- func (*NetsMap) Descriptor() ([]byte, []int)
- func (m *NetsMap) GetKey() string
- func (m *NetsMap) GetValue() *NetDef
- func (m *NetsMap) Marshal() (dAtA []byte, err error)
- func (m *NetsMap) MarshalTo(dAtA []byte) (int, error)
- func (*NetsMap) ProtoMessage()
- func (m *NetsMap) Reset()
- func (m *NetsMap) Size() (n int)
- func (m *NetsMap) String() string
- func (m *NetsMap) Unmarshal(dAtA []byte) error
- func (m *NetsMap) XXX_DiscardUnknown()
- func (m *NetsMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetsMap) XXX_Merge(src proto.Message)
- func (m *NetsMap) XXX_Size() int
- func (m *NetsMap) XXX_Unmarshal(b []byte) error
- type NodeProto
- func (*NodeProto) Descriptor() ([]byte, []int)
- func (m *NodeProto) GetChildren() []*NodeProto
- func (m *NodeProto) GetName() string
- func (m *NodeProto) GetOffset() int32
- func (m *NodeProto) GetScores() []float32
- func (m *NodeProto) GetWordIds() []int32
- func (m *NodeProto) Marshal() (dAtA []byte, err error)
- func (m *NodeProto) MarshalTo(dAtA []byte) (int, error)
- func (*NodeProto) ProtoMessage()
- func (m *NodeProto) Reset()
- func (m *NodeProto) Size() (n int)
- func (m *NodeProto) String() string
- func (m *NodeProto) Unmarshal(dAtA []byte) error
- func (m *NodeProto) XXX_DiscardUnknown()
- func (m *NodeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NodeProto) XXX_Merge(src proto.Message)
- func (m *NodeProto) XXX_Size() int
- func (m *NodeProto) XXX_Unmarshal(b []byte) error
- type OperatorDef
- func (*OperatorDef) Descriptor() ([]byte, []int)
- func (m *OperatorDef) GetArg() []*Argument
- func (m *OperatorDef) GetControlInput() []string
- func (m *OperatorDef) GetDeviceOption() *DeviceOption
- func (m *OperatorDef) GetEngine() string
- func (m *OperatorDef) GetInput() []string
- func (m *OperatorDef) GetIsGradientOp() bool
- func (m *OperatorDef) GetName() string
- func (m *OperatorDef) GetOutput() []string
- func (m *OperatorDef) GetType() string
- func (m *OperatorDef) Marshal() (dAtA []byte, err error)
- func (m *OperatorDef) MarshalTo(dAtA []byte) (int, error)
- func (*OperatorDef) ProtoMessage()
- func (m *OperatorDef) Reset()
- func (m *OperatorDef) Size() (n int)
- func (m *OperatorDef) String() string
- func (m *OperatorDef) Unmarshal(dAtA []byte) error
- func (m *OperatorDef) XXX_DiscardUnknown()
- func (m *OperatorDef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *OperatorDef) XXX_Merge(src proto.Message)
- func (m *OperatorDef) XXX_Size() int
- func (m *OperatorDef) XXX_Unmarshal(b []byte) error
- type PathNodeProto
- func (*PathNodeProto) Descriptor() ([]byte, []int)
- func (m *PathNodeProto) GetIndex() int32
- func (m *PathNodeProto) GetLength() int32
- func (m *PathNodeProto) GetTarget() int32
- func (m *PathNodeProto) Marshal() (dAtA []byte, err error)
- func (m *PathNodeProto) MarshalTo(dAtA []byte) (int, error)
- func (*PathNodeProto) ProtoMessage()
- func (m *PathNodeProto) Reset()
- func (m *PathNodeProto) Size() (n int)
- func (m *PathNodeProto) String() string
- func (m *PathNodeProto) Unmarshal(dAtA []byte) error
- func (m *PathNodeProto) XXX_DiscardUnknown()
- func (m *PathNodeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PathNodeProto) XXX_Merge(src proto.Message)
- func (m *PathNodeProto) XXX_Size() int
- func (m *PathNodeProto) XXX_Unmarshal(b []byte) error
- type PathProto
- func (*PathProto) Descriptor() ([]byte, []int)
- func (m *PathProto) GetPathNodes() []*PathNodeProto
- func (m *PathProto) GetWordId() int32
- func (m *PathProto) Marshal() (dAtA []byte, err error)
- func (m *PathProto) MarshalTo(dAtA []byte) (int, error)
- func (*PathProto) ProtoMessage()
- func (m *PathProto) Reset()
- func (m *PathProto) Size() (n int)
- func (m *PathProto) String() string
- func (m *PathProto) Unmarshal(dAtA []byte) error
- func (m *PathProto) XXX_DiscardUnknown()
- func (m *PathProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PathProto) XXX_Merge(src proto.Message)
- func (m *PathProto) XXX_Size() int
- func (m *PathProto) XXX_Unmarshal(b []byte) error
- type PlanDef
- func (*PlanDef) Descriptor() ([]byte, []int)
- func (m *PlanDef) GetExecutionStep() []*ExecutionStep
- func (m *PlanDef) GetName() string
- func (m *PlanDef) GetNetwork() []*NetDef
- func (m *PlanDef) Marshal() (dAtA []byte, err error)
- func (m *PlanDef) MarshalTo(dAtA []byte) (int, error)
- func (*PlanDef) ProtoMessage()
- func (m *PlanDef) Reset()
- func (m *PlanDef) Size() (n int)
- func (m *PlanDef) String() string
- func (m *PlanDef) Unmarshal(dAtA []byte) error
- func (m *PlanDef) XXX_DiscardUnknown()
- func (m *PlanDef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlanDef) XXX_Merge(src proto.Message)
- func (m *PlanDef) XXX_Size() int
- func (m *PlanDef) XXX_Unmarshal(b []byte) error
- type PlansMap
- func (*PlansMap) Descriptor() ([]byte, []int)
- func (m *PlansMap) GetKey() string
- func (m *PlansMap) GetValue() *PlanDef
- func (m *PlansMap) Marshal() (dAtA []byte, err error)
- func (m *PlansMap) MarshalTo(dAtA []byte) (int, error)
- func (*PlansMap) ProtoMessage()
- func (m *PlansMap) Reset()
- func (m *PlansMap) Size() (n int)
- func (m *PlansMap) String() string
- func (m *PlansMap) Unmarshal(dAtA []byte) error
- func (m *PlansMap) XXX_DiscardUnknown()
- func (m *PlansMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PlansMap) XXX_Merge(src proto.Message)
- func (m *PlansMap) XXX_Size() int
- func (m *PlansMap) XXX_Unmarshal(b []byte) error
- type PredictorConsts
- func (*PredictorConsts) Descriptor() ([]byte, []int)
- func (m *PredictorConsts) GetGLOBAL_INIT_NET_TYPE() string
- func (m *PredictorConsts) GetINPUTS_BLOB_TYPE() string
- func (m *PredictorConsts) GetMETA_NET_DEF() string
- func (m *PredictorConsts) GetMULTI_PREDICTOR() string
- func (m *PredictorConsts) GetOUTPUTS_BLOB_TYPE() string
- func (m *PredictorConsts) GetPARAMETERS_BLOB_TYPE() string
- func (m *PredictorConsts) GetPREDICTOR_DBREADER() string
- func (m *PredictorConsts) GetPREDICT_INIT_NET_TYPE() string
- func (m *PredictorConsts) GetPREDICT_NET_TYPE() string
- func (m *PredictorConsts) GetSINGLE_PREDICTOR() string
- func (m *PredictorConsts) GetTRAIN_INIT_PLAN_TYPE() string
- func (m *PredictorConsts) GetTRAIN_PLAN_TYPE() string
- func (m *PredictorConsts) Marshal() (dAtA []byte, err error)
- func (m *PredictorConsts) MarshalTo(dAtA []byte) (int, error)
- func (*PredictorConsts) ProtoMessage()
- func (m *PredictorConsts) Reset()
- func (m *PredictorConsts) Size() (n int)
- func (m *PredictorConsts) String() string
- func (m *PredictorConsts) Unmarshal(dAtA []byte) error
- func (m *PredictorConsts) XXX_DiscardUnknown()
- func (m *PredictorConsts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PredictorConsts) XXX_Merge(src proto.Message)
- func (m *PredictorConsts) XXX_Size() int
- func (m *PredictorConsts) XXX_Unmarshal(b []byte) error
- type ProfDAGProto
- func (*ProfDAGProto) Descriptor() ([]byte, []int)
- func (m *ProfDAGProto) GetMean() float32
- func (m *ProfDAGProto) GetName() string
- func (m *ProfDAGProto) GetStddev() float32
- func (m *ProfDAGProto) Marshal() (dAtA []byte, err error)
- func (m *ProfDAGProto) MarshalTo(dAtA []byte) (int, error)
- func (*ProfDAGProto) ProtoMessage()
- func (m *ProfDAGProto) Reset()
- func (m *ProfDAGProto) Size() (n int)
- func (m *ProfDAGProto) String() string
- func (m *ProfDAGProto) Unmarshal(dAtA []byte) error
- func (m *ProfDAGProto) XXX_DiscardUnknown()
- func (m *ProfDAGProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProfDAGProto) XXX_Merge(src proto.Message)
- func (m *ProfDAGProto) XXX_Size() int
- func (m *ProfDAGProto) XXX_Unmarshal(b []byte) error
- type ProfDAGProtos
- func (*ProfDAGProtos) Descriptor() ([]byte, []int)
- func (m *ProfDAGProtos) GetStats() []*ProfDAGProto
- func (m *ProfDAGProtos) Marshal() (dAtA []byte, err error)
- func (m *ProfDAGProtos) MarshalTo(dAtA []byte) (int, error)
- func (*ProfDAGProtos) ProtoMessage()
- func (m *ProfDAGProtos) Reset()
- func (m *ProfDAGProtos) Size() (n int)
- func (m *ProfDAGProtos) String() string
- func (m *ProfDAGProtos) Unmarshal(dAtA []byte) error
- func (m *ProfDAGProtos) XXX_DiscardUnknown()
- func (m *ProfDAGProtos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProfDAGProtos) XXX_Merge(src proto.Message)
- func (m *ProfDAGProtos) XXX_Size() int
- func (m *ProfDAGProtos) XXX_Unmarshal(b []byte) error
- type QTensorProto
- func (*QTensorProto) Descriptor() ([]byte, []int)
- func (m *QTensorProto) GetBias() float64
- func (m *QTensorProto) GetData() []int32
- func (m *QTensorProto) GetDims() []int64
- func (m *QTensorProto) GetIsSigned() bool
- func (m *QTensorProto) GetName() string
- func (m *QTensorProto) GetPrecision() int32
- func (m *QTensorProto) GetScale() float64
- func (m *QTensorProto) Marshal() (dAtA []byte, err error)
- func (m *QTensorProto) MarshalTo(dAtA []byte) (int, error)
- func (*QTensorProto) ProtoMessage()
- func (m *QTensorProto) Reset()
- func (m *QTensorProto) Size() (n int)
- func (m *QTensorProto) String() string
- func (m *QTensorProto) Unmarshal(dAtA []byte) error
- func (m *QTensorProto) XXX_DiscardUnknown()
- func (m *QTensorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QTensorProto) XXX_Merge(src proto.Message)
- func (m *QTensorProto) XXX_Size() int
- func (m *QTensorProto) XXX_Unmarshal(b []byte) error
- type StringMap
- func (*StringMap) Descriptor() ([]byte, []int)
- func (m *StringMap) GetKey() string
- func (m *StringMap) GetValue() string
- func (m *StringMap) Marshal() (dAtA []byte, err error)
- func (m *StringMap) MarshalTo(dAtA []byte) (int, error)
- func (*StringMap) ProtoMessage()
- func (m *StringMap) Reset()
- func (m *StringMap) Size() (n int)
- func (m *StringMap) String() string
- func (m *StringMap) Unmarshal(dAtA []byte) error
- func (m *StringMap) XXX_DiscardUnknown()
- func (m *StringMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StringMap) XXX_Merge(src proto.Message)
- func (m *StringMap) XXX_Size() int
- func (m *StringMap) XXX_Unmarshal(b []byte) error
- type TensorProto
- func (*TensorProto) Descriptor() ([]byte, []int)
- func (m *TensorProto) GetByteData() []byte
- func (m *TensorProto) GetDataType() TensorProto_DataType
- func (m *TensorProto) GetDeviceDetail() *DeviceOption
- func (m *TensorProto) GetDims() []int64
- func (m *TensorProto) GetDoubleData() []float64
- func (m *TensorProto) GetFloatData() []float32
- func (m *TensorProto) GetInt32Data() []int32
- func (m *TensorProto) GetInt64Data() []int64
- func (m *TensorProto) GetName() string
- func (m *TensorProto) GetSegment() *TensorProto_Segment
- func (m *TensorProto) GetStringData() [][]byte
- func (m *TensorProto) Marshal() (dAtA []byte, err error)
- func (m *TensorProto) MarshalTo(dAtA []byte) (int, error)
- func (*TensorProto) ProtoMessage()
- func (m *TensorProto) Reset()
- func (m *TensorProto) Size() (n int)
- func (m *TensorProto) String() string
- func (m *TensorProto) Unmarshal(dAtA []byte) error
- func (m *TensorProto) XXX_DiscardUnknown()
- func (m *TensorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TensorProto) XXX_Merge(src proto.Message)
- func (m *TensorProto) XXX_Size() int
- func (m *TensorProto) XXX_Unmarshal(b []byte) error
- type TensorProto_DataType
- type TensorProto_Segment
- func (*TensorProto_Segment) Descriptor() ([]byte, []int)
- func (m *TensorProto_Segment) GetBegin() int64
- func (m *TensorProto_Segment) GetEnd() int64
- func (m *TensorProto_Segment) Marshal() (dAtA []byte, err error)
- func (m *TensorProto_Segment) MarshalTo(dAtA []byte) (int, error)
- func (*TensorProto_Segment) ProtoMessage()
- func (m *TensorProto_Segment) Reset()
- func (m *TensorProto_Segment) Size() (n int)
- func (m *TensorProto_Segment) String() string
- func (m *TensorProto_Segment) Unmarshal(dAtA []byte) error
- func (m *TensorProto_Segment) XXX_DiscardUnknown()
- func (m *TensorProto_Segment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TensorProto_Segment) XXX_Merge(src proto.Message)
- func (m *TensorProto_Segment) XXX_Size() int
- func (m *TensorProto_Segment) XXX_Unmarshal(b []byte) error
- type TensorProtos
- func (*TensorProtos) Descriptor() ([]byte, []int)
- func (m *TensorProtos) GetProtos() []*TensorProto
- func (m *TensorProtos) Marshal() (dAtA []byte, err error)
- func (m *TensorProtos) MarshalTo(dAtA []byte) (int, error)
- func (*TensorProtos) ProtoMessage()
- func (m *TensorProtos) Reset()
- func (m *TensorProtos) Size() (n int)
- func (m *TensorProtos) String() string
- func (m *TensorProtos) Unmarshal(dAtA []byte) error
- func (m *TensorProtos) XXX_DiscardUnknown()
- func (m *TensorProtos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TensorProtos) XXX_Merge(src proto.Message)
- func (m *TensorProtos) XXX_Size() int
- func (m *TensorProtos) XXX_Unmarshal(b []byte) error
- type TensorShape
- func (*TensorShape) Descriptor() ([]byte, []int)
- func (m *TensorShape) GetDataType() TensorProto_DataType
- func (m *TensorShape) GetDims() []int64
- func (m *TensorShape) GetName() string
- func (m *TensorShape) GetUnknownDims() []int32
- func (m *TensorShape) GetUnknownShape() bool
- func (m *TensorShape) Marshal() (dAtA []byte, err error)
- func (m *TensorShape) MarshalTo(dAtA []byte) (int, error)
- func (*TensorShape) ProtoMessage()
- func (m *TensorShape) Reset()
- func (m *TensorShape) Size() (n int)
- func (m *TensorShape) String() string
- func (m *TensorShape) Unmarshal(dAtA []byte) error
- func (m *TensorShape) XXX_DiscardUnknown()
- func (m *TensorShape) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TensorShape) XXX_Merge(src proto.Message)
- func (m *TensorShape) XXX_Size() int
- func (m *TensorShape) XXX_Unmarshal(b []byte) error
- type TensorShapes
- func (*TensorShapes) Descriptor() ([]byte, []int)
- func (m *TensorShapes) GetShapes() []*TensorShape
- func (m *TensorShapes) Marshal() (dAtA []byte, err error)
- func (m *TensorShapes) MarshalTo(dAtA []byte) (int, error)
- func (*TensorShapes) ProtoMessage()
- func (m *TensorShapes) Reset()
- func (m *TensorShapes) Size() (n int)
- func (m *TensorShapes) String() string
- func (m *TensorShapes) Unmarshal(dAtA []byte) error
- func (m *TensorShapes) XXX_DiscardUnknown()
- func (m *TensorShapes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TensorShapes) XXX_Merge(src proto.Message)
- func (m *TensorShapes) XXX_Size() int
- func (m *TensorShapes) XXX_Unmarshal(b []byte) error
- type TreeProto
- func (*TreeProto) Descriptor() ([]byte, []int)
- func (m *TreeProto) GetRootNode() *NodeProto
- func (m *TreeProto) Marshal() (dAtA []byte, err error)
- func (m *TreeProto) MarshalTo(dAtA []byte) (int, error)
- func (*TreeProto) ProtoMessage()
- func (m *TreeProto) Reset()
- func (m *TreeProto) Size() (n int)
- func (m *TreeProto) String() string
- func (m *TreeProto) Unmarshal(dAtA []byte) error
- func (m *TreeProto) XXX_DiscardUnknown()
- func (m *TreeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TreeProto) XXX_Merge(src proto.Message)
- func (m *TreeProto) XXX_Size() int
- func (m *TreeProto) XXX_Unmarshal(b []byte) error
Constants ¶
const Default_DeviceOption_DeviceType int32 = 0
const Default_ModelInfo_PredictorType string = "SINGLE_PREDICTOR"
const Default_OperatorDef_IsGradientOp bool = false
const Default_PredictorConsts_GLOBAL_INIT_NET_TYPE string = "GLOBAL_INIT_NET_TYPE"
const Default_PredictorConsts_INPUTS_BLOB_TYPE string = "INPUTS_BLOB_TYPE"
const Default_PredictorConsts_META_NET_DEF string = "!!META_NET_DEF"
const Default_PredictorConsts_MULTI_PREDICTOR string = "MULTI_PREDICTOR"
const Default_PredictorConsts_OUTPUTS_BLOB_TYPE string = "OUTPUTS_BLOB_TYPE"
const Default_PredictorConsts_PARAMETERS_BLOB_TYPE string = "PARAMETERS_BLOB_TYPE"
const Default_PredictorConsts_PREDICTOR_DBREADER string = "!!PREDICTOR_DBREADER"
const Default_PredictorConsts_PREDICT_INIT_NET_TYPE string = "PREDICT_INIT_NET_TYPE"
const Default_PredictorConsts_PREDICT_NET_TYPE string = "PREDICT_NET_TYPE"
const Default_PredictorConsts_SINGLE_PREDICTOR string = "SINGLE_PREDICTOR"
const Default_PredictorConsts_TRAIN_INIT_PLAN_TYPE string = "TRAIN_INIT_PLAN_TYPE"
const Default_PredictorConsts_TRAIN_PLAN_TYPE string = "TRAIN_PLAN_TYPE"
const Default_TensorShape_UnknownShape bool = false
Variables ¶
var ( ErrInvalidLengthCaffe2 = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCaffe2 = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthHsm = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowHsm = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthMetanet = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMetanet = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthPredictorConsts = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPredictorConsts = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthProfDag = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProfDag = fmt.Errorf("proto: integer overflow") )
var ( Version = "0.3.15" BuildDate = "undefined" GitCommit = "undefined" )
Version ...
var DeviceType_name = map[int32]string{
0: "CPU",
1: "CUDA",
2: "MKLDNN",
20901701: "ONLY_FOR_TEST",
}
var DeviceType_value = map[string]int32{
"CPU": 0,
"CUDA": 1,
"MKLDNN": 2,
"ONLY_FOR_TEST": 20901701,
}
var FrameworkManifest = dlframework.FrameworkManifest{ Name: "Caffe2", Version: "0.8.1", Container: map[string]*dlframework.ContainerHardware{ "amd64": { Cpu: "raiproject/carml-caffe2:amd64-cpu", Gpu: "raiproject/carml-caffe2:amd64-gpu", }, "ppc64le": { Cpu: "raiproject/carml-caffe2:ppc64le-gpu", Gpu: "raiproject/carml-caffe2:ppc64le-gpu", }, }, }
FrameworkManifest ...
var LegacyPadding_name = map[int32]string{
0: "NOTSET",
1: "VALID",
2: "SAME",
3: "CAFFE_LEGACY_POOLING",
}
var LegacyPadding_value = map[string]int32{
"NOTSET": 0,
"VALID": 1,
"SAME": 2,
"CAFFE_LEGACY_POOLING": 3,
}
var TensorProto_DataType_name = map[int32]string{
0: "UNDEFINED",
1: "FLOAT",
2: "INT32",
3: "BYTE",
4: "STRING",
5: "BOOL",
6: "UINT8",
7: "INT8",
8: "UINT16",
9: "INT16",
10: "INT64",
12: "FLOAT16",
13: "DOUBLE",
}
var TensorProto_DataType_value = map[string]int32{
"UNDEFINED": 0,
"FLOAT": 1,
"INT32": 2,
"BYTE": 3,
"STRING": 4,
"BOOL": 5,
"UINT8": 6,
"INT8": 7,
"UINT16": 8,
"INT16": 9,
"INT64": 10,
"FLOAT16": 12,
"DOUBLE": 13,
}
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 Argument ¶
type Argument struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name"`
F float32 `protobuf:"fixed32,2,opt,name=f" json:"f"`
I int64 `protobuf:"varint,3,opt,name=i" json:"i"`
S []byte `protobuf:"bytes,4,opt,name=s" json:"s"`
Floats []float32 `protobuf:"fixed32,5,rep,name=floats" json:"floats,omitempty"`
Ints []int64 `protobuf:"varint,6,rep,name=ints" json:"ints,omitempty"`
Strings [][]byte `protobuf:"bytes,7,rep,name=strings" json:"strings,omitempty"`
}
A named argument containing either singular float, integer and string values, or repeated float, int and string arrays.
func (*Argument) Descriptor ¶
func (*Argument) GetStrings ¶
func (*Argument) ProtoMessage ¶
func (*Argument) ProtoMessage()
func (*Argument) XXX_DiscardUnknown ¶
func (m *Argument) XXX_DiscardUnknown()
func (*Argument) XXX_Marshal ¶
func (*Argument) XXX_Unmarshal ¶
type BlobProto ¶
type BlobProto struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name"`
Type string `protobuf:"bytes,2,opt,name=type" json:"type"`
Tensor *TensorProto `protobuf:"bytes,3,opt,name=tensor" json:"tensor,omitempty"`
Content []byte `protobuf:"bytes,4,opt,name=content" json:"content"`
Qtensor *QTensorProto `protobuf:"bytes,5,opt,name=qtensor" json:"qtensor,omitempty"`
}
Protobuf format for blobs that are not Tensors. We use a key to store the type of the blob. For example for a serialized DBProto, the type should be "DBReader" and the content should be a serialized DBProto object.
func (*BlobProto) Descriptor ¶
func (*BlobProto) GetContent ¶
func (*BlobProto) GetQtensor ¶
func (m *BlobProto) GetQtensor() *QTensorProto
func (*BlobProto) GetTensor ¶
func (m *BlobProto) GetTensor() *TensorProto
func (*BlobProto) ProtoMessage ¶
func (*BlobProto) ProtoMessage()
func (*BlobProto) XXX_DiscardUnknown ¶
func (m *BlobProto) XXX_DiscardUnknown()
func (*BlobProto) XXX_Marshal ¶
func (*BlobProto) XXX_Unmarshal ¶
type BlobsMap ¶
type BlobsMap struct {
Key string `protobuf:"bytes,1,req,name=key" json:"key"`
Value []string `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
}
func (*BlobsMap) Descriptor ¶
func (*BlobsMap) ProtoMessage ¶
func (*BlobsMap) ProtoMessage()
func (*BlobsMap) XXX_DiscardUnknown ¶
func (m *BlobsMap) XXX_DiscardUnknown()
func (*BlobsMap) XXX_Marshal ¶
func (*BlobsMap) XXX_Unmarshal ¶
type DBReaderProto ¶
type DBReaderProto struct {
// The name for the DB object in the workspace.
Name string `protobuf:"bytes,1,opt,name=name" json:"name"`
// The source of the DB
Source string `protobuf:"bytes,2,opt,name=source" json:"source"`
// The type of the DB
DbType string `protobuf:"bytes,3,opt,name=db_type,json=dbType" json:"db_type"`
// The current key of the DB if the DB supports seeking.
Key string `protobuf:"bytes,4,opt,name=key" json:"key"`
}
Protobuf format to serialize DBReader.
func (*DBReaderProto) Descriptor ¶
func (*DBReaderProto) Descriptor() ([]byte, []int)
func (*DBReaderProto) GetDbType ¶
func (m *DBReaderProto) GetDbType() string
func (*DBReaderProto) GetKey ¶
func (m *DBReaderProto) GetKey() string
func (*DBReaderProto) GetName ¶
func (m *DBReaderProto) GetName() string
func (*DBReaderProto) GetSource ¶
func (m *DBReaderProto) GetSource() string
func (*DBReaderProto) Marshal ¶
func (m *DBReaderProto) Marshal() (dAtA []byte, err error)
func (*DBReaderProto) ProtoMessage ¶
func (*DBReaderProto) ProtoMessage()
func (*DBReaderProto) Reset ¶
func (m *DBReaderProto) Reset()
func (*DBReaderProto) Size ¶
func (m *DBReaderProto) Size() (n int)
func (*DBReaderProto) String ¶
func (m *DBReaderProto) String() string
func (*DBReaderProto) Unmarshal ¶
func (m *DBReaderProto) Unmarshal(dAtA []byte) error
func (*DBReaderProto) XXX_DiscardUnknown ¶
func (m *DBReaderProto) XXX_DiscardUnknown()
func (*DBReaderProto) XXX_Marshal ¶
func (m *DBReaderProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DBReaderProto) XXX_Merge ¶
func (dst *DBReaderProto) XXX_Merge(src proto.Message)
func (*DBReaderProto) XXX_Size ¶
func (m *DBReaderProto) XXX_Size() int
func (*DBReaderProto) XXX_Unmarshal ¶
func (m *DBReaderProto) XXX_Unmarshal(b []byte) error
type DeviceOption ¶
type DeviceOption struct {
// [general] Options that need to be carried out before running the execution.
// optional DeviceType device_type = 1 [ default = CPU ];
DeviceType *int32 `protobuf:"varint,1,opt,name=device_type,json=deviceType,def=0" json:"device_type,omitempty"`
// [CUDA specific] the cuda gpu id.
CudaGpuId int32 `protobuf:"varint,2,opt,name=cuda_gpu_id,json=cudaGpuId" json:"cuda_gpu_id"`
// [general] The random seed to start the device random number generator with.
RandomSeed uint32 `protobuf:"varint,3,opt,name=random_seed,json=randomSeed" json:"random_seed"`
}
Device-specific options. We do not distinguish DeviceOption protos for different DeviceTypes, so currently all devices share the same DeviceOption proto. Fields that are specific to a device type is ignored if the type does not match.
func (*DeviceOption) Descriptor ¶
func (*DeviceOption) Descriptor() ([]byte, []int)
func (*DeviceOption) GetCudaGpuId ¶
func (m *DeviceOption) GetCudaGpuId() int32
func (*DeviceOption) GetDeviceType ¶
func (m *DeviceOption) GetDeviceType() int32
func (*DeviceOption) GetRandomSeed ¶
func (m *DeviceOption) GetRandomSeed() uint32
func (*DeviceOption) Marshal ¶
func (m *DeviceOption) Marshal() (dAtA []byte, err error)
func (*DeviceOption) ProtoMessage ¶
func (*DeviceOption) ProtoMessage()
func (*DeviceOption) Reset ¶
func (m *DeviceOption) Reset()
func (*DeviceOption) Size ¶
func (m *DeviceOption) Size() (n int)
func (*DeviceOption) String ¶
func (m *DeviceOption) String() string
func (*DeviceOption) Unmarshal ¶
func (m *DeviceOption) Unmarshal(dAtA []byte) error
func (*DeviceOption) XXX_DiscardUnknown ¶
func (m *DeviceOption) XXX_DiscardUnknown()
func (*DeviceOption) XXX_Marshal ¶
func (m *DeviceOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceOption) XXX_Merge ¶
func (dst *DeviceOption) XXX_Merge(src proto.Message)
func (*DeviceOption) XXX_Size ¶
func (m *DeviceOption) XXX_Size() int
func (*DeviceOption) XXX_Unmarshal ¶
func (m *DeviceOption) XXX_Unmarshal(b []byte) error
type DeviceType ¶
type DeviceType int32
DeviceType that Caffe2 currently supports. Note: if you add a device type, make sure you add the corresponding device line in core/blob_serialization.cc.
const ( DeviceType_CPU DeviceType = 0 DeviceType_CUDA DeviceType = 1 DeviceType_MKLDNN DeviceType = 2 DeviceType_ONLY_FOR_TEST DeviceType = 20901701 )
func (DeviceType) Enum ¶
func (x DeviceType) Enum() *DeviceType
func (DeviceType) EnumDescriptor ¶
func (DeviceType) EnumDescriptor() ([]byte, []int)
func (DeviceType) String ¶
func (x DeviceType) String() string
func (*DeviceType) UnmarshalJSON ¶
func (x *DeviceType) UnmarshalJSON(data []byte) error
type ExecutionStep ¶
type ExecutionStep struct {
// ExecutionStep should either contain a set of substeps, or a set of
// network names to run in this execution step. They should NOT both be set
// at the same time.
Name string `protobuf:"bytes,1,opt,name=name" json:"name"`
// An execution step could be recursive, in which it involves a set of
// substeps.
Substep []*ExecutionStep `protobuf:"bytes,2,rep,name=substep" json:"substep,omitempty"`
// Alternatively, an execution step could involve one or more networks.
// Note that you cannot have both substeps and networks. Choose one.
// Note that an execution step refers networks by their name. The actual
// network definition of the same name should be included in the network field
// of the plan. The reason is that a network object might hold internal states
// (think of a data layer), so we want to have the same network object that
// multiple steps could ask to run.
Network []string `protobuf:"bytes,3,rep,name=network" json:"network,omitempty"`
// Number of iterations to run this step. The substeps or the networks
// specified will be run sequentially, and one sequential run is considered
// one iteration. If this is not set, the number of iterations is assumed to
// be 1.
NumIter int64 `protobuf:"varint,4,opt,name=num_iter,json=numIter" json:"num_iter"`
// Criteria network specifies a single output (TensorCPU<bool>) of
// size (1), is run on every iteration by the executor, and
// execution terminates when the output[0] is `false`.
CriteriaNetwork string `protobuf:"bytes,5,opt,name=criteria_network,json=criteriaNetwork" json:"criteria_network"` // Deprecated: Do not use.
// DEPRECATED. Use `run_every_ms`.
ReportNet string `protobuf:"bytes,7,opt,name=report_net,json=reportNet" json:"report_net"`
ReportInterval int32 `protobuf:"varint,8,opt,name=report_interval,json=reportInterval" json:"report_interval"`
// If provided, execute this step at every time interval (in millisecs)
// while its sibiling execution steps execute in parallel. This step is
// guaranteed to run at least once after all non-interval siblings finished.
RunEveryMs int64 `protobuf:"varint,11,opt,name=run_every_ms,json=runEveryMs" json:"run_every_ms"`
// If false or not set, execute sub-steps serially.
// If true, execute all substeps concurrently, each one in a separte thread.
ConcurrentSubsteps bool `protobuf:"varint,6,opt,name=concurrent_substeps,json=concurrentSubsteps" json:"concurrent_substeps"`
// Name of a scalar boolean tensor.
// ES checks this blob AFTER every substeps/subnets.
// If specified, and the value is true, then ES will skip the rest and return
// immediately.
// This means that the report_net and the first step will always be called.
// Use cases:
// 1) the first substep stops the rest if data condition not met
// 2) the first substep decide which of the rest of the steps should be run.
// 3) external control
//
// ** It is the user's responsibility to not to put this blob in race conditions.
// ** For example when setting this blob in concurrent substeps
ShouldStopBlob string `protobuf:"bytes,9,opt,name=should_stop_blob,json=shouldStopBlob" json:"should_stop_blob"`
// if only_once is true, this step will only be executed once. this ONLY takes
// effect when using should_stop_blob
OnlyOnce bool `protobuf:"varint,10,opt,name=only_once,json=onlyOnce" json:"only_once"`
}
ExecutionStep is actually a sort-of-hacky way we simulate iteration right now.
func (*ExecutionStep) Descriptor ¶
func (*ExecutionStep) Descriptor() ([]byte, []int)
func (*ExecutionStep) GetConcurrentSubsteps ¶
func (m *ExecutionStep) GetConcurrentSubsteps() bool
func (*ExecutionStep) GetCriteriaNetwork
deprecated
func (m *ExecutionStep) GetCriteriaNetwork() string
Deprecated: Do not use.
func (*ExecutionStep) GetName ¶
func (m *ExecutionStep) GetName() string
func (*ExecutionStep) GetNetwork ¶
func (m *ExecutionStep) GetNetwork() []string
func (*ExecutionStep) GetNumIter ¶
func (m *ExecutionStep) GetNumIter() int64
func (*ExecutionStep) GetOnlyOnce ¶
func (m *ExecutionStep) GetOnlyOnce() bool
func (*ExecutionStep) GetReportInterval ¶
func (m *ExecutionStep) GetReportInterval() int32
func (*ExecutionStep) GetReportNet ¶
func (m *ExecutionStep) GetReportNet() string
func (*ExecutionStep) GetRunEveryMs ¶
func (m *ExecutionStep) GetRunEveryMs() int64
func (*ExecutionStep) GetShouldStopBlob ¶
func (m *ExecutionStep) GetShouldStopBlob() string
func (*ExecutionStep) GetSubstep ¶
func (m *ExecutionStep) GetSubstep() []*ExecutionStep
func (*ExecutionStep) Marshal ¶
func (m *ExecutionStep) Marshal() (dAtA []byte, err error)
func (*ExecutionStep) ProtoMessage ¶
func (*ExecutionStep) ProtoMessage()
func (*ExecutionStep) Reset ¶
func (m *ExecutionStep) Reset()
func (*ExecutionStep) Size ¶
func (m *ExecutionStep) Size() (n int)
func (*ExecutionStep) String ¶
func (m *ExecutionStep) String() string
func (*ExecutionStep) Unmarshal ¶
func (m *ExecutionStep) Unmarshal(dAtA []byte) error
func (*ExecutionStep) XXX_DiscardUnknown ¶
func (m *ExecutionStep) XXX_DiscardUnknown()
func (*ExecutionStep) XXX_Marshal ¶
func (m *ExecutionStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExecutionStep) XXX_Merge ¶
func (dst *ExecutionStep) XXX_Merge(src proto.Message)
func (*ExecutionStep) XXX_Size ¶
func (m *ExecutionStep) XXX_Size() int
func (*ExecutionStep) XXX_Unmarshal ¶
func (m *ExecutionStep) XXX_Unmarshal(b []byte) error
type HierarchyProto ¶
type HierarchyProto struct {
Size_ int32 `protobuf:"varint,1,opt,name=size" json:"size"`
Paths []*PathProto `protobuf:"bytes,2,rep,name=paths" json:"paths,omitempty"`
}
Internal Protobuf format which represents the path in the tree hierarchy for each word in the vocabulary.
func (*HierarchyProto) Descriptor ¶
func (*HierarchyProto) Descriptor() ([]byte, []int)
func (*HierarchyProto) GetPaths ¶
func (m *HierarchyProto) GetPaths() []*PathProto
func (*HierarchyProto) GetSize_ ¶
func (m *HierarchyProto) GetSize_() int32
func (*HierarchyProto) Marshal ¶
func (m *HierarchyProto) Marshal() (dAtA []byte, err error)
func (*HierarchyProto) ProtoMessage ¶
func (*HierarchyProto) ProtoMessage()
func (*HierarchyProto) Reset ¶
func (m *HierarchyProto) Reset()
func (*HierarchyProto) Size ¶
func (m *HierarchyProto) Size() (n int)
func (*HierarchyProto) String ¶
func (m *HierarchyProto) String() string
func (*HierarchyProto) Unmarshal ¶
func (m *HierarchyProto) Unmarshal(dAtA []byte) error
func (*HierarchyProto) XXX_DiscardUnknown ¶
func (m *HierarchyProto) XXX_DiscardUnknown()
func (*HierarchyProto) XXX_Marshal ¶
func (m *HierarchyProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HierarchyProto) XXX_Merge ¶
func (dst *HierarchyProto) XXX_Merge(src proto.Message)
func (*HierarchyProto) XXX_Size ¶
func (m *HierarchyProto) XXX_Size() int
func (*HierarchyProto) XXX_Unmarshal ¶
func (m *HierarchyProto) XXX_Unmarshal(b []byte) error
type LegacyPadding ¶
type LegacyPadding int32
const ( LegacyPadding_NOTSET LegacyPadding = 0 // VALID and SAME are two strategies adopted in Google DistBelief: it forces // the input shape as follows. For SAME, the output is: // R_out = ceil(float(R) / float(S)) // C_out = ceil(float(C) / float(S)) // where R and C are row and column, S is the stride, and K is the kernel. // The number of padded pixels is then computed as // Pr = ((R_out - 1) * S + K - R) // Pc = ((C_out - 1) * S + K - C) // When Pr and Pc are even numbers, both sides (left and right, or top and // bottom) get half each. When Pr and Pc are odd numbers, the right and the // bottom gets the one additional padding pixel. // For VALID, padding values of 0 are always used. LegacyPadding_VALID LegacyPadding = 1 LegacyPadding_SAME LegacyPadding = 2 // CAFFE_LEGACY_POOLING is a flag that notifies the code to use the old Caffe // padding strategy. // Basically, in caffe2, after padding the convolution and pooling use the // same computation strategy: half-windows at the right and bottom are // discarded. In Caffe, convolution follows this strategy but if there are // some pixels in the half-windows, the pooling layer will actually put one // additional output. If you set LegacyPadding to this, we will compute the // equivalent padding strategy in caffe2 so that the output size is // backward compatible with Caffe. // THIS IS NOW DEPRECATED. ANY non-conventional use has to be manually // converted. LegacyPadding_CAFFE_LEGACY_POOLING LegacyPadding = 3 )
func (LegacyPadding) Enum ¶
func (x LegacyPadding) Enum() *LegacyPadding
func (LegacyPadding) EnumDescriptor ¶
func (LegacyPadding) EnumDescriptor() ([]byte, []int)
func (LegacyPadding) String ¶
func (x LegacyPadding) String() string
func (*LegacyPadding) UnmarshalJSON ¶
func (x *LegacyPadding) UnmarshalJSON(data []byte) error
type MetaNetDef ¶
type MetaNetDef struct {
Blobs []*BlobsMap `protobuf:"bytes,1,rep,name=blobs" json:"blobs,omitempty"`
// Text-format serialized NetDefs.
Nets []*NetsMap `protobuf:"bytes,2,rep,name=nets" json:"nets,omitempty"`
// Info about where the model comes from. Possible use cases:
// 1) sanity check or diagnose
// 2) provide info for evaluation.
ModelInfo *ModelInfo `protobuf:"bytes,3,opt,name=modelInfo" json:"modelInfo,omitempty"`
Plans []*PlansMap `protobuf:"bytes,4,rep,name=plans" json:"plans,omitempty"`
ApplicationSpecificInfo []*StringMap `protobuf:"bytes,5,rep,name=applicationSpecificInfo" json:"applicationSpecificInfo,omitempty"`
}
func (*MetaNetDef) Descriptor ¶
func (*MetaNetDef) Descriptor() ([]byte, []int)
func (*MetaNetDef) GetApplicationSpecificInfo ¶
func (m *MetaNetDef) GetApplicationSpecificInfo() []*StringMap
func (*MetaNetDef) GetBlobs ¶
func (m *MetaNetDef) GetBlobs() []*BlobsMap
func (*MetaNetDef) GetModelInfo ¶
func (m *MetaNetDef) GetModelInfo() *ModelInfo
func (*MetaNetDef) GetNets ¶
func (m *MetaNetDef) GetNets() []*NetsMap
func (*MetaNetDef) GetPlans ¶
func (m *MetaNetDef) GetPlans() []*PlansMap
func (*MetaNetDef) Marshal ¶
func (m *MetaNetDef) Marshal() (dAtA []byte, err error)
func (*MetaNetDef) ProtoMessage ¶
func (*MetaNetDef) ProtoMessage()
func (*MetaNetDef) Reset ¶
func (m *MetaNetDef) Reset()
func (*MetaNetDef) Size ¶
func (m *MetaNetDef) Size() (n int)
func (*MetaNetDef) String ¶
func (m *MetaNetDef) String() string
func (*MetaNetDef) Unmarshal ¶
func (m *MetaNetDef) Unmarshal(dAtA []byte) error
func (*MetaNetDef) XXX_DiscardUnknown ¶
func (m *MetaNetDef) XXX_DiscardUnknown()
func (*MetaNetDef) XXX_Marshal ¶
func (m *MetaNetDef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MetaNetDef) XXX_Merge ¶
func (dst *MetaNetDef) XXX_Merge(src proto.Message)
func (*MetaNetDef) XXX_Size ¶
func (m *MetaNetDef) XXX_Size() int
func (*MetaNetDef) XXX_Unmarshal ¶
func (m *MetaNetDef) XXX_Unmarshal(b []byte) error
type ModelInfo ¶
type ModelInfo struct {
Project string `protobuf:"bytes,1,opt,name=project" json:"project"`
ModelClass string `protobuf:"bytes,2,opt,name=modelClass" json:"modelClass"`
Version string `protobuf:"bytes,3,opt,name=version" json:"version"`
PredictorType *string `protobuf:"bytes,4,opt,name=predictorType,def=SINGLE_PREDICTOR" json:"predictorType,omitempty"`
ModelId string `protobuf:"bytes,5,opt,name=modelId" json:"modelId"`
}
func (*ModelInfo) Descriptor ¶
func (*ModelInfo) GetModelClass ¶
func (*ModelInfo) GetModelId ¶
func (*ModelInfo) GetPredictorType ¶
func (*ModelInfo) GetProject ¶
func (*ModelInfo) GetVersion ¶
func (*ModelInfo) ProtoMessage ¶
func (*ModelInfo) ProtoMessage()
func (*ModelInfo) XXX_DiscardUnknown ¶
func (m *ModelInfo) XXX_DiscardUnknown()
func (*ModelInfo) XXX_Marshal ¶
func (*ModelInfo) XXX_Unmarshal ¶
type NetDef ¶
type NetDef struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name"`
// Operators that the network contains.
// Note: this is not named "operator" because that is a reserved word in C++.
Op []*OperatorDef `protobuf:"bytes,2,rep,name=op" json:"op,omitempty"`
// The type of network that the net should be run with. This routes the
// network instantiation to different execution modes. The default mode,
// "simple", runs the operators in a sequential way as the original Caffe
// implementation does.
Type string `protobuf:"bytes,3,opt,name=type" json:"type"`
// the number of workers, if the operators in the network is to be carried out
// in parallel.
// Note: This is to be deprecated. Using the arg field with "num_workers" as
// key.
NumWorkers int32 `protobuf:"varint,4,opt,name=num_workers,json=numWorkers" json:"num_workers"` // Deprecated: Do not use.
// The device option for the network. If a network has a specific device
// option and one of its operators does not have it set, we will copy over the
// device option to the operator. This allows us to basically avoid putting
// device options at every operator.
DeviceOption *DeviceOption `protobuf:"bytes,5,opt,name=device_option,json=deviceOption" json:"device_option,omitempty"`
Arg []*Argument `protobuf:"bytes,6,rep,name=arg" json:"arg,omitempty"`
// Two optional fields to declare external input and output of a net.
// If these two are set, when a net is created, we will sanity check for
// every op whether its input is declared (either as an external input,
// or as an intermediate blob created by one of the ops), and sanity check
// if all blobs in external_output are produced.
//
// In cases of memory optimization, declaring external_input and
// external_output also ensures that storage of these blobs are persistent:
// for any blob in external_input and external_output, after a network run
// finishes, their content are actually the right content. Any intermediate
// blobs' contents may be overwritten.
ExternalInput []string `protobuf:"bytes,7,rep,name=external_input,json=externalInput" json:"external_input,omitempty"`
ExternalOutput []string `protobuf:"bytes,8,rep,name=external_output,json=externalOutput" json:"external_output,omitempty"`
}
Network definition.
func (*NetDef) Descriptor ¶
func (*NetDef) GetDeviceOption ¶
func (m *NetDef) GetDeviceOption() *DeviceOption
func (*NetDef) GetExternalInput ¶
func (*NetDef) GetExternalOutput ¶
func (*NetDef) GetNumWorkers
deprecated
func (*NetDef) GetOp ¶
func (m *NetDef) GetOp() []*OperatorDef
func (*NetDef) ProtoMessage ¶
func (*NetDef) ProtoMessage()
func (*NetDef) XXX_DiscardUnknown ¶
func (m *NetDef) XXX_DiscardUnknown()
func (*NetDef) XXX_Marshal ¶
func (*NetDef) XXX_Unmarshal ¶
type NetsMap ¶
type NetsMap struct {
Key string `protobuf:"bytes,1,req,name=key" json:"key"`
Value *NetDef `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
}
func (*NetsMap) Descriptor ¶
func (*NetsMap) ProtoMessage ¶
func (*NetsMap) ProtoMessage()
func (*NetsMap) XXX_DiscardUnknown ¶
func (m *NetsMap) XXX_DiscardUnknown()
func (*NetsMap) XXX_Marshal ¶
func (*NetsMap) XXX_Unmarshal ¶
type NodeProto ¶
type NodeProto struct {
// Links to non-terminal children nodes
Children []*NodeProto `protobuf:"bytes,1,rep,name=children" json:"children,omitempty"`
// Links to terminal (leaf) nodes
WordIds []int32 `protobuf:"varint,2,rep,name=word_ids,json=wordIds" json:"word_ids,omitempty"`
Offset int32 `protobuf:"varint,3,opt,name=offset" json:"offset"`
Name string `protobuf:"bytes,4,opt,name=name" json:"name"`
Scores []float32 `protobuf:"fixed32,5,rep,name=scores" json:"scores,omitempty"`
}
Each node in the hierarchy contains links to either leaf nodes or more non-terminal nodes
func (*NodeProto) Descriptor ¶
func (*NodeProto) GetChildren ¶
func (*NodeProto) GetWordIds ¶
func (*NodeProto) ProtoMessage ¶
func (*NodeProto) ProtoMessage()
func (*NodeProto) XXX_DiscardUnknown ¶
func (m *NodeProto) XXX_DiscardUnknown()
func (*NodeProto) XXX_Marshal ¶
func (*NodeProto) XXX_Unmarshal ¶
type OperatorDef ¶
type OperatorDef struct {
Input []string `protobuf:"bytes,1,rep,name=input" json:"input,omitempty"`
Output []string `protobuf:"bytes,2,rep,name=output" json:"output,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name" json:"name"`
// the operator type. This is needed to create the object from the operator
// registry.
Type string `protobuf:"bytes,4,opt,name=type" json:"type"`
Arg []*Argument `protobuf:"bytes,5,rep,name=arg" json:"arg,omitempty"`
// The device option that the operator should run under.
DeviceOption *DeviceOption `protobuf:"bytes,6,opt,name=device_option,json=deviceOption" json:"device_option,omitempty"`
// Optionally, one can specify an engine when there are multiple
// implementations available simultaneously for one device type.
// If one specifies an engine but that engine does not exist in the compiled
// Caffe2 binary, Caffe2 will fall back to the default engine of that device
// type.
Engine string `protobuf:"bytes,7,opt,name=engine" json:"engine"`
// Additional 'fake' inputs used for expressing control dependencies
// in the operator graph. This can be used to ensure that an
// operator does not run until another operator is ready, for e.g.
// scheduling control. These are not passed as actual inputs to the
// Operator implementation, and are only used by the Net class for
// scheduling purposes.
ControlInput []string `protobuf:"bytes,8,rep,name=control_input,json=controlInput" json:"control_input,omitempty"`
// is_gradient_op argument is only used as a hint in shape inference
// and has no runtime significance
IsGradientOp *bool `protobuf:"varint,9,opt,name=is_gradient_op,json=isGradientOp,def=0" json:"is_gradient_op,omitempty"`
}
Operator Definition.
func (*OperatorDef) Descriptor ¶
func (*OperatorDef) Descriptor() ([]byte, []int)
func (*OperatorDef) GetArg ¶
func (m *OperatorDef) GetArg() []*Argument
func (*OperatorDef) GetControlInput ¶
func (m *OperatorDef) GetControlInput() []string
func (*OperatorDef) GetDeviceOption ¶
func (m *OperatorDef) GetDeviceOption() *DeviceOption
func (*OperatorDef) GetEngine ¶
func (m *OperatorDef) GetEngine() string
func (*OperatorDef) GetInput ¶
func (m *OperatorDef) GetInput() []string
func (*OperatorDef) GetIsGradientOp ¶
func (m *OperatorDef) GetIsGradientOp() bool
func (*OperatorDef) GetName ¶
func (m *OperatorDef) GetName() string
func (*OperatorDef) GetOutput ¶
func (m *OperatorDef) GetOutput() []string
func (*OperatorDef) GetType ¶
func (m *OperatorDef) GetType() string
func (*OperatorDef) Marshal ¶
func (m *OperatorDef) Marshal() (dAtA []byte, err error)
func (*OperatorDef) ProtoMessage ¶
func (*OperatorDef) ProtoMessage()
func (*OperatorDef) Reset ¶
func (m *OperatorDef) Reset()
func (*OperatorDef) Size ¶
func (m *OperatorDef) Size() (n int)
func (*OperatorDef) String ¶
func (m *OperatorDef) String() string
func (*OperatorDef) Unmarshal ¶
func (m *OperatorDef) Unmarshal(dAtA []byte) error
func (*OperatorDef) XXX_DiscardUnknown ¶
func (m *OperatorDef) XXX_DiscardUnknown()
func (*OperatorDef) XXX_Marshal ¶
func (m *OperatorDef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OperatorDef) XXX_Merge ¶
func (dst *OperatorDef) XXX_Merge(src proto.Message)
func (*OperatorDef) XXX_Size ¶
func (m *OperatorDef) XXX_Size() int
func (*OperatorDef) XXX_Unmarshal ¶
func (m *OperatorDef) XXX_Unmarshal(b []byte) error
type PathNodeProto ¶
type PathNodeProto struct {
// Parameter matrix offset for this node
Index int32 `protobuf:"varint,1,opt,name=index" json:"index"`
// Number of children
Length int32 `protobuf:"varint,2,opt,name=length" json:"length"`
// Index of the next node in the path
Target int32 `protobuf:"varint,3,opt,name=target" json:"target"`
}
Represents a node in the path from the root node all the way down to the word (leaf).
func (*PathNodeProto) Descriptor ¶
func (*PathNodeProto) Descriptor() ([]byte, []int)
func (*PathNodeProto) GetIndex ¶
func (m *PathNodeProto) GetIndex() int32
func (*PathNodeProto) GetLength ¶
func (m *PathNodeProto) GetLength() int32
func (*PathNodeProto) GetTarget ¶
func (m *PathNodeProto) GetTarget() int32
func (*PathNodeProto) Marshal ¶
func (m *PathNodeProto) Marshal() (dAtA []byte, err error)
func (*PathNodeProto) ProtoMessage ¶
func (*PathNodeProto) ProtoMessage()
func (*PathNodeProto) Reset ¶
func (m *PathNodeProto) Reset()
func (*PathNodeProto) Size ¶
func (m *PathNodeProto) Size() (n int)
func (*PathNodeProto) String ¶
func (m *PathNodeProto) String() string
func (*PathNodeProto) Unmarshal ¶
func (m *PathNodeProto) Unmarshal(dAtA []byte) error
func (*PathNodeProto) XXX_DiscardUnknown ¶
func (m *PathNodeProto) XXX_DiscardUnknown()
func (*PathNodeProto) XXX_Marshal ¶
func (m *PathNodeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PathNodeProto) XXX_Merge ¶
func (dst *PathNodeProto) XXX_Merge(src proto.Message)
func (*PathNodeProto) XXX_Size ¶
func (m *PathNodeProto) XXX_Size() int
func (*PathNodeProto) XXX_Unmarshal ¶
func (m *PathNodeProto) XXX_Unmarshal(b []byte) error
type PathProto ¶
type PathProto struct {
WordId int32 `protobuf:"varint,1,opt,name=word_id,json=wordId" json:"word_id"`
PathNodes []*PathNodeProto `protobuf:"bytes,2,rep,name=path_nodes,json=pathNodes" json:"path_nodes,omitempty"`
}
Each PathProto belongs to a word and is an array of nodes in the path from the root to the leaf (which is the word itself) in the tree.
func (*PathProto) Descriptor ¶
func (*PathProto) GetPathNodes ¶
func (m *PathProto) GetPathNodes() []*PathNodeProto
func (*PathProto) ProtoMessage ¶
func (*PathProto) ProtoMessage()
func (*PathProto) XXX_DiscardUnknown ¶
func (m *PathProto) XXX_DiscardUnknown()
func (*PathProto) XXX_Marshal ¶
func (*PathProto) XXX_Unmarshal ¶
type PlanDef ¶
type PlanDef struct {
// All the networks that are used in this execution. Note that networks should
// be ordered in the way they are executed, i.e. for a layer in a network, all
// its input blobs should already have been initialized by the layers or
// networks defined before it.
Name string `protobuf:"bytes,1,opt,name=name" json:"name"`
// The networks that are going to be used in this plan.
Network []*NetDef `protobuf:"bytes,2,rep,name=network" json:"network,omitempty"`
ExecutionStep []*ExecutionStep `protobuf:"bytes,3,rep,name=execution_step,json=executionStep" json:"execution_step,omitempty"`
}
func (*PlanDef) Descriptor ¶
func (*PlanDef) GetExecutionStep ¶
func (m *PlanDef) GetExecutionStep() []*ExecutionStep
func (*PlanDef) GetNetwork ¶
func (*PlanDef) ProtoMessage ¶
func (*PlanDef) ProtoMessage()
func (*PlanDef) XXX_DiscardUnknown ¶
func (m *PlanDef) XXX_DiscardUnknown()
func (*PlanDef) XXX_Marshal ¶
func (*PlanDef) XXX_Unmarshal ¶
type PlansMap ¶
type PlansMap struct {
Key string `protobuf:"bytes,1,req,name=key" json:"key"`
Value *PlanDef `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
}
func (*PlansMap) Descriptor ¶
func (*PlansMap) ProtoMessage ¶
func (*PlansMap) ProtoMessage()
func (*PlansMap) XXX_DiscardUnknown ¶
func (m *PlansMap) XXX_DiscardUnknown()
func (*PlansMap) XXX_Marshal ¶
func (*PlansMap) XXX_Unmarshal ¶
type PredictorConsts ¶
type PredictorConsts struct {
// Important - to ensure ordered traversal of the DB, these must be
// set in the given (lexicographic) order in the input DBReader.
META_NET_DEF *string `protobuf:"bytes,1,opt,name=META_NET_DEF,json=METANETDEF,def=!!META_NET_DEF" json:"META_NET_DEF,omitempty"`
PREDICTOR_DBREADER *string `` /* 130-byte string literal not displayed */
// Blob types used in MetaNetDef blobs
PARAMETERS_BLOB_TYPE *string `` /* 135-byte string literal not displayed */
INPUTS_BLOB_TYPE *string `protobuf:"bytes,4,opt,name=INPUTS_BLOB_TYPE,json=INPUTSBLOBTYPE,def=INPUTS_BLOB_TYPE" json:"INPUTS_BLOB_TYPE,omitempty"`
OUTPUTS_BLOB_TYPE *string `protobuf:"bytes,5,opt,name=OUTPUTS_BLOB_TYPE,json=OUTPUTSBLOBTYPE,def=OUTPUTS_BLOB_TYPE" json:"OUTPUTS_BLOB_TYPE,omitempty"`
// Net types used in MetaNetDef nets
GLOBAL_INIT_NET_TYPE *string `` /* 134-byte string literal not displayed */
PREDICT_INIT_NET_TYPE *string `` /* 138-byte string literal not displayed */
PREDICT_NET_TYPE *string `protobuf:"bytes,8,opt,name=PREDICT_NET_TYPE,json=PREDICTNETTYPE,def=PREDICT_NET_TYPE" json:"PREDICT_NET_TYPE,omitempty"`
SINGLE_PREDICTOR *string `protobuf:"bytes,9,opt,name=SINGLE_PREDICTOR,json=SINGLEPREDICTOR,def=SINGLE_PREDICTOR" json:"SINGLE_PREDICTOR,omitempty"`
MULTI_PREDICTOR *string `protobuf:"bytes,10,opt,name=MULTI_PREDICTOR,json=MULTIPREDICTOR,def=MULTI_PREDICTOR" json:"MULTI_PREDICTOR,omitempty"`
TRAIN_INIT_PLAN_TYPE *string `` /* 135-byte string literal not displayed */
TRAIN_PLAN_TYPE *string `protobuf:"bytes,12,opt,name=TRAIN_PLAN_TYPE,json=TRAINPLANTYPE,def=TRAIN_PLAN_TYPE" json:"TRAIN_PLAN_TYPE,omitempty"`
}
func (*PredictorConsts) Descriptor ¶
func (*PredictorConsts) Descriptor() ([]byte, []int)
func (*PredictorConsts) GetGLOBAL_INIT_NET_TYPE ¶
func (m *PredictorConsts) GetGLOBAL_INIT_NET_TYPE() string
func (*PredictorConsts) GetINPUTS_BLOB_TYPE ¶
func (m *PredictorConsts) GetINPUTS_BLOB_TYPE() string
func (*PredictorConsts) GetMETA_NET_DEF ¶
func (m *PredictorConsts) GetMETA_NET_DEF() string
func (*PredictorConsts) GetMULTI_PREDICTOR ¶
func (m *PredictorConsts) GetMULTI_PREDICTOR() string
func (*PredictorConsts) GetOUTPUTS_BLOB_TYPE ¶
func (m *PredictorConsts) GetOUTPUTS_BLOB_TYPE() string
func (*PredictorConsts) GetPARAMETERS_BLOB_TYPE ¶
func (m *PredictorConsts) GetPARAMETERS_BLOB_TYPE() string
func (*PredictorConsts) GetPREDICTOR_DBREADER ¶
func (m *PredictorConsts) GetPREDICTOR_DBREADER() string
func (*PredictorConsts) GetPREDICT_INIT_NET_TYPE ¶
func (m *PredictorConsts) GetPREDICT_INIT_NET_TYPE() string
func (*PredictorConsts) GetPREDICT_NET_TYPE ¶
func (m *PredictorConsts) GetPREDICT_NET_TYPE() string
func (*PredictorConsts) GetSINGLE_PREDICTOR ¶
func (m *PredictorConsts) GetSINGLE_PREDICTOR() string
func (*PredictorConsts) GetTRAIN_INIT_PLAN_TYPE ¶
func (m *PredictorConsts) GetTRAIN_INIT_PLAN_TYPE() string
func (*PredictorConsts) GetTRAIN_PLAN_TYPE ¶
func (m *PredictorConsts) GetTRAIN_PLAN_TYPE() string
func (*PredictorConsts) Marshal ¶
func (m *PredictorConsts) Marshal() (dAtA []byte, err error)
func (*PredictorConsts) ProtoMessage ¶
func (*PredictorConsts) ProtoMessage()
func (*PredictorConsts) Reset ¶
func (m *PredictorConsts) Reset()
func (*PredictorConsts) Size ¶
func (m *PredictorConsts) Size() (n int)
func (*PredictorConsts) String ¶
func (m *PredictorConsts) String() string
func (*PredictorConsts) Unmarshal ¶
func (m *PredictorConsts) Unmarshal(dAtA []byte) error
func (*PredictorConsts) XXX_DiscardUnknown ¶
func (m *PredictorConsts) XXX_DiscardUnknown()
func (*PredictorConsts) XXX_Marshal ¶
func (m *PredictorConsts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PredictorConsts) XXX_Merge ¶
func (dst *PredictorConsts) XXX_Merge(src proto.Message)
func (*PredictorConsts) XXX_Size ¶
func (m *PredictorConsts) XXX_Size() int
func (*PredictorConsts) XXX_Unmarshal ¶
func (m *PredictorConsts) XXX_Unmarshal(b []byte) error
type ProfDAGProto ¶
type ProfDAGProto struct {
// The name for the operator
Name string `protobuf:"bytes,1,req,name=name" json:"name"`
// The mean execution time
Mean float32 `protobuf:"fixed32,2,req,name=mean" json:"mean"`
// The standard deviation
Stddev float32 `protobuf:"fixed32,3,req,name=stddev" json:"stddev"`
}
Protobuf format to serialize profiler data
func (*ProfDAGProto) Descriptor ¶
func (*ProfDAGProto) Descriptor() ([]byte, []int)
func (*ProfDAGProto) GetMean ¶
func (m *ProfDAGProto) GetMean() float32
func (*ProfDAGProto) GetName ¶
func (m *ProfDAGProto) GetName() string
func (*ProfDAGProto) GetStddev ¶
func (m *ProfDAGProto) GetStddev() float32
func (*ProfDAGProto) Marshal ¶
func (m *ProfDAGProto) Marshal() (dAtA []byte, err error)
func (*ProfDAGProto) ProtoMessage ¶
func (*ProfDAGProto) ProtoMessage()
func (*ProfDAGProto) Reset ¶
func (m *ProfDAGProto) Reset()
func (*ProfDAGProto) Size ¶
func (m *ProfDAGProto) Size() (n int)
func (*ProfDAGProto) String ¶
func (m *ProfDAGProto) String() string
func (*ProfDAGProto) Unmarshal ¶
func (m *ProfDAGProto) Unmarshal(dAtA []byte) error
func (*ProfDAGProto) XXX_DiscardUnknown ¶
func (m *ProfDAGProto) XXX_DiscardUnknown()
func (*ProfDAGProto) XXX_Marshal ¶
func (m *ProfDAGProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProfDAGProto) XXX_Merge ¶
func (dst *ProfDAGProto) XXX_Merge(src proto.Message)
func (*ProfDAGProto) XXX_Size ¶
func (m *ProfDAGProto) XXX_Size() int
func (*ProfDAGProto) XXX_Unmarshal ¶
func (m *ProfDAGProto) XXX_Unmarshal(b []byte) error
type ProfDAGProtos ¶
type ProfDAGProtos struct {
Stats []*ProfDAGProto `protobuf:"bytes,1,rep,name=stats" json:"stats,omitempty"`
}
func (*ProfDAGProtos) Descriptor ¶
func (*ProfDAGProtos) Descriptor() ([]byte, []int)
func (*ProfDAGProtos) GetStats ¶
func (m *ProfDAGProtos) GetStats() []*ProfDAGProto
func (*ProfDAGProtos) Marshal ¶
func (m *ProfDAGProtos) Marshal() (dAtA []byte, err error)
func (*ProfDAGProtos) ProtoMessage ¶
func (*ProfDAGProtos) ProtoMessage()
func (*ProfDAGProtos) Reset ¶
func (m *ProfDAGProtos) Reset()
func (*ProfDAGProtos) Size ¶
func (m *ProfDAGProtos) Size() (n int)
func (*ProfDAGProtos) String ¶
func (m *ProfDAGProtos) String() string
func (*ProfDAGProtos) Unmarshal ¶
func (m *ProfDAGProtos) Unmarshal(dAtA []byte) error
func (*ProfDAGProtos) XXX_DiscardUnknown ¶
func (m *ProfDAGProtos) XXX_DiscardUnknown()
func (*ProfDAGProtos) XXX_Marshal ¶
func (m *ProfDAGProtos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProfDAGProtos) XXX_Merge ¶
func (dst *ProfDAGProtos) XXX_Merge(src proto.Message)
func (*ProfDAGProtos) XXX_Size ¶
func (m *ProfDAGProtos) XXX_Size() int
func (*ProfDAGProtos) XXX_Unmarshal ¶
func (m *ProfDAGProtos) XXX_Unmarshal(b []byte) error
type QTensorProto ¶
type QTensorProto struct {
Dims []int64 `protobuf:"varint,1,rep,name=dims" json:"dims,omitempty"`
Precision int32 `protobuf:"varint,2,req,name=precision" json:"precision"`
Scale float64 `protobuf:"fixed64,3,req,name=scale" json:"scale"`
Bias float64 `protobuf:"fixed64,4,req,name=bias" json:"bias"`
IsSigned bool `protobuf:"varint,5,req,name=is_signed,json=isSigned" json:"is_signed"`
Data []int32 `protobuf:"varint,6,rep,packed,name=data" json:"data,omitempty"`
Name string `protobuf:"bytes,7,opt,name=name" json:"name"`
}
func (*QTensorProto) Descriptor ¶
func (*QTensorProto) Descriptor() ([]byte, []int)
func (*QTensorProto) GetBias ¶
func (m *QTensorProto) GetBias() float64
func (*QTensorProto) GetData ¶
func (m *QTensorProto) GetData() []int32
func (*QTensorProto) GetDims ¶
func (m *QTensorProto) GetDims() []int64
func (*QTensorProto) GetIsSigned ¶
func (m *QTensorProto) GetIsSigned() bool
func (*QTensorProto) GetName ¶
func (m *QTensorProto) GetName() string
func (*QTensorProto) GetPrecision ¶
func (m *QTensorProto) GetPrecision() int32
func (*QTensorProto) GetScale ¶
func (m *QTensorProto) GetScale() float64
func (*QTensorProto) Marshal ¶
func (m *QTensorProto) Marshal() (dAtA []byte, err error)
func (*QTensorProto) ProtoMessage ¶
func (*QTensorProto) ProtoMessage()
func (*QTensorProto) Reset ¶
func (m *QTensorProto) Reset()
func (*QTensorProto) Size ¶
func (m *QTensorProto) Size() (n int)
func (*QTensorProto) String ¶
func (m *QTensorProto) String() string
func (*QTensorProto) Unmarshal ¶
func (m *QTensorProto) Unmarshal(dAtA []byte) error
func (*QTensorProto) XXX_DiscardUnknown ¶
func (m *QTensorProto) XXX_DiscardUnknown()
func (*QTensorProto) XXX_Marshal ¶
func (m *QTensorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QTensorProto) XXX_Merge ¶
func (dst *QTensorProto) XXX_Merge(src proto.Message)
func (*QTensorProto) XXX_Size ¶
func (m *QTensorProto) XXX_Size() int
func (*QTensorProto) XXX_Unmarshal ¶
func (m *QTensorProto) XXX_Unmarshal(b []byte) error
type StringMap ¶
type StringMap struct {
Key string `protobuf:"bytes,1,req,name=key" json:"key"`
Value string `protobuf:"bytes,2,req,name=value" json:"value"`
}
func (*StringMap) Descriptor ¶
func (*StringMap) ProtoMessage ¶
func (*StringMap) ProtoMessage()
func (*StringMap) XXX_DiscardUnknown ¶
func (m *StringMap) XXX_DiscardUnknown()
func (*StringMap) XXX_Marshal ¶
func (*StringMap) XXX_Unmarshal ¶
type TensorProto ¶
type TensorProto struct {
// The dimensions in the tensor.
Dims []int64 `protobuf:"varint,1,rep,name=dims" json:"dims,omitempty"`
DataType *TensorProto_DataType `protobuf:"varint,2,opt,name=data_type,json=dataType,enum=caffe2.TensorProto_DataType,def=1" json:"data_type,omitempty"`
// For float
FloatData []float32 `protobuf:"fixed32,3,rep,packed,name=float_data,json=floatData" json:"float_data,omitempty"`
// For int32, uint8, int8, uint16, int16, bool, and float16
// Note about float16: in storage we will basically convert float16 byte-wise
// to unsigned short and then store them in the int32_data field.
Int32Data []int32 `protobuf:"varint,4,rep,packed,name=int32_data,json=int32Data" json:"int32_data,omitempty"`
// For bytes
ByteData []byte `protobuf:"bytes,5,opt,name=byte_data,json=byteData" json:"byte_data"`
// For strings
StringData [][]byte `protobuf:"bytes,6,rep,name=string_data,json=stringData" json:"string_data,omitempty"`
// For double
DoubleData []float64 `protobuf:"fixed64,9,rep,packed,name=double_data,json=doubleData" json:"double_data,omitempty"`
// For int64
Int64Data []int64 `protobuf:"varint,10,rep,packed,name=int64_data,json=int64Data" json:"int64_data,omitempty"`
// Optionally, a name for the tensor.
Name string `protobuf:"bytes,7,opt,name=name" json:"name"`
// Optionally, a TensorProto can contain the details about the device that
// it was serialized from. This is useful in cases like snapshotting a whole
// workspace in a multi-GPU environment.
DeviceDetail *DeviceOption `protobuf:"bytes,8,opt,name=device_detail,json=deviceDetail" json:"device_detail,omitempty"`
Segment *TensorProto_Segment `protobuf:"bytes,11,opt,name=segment" json:"segment,omitempty"`
}
TensorProto stores serialized Tensor objects.
func (*TensorProto) Descriptor ¶
func (*TensorProto) Descriptor() ([]byte, []int)
func (*TensorProto) GetByteData ¶
func (m *TensorProto) GetByteData() []byte
func (*TensorProto) GetDataType ¶
func (m *TensorProto) GetDataType() TensorProto_DataType
func (*TensorProto) GetDeviceDetail ¶
func (m *TensorProto) GetDeviceDetail() *DeviceOption
func (*TensorProto) GetDims ¶
func (m *TensorProto) GetDims() []int64
func (*TensorProto) GetDoubleData ¶
func (m *TensorProto) GetDoubleData() []float64
func (*TensorProto) GetFloatData ¶
func (m *TensorProto) GetFloatData() []float32
func (*TensorProto) GetInt32Data ¶
func (m *TensorProto) GetInt32Data() []int32
func (*TensorProto) GetInt64Data ¶
func (m *TensorProto) GetInt64Data() []int64
func (*TensorProto) GetName ¶
func (m *TensorProto) GetName() string
func (*TensorProto) GetSegment ¶
func (m *TensorProto) GetSegment() *TensorProto_Segment
func (*TensorProto) GetStringData ¶
func (m *TensorProto) GetStringData() [][]byte
func (*TensorProto) Marshal ¶
func (m *TensorProto) Marshal() (dAtA []byte, err error)
func (*TensorProto) ProtoMessage ¶
func (*TensorProto) ProtoMessage()
func (*TensorProto) Reset ¶
func (m *TensorProto) Reset()
func (*TensorProto) Size ¶
func (m *TensorProto) Size() (n int)
func (*TensorProto) String ¶
func (m *TensorProto) String() string
func (*TensorProto) Unmarshal ¶
func (m *TensorProto) Unmarshal(dAtA []byte) error
func (*TensorProto) XXX_DiscardUnknown ¶
func (m *TensorProto) XXX_DiscardUnknown()
func (*TensorProto) XXX_Marshal ¶
func (m *TensorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TensorProto) XXX_Merge ¶
func (dst *TensorProto) XXX_Merge(src proto.Message)
func (*TensorProto) XXX_Size ¶
func (m *TensorProto) XXX_Size() int
func (*TensorProto) XXX_Unmarshal ¶
func (m *TensorProto) XXX_Unmarshal(b []byte) error
type TensorProto_DataType ¶
type TensorProto_DataType int32
const ( TensorProto_UNDEFINED TensorProto_DataType = 0 TensorProto_FLOAT TensorProto_DataType = 1 TensorProto_INT32 TensorProto_DataType = 2 TensorProto_BYTE TensorProto_DataType = 3 TensorProto_STRING TensorProto_DataType = 4 // Less-commonly used data types. TensorProto_BOOL TensorProto_DataType = 5 TensorProto_UINT8 TensorProto_DataType = 6 TensorProto_INT8 TensorProto_DataType = 7 TensorProto_UINT16 TensorProto_DataType = 8 TensorProto_INT16 TensorProto_DataType = 9 TensorProto_INT64 TensorProto_DataType = 10 TensorProto_FLOAT16 TensorProto_DataType = 12 TensorProto_DOUBLE TensorProto_DataType = 13 )
const Default_TensorProto_DataType TensorProto_DataType = TensorProto_FLOAT
const Default_TensorShape_DataType TensorProto_DataType = TensorProto_FLOAT
func (TensorProto_DataType) Enum ¶
func (x TensorProto_DataType) Enum() *TensorProto_DataType
func (TensorProto_DataType) EnumDescriptor ¶
func (TensorProto_DataType) EnumDescriptor() ([]byte, []int)
func (TensorProto_DataType) String ¶
func (x TensorProto_DataType) String() string
func (*TensorProto_DataType) UnmarshalJSON ¶
func (x *TensorProto_DataType) UnmarshalJSON(data []byte) error
type TensorProto_Segment ¶
type TensorProto_Segment struct {
Begin int64 `protobuf:"varint,1,req,name=begin" json:"begin"`
End int64 `protobuf:"varint,2,req,name=end" json:"end"`
}
When loading from chunks this is going to indicate where to put data in the full array. When not used full data must to be present
func (*TensorProto_Segment) Descriptor ¶
func (*TensorProto_Segment) Descriptor() ([]byte, []int)
func (*TensorProto_Segment) GetBegin ¶
func (m *TensorProto_Segment) GetBegin() int64
func (*TensorProto_Segment) GetEnd ¶
func (m *TensorProto_Segment) GetEnd() int64
func (*TensorProto_Segment) Marshal ¶
func (m *TensorProto_Segment) Marshal() (dAtA []byte, err error)
func (*TensorProto_Segment) MarshalTo ¶
func (m *TensorProto_Segment) MarshalTo(dAtA []byte) (int, error)
func (*TensorProto_Segment) ProtoMessage ¶
func (*TensorProto_Segment) ProtoMessage()
func (*TensorProto_Segment) Reset ¶
func (m *TensorProto_Segment) Reset()
func (*TensorProto_Segment) Size ¶
func (m *TensorProto_Segment) Size() (n int)
func (*TensorProto_Segment) String ¶
func (m *TensorProto_Segment) String() string
func (*TensorProto_Segment) Unmarshal ¶
func (m *TensorProto_Segment) Unmarshal(dAtA []byte) error
func (*TensorProto_Segment) XXX_DiscardUnknown ¶
func (m *TensorProto_Segment) XXX_DiscardUnknown()
func (*TensorProto_Segment) XXX_Marshal ¶
func (m *TensorProto_Segment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TensorProto_Segment) XXX_Merge ¶
func (dst *TensorProto_Segment) XXX_Merge(src proto.Message)
func (*TensorProto_Segment) XXX_Size ¶
func (m *TensorProto_Segment) XXX_Size() int
func (*TensorProto_Segment) XXX_Unmarshal ¶
func (m *TensorProto_Segment) XXX_Unmarshal(b []byte) error
type TensorProtos ¶
type TensorProtos struct {
Protos []*TensorProto `protobuf:"bytes,1,rep,name=protos" json:"protos,omitempty"`
}
TensorProtos stores multiple TensorProto objects in one single proto. This is useful for small tensors; For anything big, consider using a DB for storage.
func (*TensorProtos) Descriptor ¶
func (*TensorProtos) Descriptor() ([]byte, []int)
func (*TensorProtos) GetProtos ¶
func (m *TensorProtos) GetProtos() []*TensorProto
func (*TensorProtos) Marshal ¶
func (m *TensorProtos) Marshal() (dAtA []byte, err error)
func (*TensorProtos) ProtoMessage ¶
func (*TensorProtos) ProtoMessage()
func (*TensorProtos) Reset ¶
func (m *TensorProtos) Reset()
func (*TensorProtos) Size ¶
func (m *TensorProtos) Size() (n int)
func (*TensorProtos) String ¶
func (m *TensorProtos) String() string
func (*TensorProtos) Unmarshal ¶
func (m *TensorProtos) Unmarshal(dAtA []byte) error
func (*TensorProtos) XXX_DiscardUnknown ¶
func (m *TensorProtos) XXX_DiscardUnknown()
func (*TensorProtos) XXX_Marshal ¶
func (m *TensorProtos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TensorProtos) XXX_Merge ¶
func (dst *TensorProtos) XXX_Merge(src proto.Message)
func (*TensorProtos) XXX_Size ¶
func (m *TensorProtos) XXX_Size() int
func (*TensorProtos) XXX_Unmarshal ¶
func (m *TensorProtos) XXX_Unmarshal(b []byte) error
type TensorShape ¶
type TensorShape struct {
Dims []int64 `protobuf:"varint,1,rep,name=dims" json:"dims,omitempty"`
DataType *TensorProto_DataType `protobuf:"varint,2,opt,name=data_type,json=dataType,enum=caffe2.TensorProto_DataType,def=1" json:"data_type,omitempty"`
UnknownDims []int32 `protobuf:"varint,3,rep,name=unknown_dims,json=unknownDims" json:"unknown_dims,omitempty"`
UnknownShape *bool `protobuf:"varint,4,opt,name=unknown_shape,json=unknownShape,def=0" json:"unknown_shape,omitempty"`
Name string `protobuf:"bytes,5,opt,name=name" json:"name"`
}
func (*TensorShape) Descriptor ¶
func (*TensorShape) Descriptor() ([]byte, []int)
func (*TensorShape) GetDataType ¶
func (m *TensorShape) GetDataType() TensorProto_DataType
func (*TensorShape) GetDims ¶
func (m *TensorShape) GetDims() []int64
func (*TensorShape) GetName ¶
func (m *TensorShape) GetName() string
func (*TensorShape) GetUnknownDims ¶
func (m *TensorShape) GetUnknownDims() []int32
func (*TensorShape) GetUnknownShape ¶
func (m *TensorShape) GetUnknownShape() bool
func (*TensorShape) Marshal ¶
func (m *TensorShape) Marshal() (dAtA []byte, err error)
func (*TensorShape) ProtoMessage ¶
func (*TensorShape) ProtoMessage()
func (*TensorShape) Reset ¶
func (m *TensorShape) Reset()
func (*TensorShape) Size ¶
func (m *TensorShape) Size() (n int)
func (*TensorShape) String ¶
func (m *TensorShape) String() string
func (*TensorShape) Unmarshal ¶
func (m *TensorShape) Unmarshal(dAtA []byte) error
func (*TensorShape) XXX_DiscardUnknown ¶
func (m *TensorShape) XXX_DiscardUnknown()
func (*TensorShape) XXX_Marshal ¶
func (m *TensorShape) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TensorShape) XXX_Merge ¶
func (dst *TensorShape) XXX_Merge(src proto.Message)
func (*TensorShape) XXX_Size ¶
func (m *TensorShape) XXX_Size() int
func (*TensorShape) XXX_Unmarshal ¶
func (m *TensorShape) XXX_Unmarshal(b []byte) error
type TensorShapes ¶
type TensorShapes struct {
Shapes []*TensorShape `protobuf:"bytes,1,rep,name=shapes" json:"shapes,omitempty"`
}
func (*TensorShapes) Descriptor ¶
func (*TensorShapes) Descriptor() ([]byte, []int)
func (*TensorShapes) GetShapes ¶
func (m *TensorShapes) GetShapes() []*TensorShape
func (*TensorShapes) Marshal ¶
func (m *TensorShapes) Marshal() (dAtA []byte, err error)
func (*TensorShapes) ProtoMessage ¶
func (*TensorShapes) ProtoMessage()
func (*TensorShapes) Reset ¶
func (m *TensorShapes) Reset()
func (*TensorShapes) Size ¶
func (m *TensorShapes) Size() (n int)
func (*TensorShapes) String ¶
func (m *TensorShapes) String() string
func (*TensorShapes) Unmarshal ¶
func (m *TensorShapes) Unmarshal(dAtA []byte) error
func (*TensorShapes) XXX_DiscardUnknown ¶
func (m *TensorShapes) XXX_DiscardUnknown()
func (*TensorShapes) XXX_Marshal ¶
func (m *TensorShapes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TensorShapes) XXX_Merge ¶
func (dst *TensorShapes) XXX_Merge(src proto.Message)
func (*TensorShapes) XXX_Size ¶
func (m *TensorShapes) XXX_Size() int
func (*TensorShapes) XXX_Unmarshal ¶
func (m *TensorShapes) XXX_Unmarshal(b []byte) error
type TreeProto ¶
type TreeProto struct {
RootNode *NodeProto `protobuf:"bytes,1,opt,name=root_node,json=rootNode" json:"root_node,omitempty"`
}
Protobuf format to accept hierarchy for hierarchical softmax operator. TreeProto points to the root node.
func (*TreeProto) Descriptor ¶
func (*TreeProto) GetRootNode ¶
func (*TreeProto) ProtoMessage ¶
func (*TreeProto) ProtoMessage()
func (*TreeProto) XXX_DiscardUnknown ¶
func (m *TreeProto) XXX_DiscardUnknown()