Versions in this module Expand all Collapse all v1 v1.3.0 Dec 23, 2023 Changes in this version + var AttributeProto_AttributeType_name = map[int32]string + var AttributeProto_AttributeType_value = map[string]int32 + var ErrCorruptedData = errors.New("Unable to decode data") + var ErrNoDataFound = errors.New("No data found") + var ErrNotYetImplemented = errors.New("Not Yet Implemented") + var TensorProto_DataType_name = map[int32]string + var TensorProto_DataType_value = map[string]int32 + var Version_name = map[int32]string + var Version_value = map[string]int32 + type AttributeProto struct + DocString string + F float32 + Floats []float32 + G *GraphProto + Graphs []*GraphProto + I int64 + Ints []int64 + Name string + RefAttrName string + S []byte + Strings [][]byte + T *TensorProto + Tensors []*TensorProto + Type AttributeProto_AttributeType + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AttributeProto) Descriptor() ([]byte, []int) + func (*AttributeProto) ProtoMessage() + func (m *AttributeProto) GetDocString() string + func (m *AttributeProto) GetF() float32 + func (m *AttributeProto) GetFloats() []float32 + func (m *AttributeProto) GetG() *GraphProto + func (m *AttributeProto) GetGraphs() []*GraphProto + func (m *AttributeProto) GetI() int64 + func (m *AttributeProto) GetInts() []int64 + func (m *AttributeProto) GetName() string + func (m *AttributeProto) GetRefAttrName() string + func (m *AttributeProto) GetS() []byte + func (m *AttributeProto) GetStrings() [][]byte + func (m *AttributeProto) GetT() *TensorProto + func (m *AttributeProto) GetTensors() []*TensorProto + func (m *AttributeProto) GetType() AttributeProto_AttributeType + func (m *AttributeProto) Reset() + func (m *AttributeProto) String() string + func (m *AttributeProto) XXX_DiscardUnknown() + func (m *AttributeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AttributeProto) XXX_Merge(src proto.Message) + func (m *AttributeProto) XXX_Size() int + func (m *AttributeProto) XXX_Unmarshal(b []byte) error + type AttributeProto_AttributeType int32 + const AttributeProto_FLOAT + const AttributeProto_FLOATS + const AttributeProto_GRAPH + const AttributeProto_GRAPHS + const AttributeProto_INT + const AttributeProto_INTS + const AttributeProto_STRING + const AttributeProto_STRINGS + const AttributeProto_TENSOR + const AttributeProto_TENSORS + const AttributeProto_UNDEFINED + func (AttributeProto_AttributeType) EnumDescriptor() ([]byte, []int) + func (x AttributeProto_AttributeType) String() string + type ErrNotImplemented struct + AttributeName string + AttributeValue interface{} + Message string + Operator string + func (e *ErrNotImplemented) Error() string + type GraphProto struct + DocString string + Initializer []*TensorProto + Input []*ValueInfoProto + Name string + Node []*NodeProto + Output []*ValueInfoProto + ValueInfo []*ValueInfoProto + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GraphProto) Descriptor() ([]byte, []int) + func (*GraphProto) ProtoMessage() + func (m *GraphProto) GetDocString() string + func (m *GraphProto) GetInitializer() []*TensorProto + func (m *GraphProto) GetInput() []*ValueInfoProto + func (m *GraphProto) GetName() string + func (m *GraphProto) GetNode() []*NodeProto + func (m *GraphProto) GetOutput() []*ValueInfoProto + func (m *GraphProto) GetValueInfo() []*ValueInfoProto + func (m *GraphProto) Reset() + func (m *GraphProto) String() string + func (m *GraphProto) XXX_DiscardUnknown() + func (m *GraphProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GraphProto) XXX_Merge(src proto.Message) + func (m *GraphProto) XXX_Size() int + func (m *GraphProto) XXX_Unmarshal(b []byte) error + type ModelProto struct + DocString string + Domain string + Graph *GraphProto + IrVersion int64 + MetadataProps []*StringStringEntryProto + ModelVersion int64 + OpsetImport []*OperatorSetIdProto + ProducerName string + ProducerVersion string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ModelProto) Descriptor() ([]byte, []int) + func (*ModelProto) ProtoMessage() + func (m *ModelProto) GetDocString() string + func (m *ModelProto) GetDomain() string + func (m *ModelProto) GetGraph() *GraphProto + func (m *ModelProto) GetIrVersion() int64 + func (m *ModelProto) GetMetadataProps() []*StringStringEntryProto + func (m *ModelProto) GetModelVersion() int64 + func (m *ModelProto) GetOpsetImport() []*OperatorSetIdProto + func (m *ModelProto) GetProducerName() string + func (m *ModelProto) GetProducerVersion() string + func (m *ModelProto) Reset() + func (m *ModelProto) String() string + func (m *ModelProto) XXX_DiscardUnknown() + func (m *ModelProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ModelProto) XXX_Merge(src proto.Message) + func (m *ModelProto) XXX_Size() int + func (m *ModelProto) XXX_Unmarshal(b []byte) error + type NodeProto struct + Attribute []*AttributeProto + DocString string + Domain string + Input []string + Name string + OpType string + Output []string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*NodeProto) Descriptor() ([]byte, []int) + func (*NodeProto) ProtoMessage() + func (m *NodeProto) GetAttribute() []*AttributeProto + func (m *NodeProto) GetDocString() string + func (m *NodeProto) GetDomain() string + func (m *NodeProto) GetInput() []string + func (m *NodeProto) GetName() string + func (m *NodeProto) GetOpType() string + func (m *NodeProto) GetOutput() []string + func (m *NodeProto) Reset() + func (m *NodeProto) String() string + func (m *NodeProto) XXX_DiscardUnknown() + func (m *NodeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *NodeProto) XXX_Merge(src proto.Message) + func (m *NodeProto) XXX_Size() int + func (m *NodeProto) XXX_Unmarshal(b []byte) error + type OperatorSetIdProto struct + Domain string + Version int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*OperatorSetIdProto) Descriptor() ([]byte, []int) + func (*OperatorSetIdProto) ProtoMessage() + func (m *OperatorSetIdProto) GetDomain() string + func (m *OperatorSetIdProto) GetVersion() int64 + func (m *OperatorSetIdProto) Reset() + func (m *OperatorSetIdProto) String() string + func (m *OperatorSetIdProto) XXX_DiscardUnknown() + func (m *OperatorSetIdProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *OperatorSetIdProto) XXX_Merge(src proto.Message) + func (m *OperatorSetIdProto) XXX_Size() int + func (m *OperatorSetIdProto) XXX_Unmarshal(b []byte) error + type StringStringEntryProto struct + Key string + Value string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*StringStringEntryProto) Descriptor() ([]byte, []int) + func (*StringStringEntryProto) ProtoMessage() + func (m *StringStringEntryProto) GetKey() string + func (m *StringStringEntryProto) GetValue() string + func (m *StringStringEntryProto) Reset() + func (m *StringStringEntryProto) String() string + func (m *StringStringEntryProto) XXX_DiscardUnknown() + func (m *StringStringEntryProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *StringStringEntryProto) XXX_Merge(src proto.Message) + func (m *StringStringEntryProto) XXX_Size() int + func (m *StringStringEntryProto) XXX_Unmarshal(b []byte) error + type TensorProto struct + DataType int32 + Dims []int64 + DocString string + DoubleData []float64 + FloatData []float32 + Int32Data []int32 + Int64Data []int64 + Name string + RawData []byte + Segment *TensorProto_Segment + StringData [][]byte + Uint64Data []uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*TensorProto) Descriptor() ([]byte, []int) + func (*TensorProto) ProtoMessage() + func (m *TensorProto) GetDataType() int32 + func (m *TensorProto) GetDims() []int64 + func (m *TensorProto) GetDocString() string + 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) GetRawData() []byte + func (m *TensorProto) GetSegment() *TensorProto_Segment + func (m *TensorProto) GetStringData() [][]byte + func (m *TensorProto) GetUint64Data() []uint64 + func (m *TensorProto) Reset() + func (m *TensorProto) String() string + func (m *TensorProto) XXX_DiscardUnknown() + func (m *TensorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TensorProto) XXX_Merge(src proto.Message) + func (m *TensorProto) XXX_Size() int + func (m *TensorProto) XXX_Unmarshal(b []byte) error + func (tx *TensorProto) Tensor() (tensor.Tensor, error) + type TensorProto_DataType int32 + const TensorProto_BFLOAT16 + const TensorProto_BOOL + const TensorProto_COMPLEX128 + const TensorProto_COMPLEX64 + const TensorProto_DOUBLE + const TensorProto_FLOAT + const TensorProto_FLOAT16 + const TensorProto_INT16 + const TensorProto_INT32 + const TensorProto_INT64 + const TensorProto_INT8 + const TensorProto_STRING + const TensorProto_UINT16 + const TensorProto_UINT32 + const TensorProto_UINT64 + const TensorProto_UINT8 + const TensorProto_UNDEFINED + func (TensorProto_DataType) EnumDescriptor() ([]byte, []int) + func (t TensorProto_DataType) Dtype() (tensor.Dtype, error) + func (x TensorProto_DataType) String() string + type TensorProto_Segment struct + Begin int64 + End int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*TensorProto_Segment) Descriptor() ([]byte, []int) + func (*TensorProto_Segment) ProtoMessage() + func (m *TensorProto_Segment) GetBegin() int64 + func (m *TensorProto_Segment) GetEnd() int64 + func (m *TensorProto_Segment) Reset() + func (m *TensorProto_Segment) String() string + func (m *TensorProto_Segment) XXX_DiscardUnknown() + func (m *TensorProto_Segment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TensorProto_Segment) XXX_Merge(src proto.Message) + func (m *TensorProto_Segment) XXX_Size() int + func (m *TensorProto_Segment) XXX_Unmarshal(b []byte) error + type TensorShapeProto struct + Dim []*TensorShapeProto_Dimension + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*TensorShapeProto) Descriptor() ([]byte, []int) + func (*TensorShapeProto) ProtoMessage() + func (m *TensorShapeProto) GetDim() []*TensorShapeProto_Dimension + func (m *TensorShapeProto) Reset() + func (m *TensorShapeProto) String() string + func (m *TensorShapeProto) XXX_DiscardUnknown() + func (m *TensorShapeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TensorShapeProto) XXX_Merge(src proto.Message) + func (m *TensorShapeProto) XXX_Size() int + func (m *TensorShapeProto) XXX_Unmarshal(b []byte) error + type TensorShapeProto_Dimension struct + Denotation string + Value isTensorShapeProto_Dimension_Value + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*TensorShapeProto_Dimension) Descriptor() ([]byte, []int) + func (*TensorShapeProto_Dimension) ProtoMessage() + func (*TensorShapeProto_Dimension) XXX_OneofWrappers() []interface{} + func (m *TensorShapeProto_Dimension) GetDenotation() string + func (m *TensorShapeProto_Dimension) GetDimParam() string + func (m *TensorShapeProto_Dimension) GetDimValue() int64 + func (m *TensorShapeProto_Dimension) GetValue() isTensorShapeProto_Dimension_Value + func (m *TensorShapeProto_Dimension) Reset() + func (m *TensorShapeProto_Dimension) String() string + func (m *TensorShapeProto_Dimension) XXX_DiscardUnknown() + func (m *TensorShapeProto_Dimension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TensorShapeProto_Dimension) XXX_Merge(src proto.Message) + func (m *TensorShapeProto_Dimension) XXX_Size() int + func (m *TensorShapeProto_Dimension) XXX_Unmarshal(b []byte) error + type TensorShapeProto_Dimension_DimParam struct + DimParam string + type TensorShapeProto_Dimension_DimValue struct + DimValue int64 + type TypeProto struct + Denotation string + Value isTypeProto_Value + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*TypeProto) Descriptor() ([]byte, []int) + func (*TypeProto) ProtoMessage() + func (*TypeProto) XXX_OneofWrappers() []interface{} + func (m *TypeProto) GetDenotation() string + func (m *TypeProto) GetTensorType() *TypeProto_Tensor + func (m *TypeProto) GetValue() isTypeProto_Value + func (m *TypeProto) Reset() + func (m *TypeProto) String() string + func (m *TypeProto) XXX_DiscardUnknown() + func (m *TypeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TypeProto) XXX_Merge(src proto.Message) + func (m *TypeProto) XXX_Size() int + func (m *TypeProto) XXX_Unmarshal(b []byte) error + type TypeProto_Tensor struct + ElemType int32 + Shape *TensorShapeProto + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*TypeProto_Tensor) Descriptor() ([]byte, []int) + func (*TypeProto_Tensor) ProtoMessage() + func (m *TypeProto_Tensor) GetElemType() int32 + func (m *TypeProto_Tensor) GetShape() *TensorShapeProto + func (m *TypeProto_Tensor) Reset() + func (m *TypeProto_Tensor) String() string + func (m *TypeProto_Tensor) XXX_DiscardUnknown() + func (m *TypeProto_Tensor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TypeProto_Tensor) XXX_Merge(src proto.Message) + func (m *TypeProto_Tensor) XXX_Size() int + func (m *TypeProto_Tensor) XXX_Unmarshal(b []byte) error + type TypeProto_TensorType struct + TensorType *TypeProto_Tensor + type ValueInfoProto struct + DocString string + Name string + Type *TypeProto + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ValueInfoProto) Descriptor() ([]byte, []int) + func (*ValueInfoProto) ProtoMessage() + func (m *ValueInfoProto) GetDocString() string + func (m *ValueInfoProto) GetName() string + func (m *ValueInfoProto) GetType() *TypeProto + func (m *ValueInfoProto) Reset() + func (m *ValueInfoProto) String() string + func (m *ValueInfoProto) XXX_DiscardUnknown() + func (m *ValueInfoProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ValueInfoProto) XXX_Merge(src proto.Message) + func (m *ValueInfoProto) XXX_Size() int + func (m *ValueInfoProto) XXX_Unmarshal(b []byte) error + type Version int32 + const Version_IR_VERSION + const Version_IR_VERSION_2017_10_10 + const Version_IR_VERSION_2017_10_30 + const Version__START_VERSION + func (Version) EnumDescriptor() ([]byte, []int) + func (x Version) String() string