Documentation
¶
Index ¶
- type TensorProto
- func (*TensorProto) Descriptor() ([]byte, []int)
- func (m *TensorProto) GetBoolVal() []bool
- func (m *TensorProto) GetDcomplexVal() []float64
- func (m *TensorProto) GetDoubleVal() []float64
- func (m *TensorProto) GetDtype() types_go_proto.DataType
- func (m *TensorProto) GetFloatVal() []float32
- func (m *TensorProto) GetHalfVal() []int32
- func (m *TensorProto) GetInt64Val() []int64
- func (m *TensorProto) GetIntVal() []int32
- func (m *TensorProto) GetResourceHandleVal() []*resource_handle_go_proto.ResourceHandleProto
- func (m *TensorProto) GetScomplexVal() []float32
- func (m *TensorProto) GetStringVal() [][]byte
- func (m *TensorProto) GetTensorContent() []byte
- func (m *TensorProto) GetTensorShape() *tensor_shape_go_proto.TensorShapeProto
- func (m *TensorProto) GetUint32Val() []uint32
- func (m *TensorProto) GetUint64Val() []uint64
- func (m *TensorProto) GetVariantVal() []*VariantTensorDataProto
- func (m *TensorProto) GetVersionNumber() int32
- func (*TensorProto) ProtoMessage()
- 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
- type VariantTensorDataProto
- func (*VariantTensorDataProto) Descriptor() ([]byte, []int)
- func (m *VariantTensorDataProto) GetMetadata() []byte
- func (m *VariantTensorDataProto) GetTensors() []*TensorProto
- func (m *VariantTensorDataProto) GetTypeName() string
- func (*VariantTensorDataProto) ProtoMessage()
- func (m *VariantTensorDataProto) Reset()
- func (m *VariantTensorDataProto) String() string
- func (m *VariantTensorDataProto) XXX_DiscardUnknown()
- func (m *VariantTensorDataProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VariantTensorDataProto) XXX_Merge(src proto.Message)
- func (m *VariantTensorDataProto) XXX_Size() int
- func (m *VariantTensorDataProto) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TensorProto ¶
type TensorProto struct { Dtype types_go_proto.DataType `protobuf:"varint,1,opt,name=dtype,proto3,enum=tensorflow.DataType" json:"dtype,omitempty"` // Shape of the tensor. TODO(touts): sort out the 0-rank issues. TensorShape *tensor_shape_go_proto.TensorShapeProto `protobuf:"bytes,2,opt,name=tensor_shape,json=tensorShape,proto3" json:"tensor_shape,omitempty"` // Version number. // // In version 0, if the "repeated xxx" representations contain only one // element, that element is repeated to fill the shape. This makes it easy // to represent a constant Tensor with a single value. VersionNumber int32 `protobuf:"varint,3,opt,name=version_number,json=versionNumber,proto3" json:"version_number,omitempty"` // Serialized raw tensor content from either Tensor::AsProtoTensorContent or // memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation // can be used for all tensor types. The purpose of this representation is to // reduce serialization overhead during RPC call by avoiding serialization of // many repeated small items. TensorContent []byte `protobuf:"bytes,4,opt,name=tensor_content,json=tensorContent,proto3" json:"tensor_content,omitempty"` // DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll // have some pointless zero padding for each value here. HalfVal []int32 `protobuf:"varint,13,rep,packed,name=half_val,json=halfVal,proto3" json:"half_val,omitempty"` // DT_FLOAT. FloatVal []float32 `protobuf:"fixed32,5,rep,packed,name=float_val,json=floatVal,proto3" json:"float_val,omitempty"` // DT_DOUBLE. DoubleVal []float64 `protobuf:"fixed64,6,rep,packed,name=double_val,json=doubleVal,proto3" json:"double_val,omitempty"` // DT_INT32, DT_INT16, DT_INT8, DT_UINT8. IntVal []int32 `protobuf:"varint,7,rep,packed,name=int_val,json=intVal,proto3" json:"int_val,omitempty"` // DT_STRING StringVal [][]byte `protobuf:"bytes,8,rep,name=string_val,json=stringVal,proto3" json:"string_val,omitempty"` // DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real // and imaginary parts of i-th single precision complex. ScomplexVal []float32 `protobuf:"fixed32,9,rep,packed,name=scomplex_val,json=scomplexVal,proto3" json:"scomplex_val,omitempty"` // DT_INT64 Int64Val []int64 `protobuf:"varint,10,rep,packed,name=int64_val,json=int64Val,proto3" json:"int64_val,omitempty"` // DT_BOOL BoolVal []bool `protobuf:"varint,11,rep,packed,name=bool_val,json=boolVal,proto3" json:"bool_val,omitempty"` // DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real // and imaginary parts of i-th double precision complex. DcomplexVal []float64 `protobuf:"fixed64,12,rep,packed,name=dcomplex_val,json=dcomplexVal,proto3" json:"dcomplex_val,omitempty"` // DT_RESOURCE ResourceHandleVal []*resource_handle_go_proto.ResourceHandleProto `protobuf:"bytes,14,rep,name=resource_handle_val,json=resourceHandleVal,proto3" json:"resource_handle_val,omitempty"` // DT_VARIANT VariantVal []*VariantTensorDataProto `protobuf:"bytes,15,rep,name=variant_val,json=variantVal,proto3" json:"variant_val,omitempty"` // DT_UINT32 Uint32Val []uint32 `protobuf:"varint,16,rep,packed,name=uint32_val,json=uint32Val,proto3" json:"uint32_val,omitempty"` // DT_UINT64 Uint64Val []uint64 `protobuf:"varint,17,rep,packed,name=uint64_val,json=uint64Val,proto3" json:"uint64_val,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Protocol buffer representing a tensor.
func (*TensorProto) Descriptor ¶
func (*TensorProto) Descriptor() ([]byte, []int)
func (*TensorProto) GetBoolVal ¶
func (m *TensorProto) GetBoolVal() []bool
func (*TensorProto) GetDcomplexVal ¶
func (m *TensorProto) GetDcomplexVal() []float64
func (*TensorProto) GetDoubleVal ¶
func (m *TensorProto) GetDoubleVal() []float64
func (*TensorProto) GetDtype ¶
func (m *TensorProto) GetDtype() types_go_proto.DataType
func (*TensorProto) GetFloatVal ¶
func (m *TensorProto) GetFloatVal() []float32
func (*TensorProto) GetHalfVal ¶
func (m *TensorProto) GetHalfVal() []int32
func (*TensorProto) GetInt64Val ¶
func (m *TensorProto) GetInt64Val() []int64
func (*TensorProto) GetIntVal ¶
func (m *TensorProto) GetIntVal() []int32
func (*TensorProto) GetResourceHandleVal ¶
func (m *TensorProto) GetResourceHandleVal() []*resource_handle_go_proto.ResourceHandleProto
func (*TensorProto) GetScomplexVal ¶
func (m *TensorProto) GetScomplexVal() []float32
func (*TensorProto) GetStringVal ¶
func (m *TensorProto) GetStringVal() [][]byte
func (*TensorProto) GetTensorContent ¶
func (m *TensorProto) GetTensorContent() []byte
func (*TensorProto) GetTensorShape ¶
func (m *TensorProto) GetTensorShape() *tensor_shape_go_proto.TensorShapeProto
func (*TensorProto) GetUint32Val ¶
func (m *TensorProto) GetUint32Val() []uint32
func (*TensorProto) GetUint64Val ¶
func (m *TensorProto) GetUint64Val() []uint64
func (*TensorProto) GetVariantVal ¶
func (m *TensorProto) GetVariantVal() []*VariantTensorDataProto
func (*TensorProto) GetVersionNumber ¶
func (m *TensorProto) GetVersionNumber() int32
func (*TensorProto) ProtoMessage ¶
func (*TensorProto) ProtoMessage()
func (*TensorProto) Reset ¶
func (m *TensorProto) Reset()
func (*TensorProto) String ¶
func (m *TensorProto) String() string
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 (m *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 VariantTensorDataProto ¶
type VariantTensorDataProto struct { // Name of the type of objects being serialized. TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` // Portions of the object that are not Tensors. Metadata []byte `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // Tensors contained within objects being serialized. Tensors []*TensorProto `protobuf:"bytes,3,rep,name=tensors,proto3" json:"tensors,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Protocol buffer representing the serialization format of DT_VARIANT tensors.
func (*VariantTensorDataProto) Descriptor ¶
func (*VariantTensorDataProto) Descriptor() ([]byte, []int)
func (*VariantTensorDataProto) GetMetadata ¶
func (m *VariantTensorDataProto) GetMetadata() []byte
func (*VariantTensorDataProto) GetTensors ¶
func (m *VariantTensorDataProto) GetTensors() []*TensorProto
func (*VariantTensorDataProto) GetTypeName ¶
func (m *VariantTensorDataProto) GetTypeName() string
func (*VariantTensorDataProto) ProtoMessage ¶
func (*VariantTensorDataProto) ProtoMessage()
func (*VariantTensorDataProto) Reset ¶
func (m *VariantTensorDataProto) Reset()
func (*VariantTensorDataProto) String ¶
func (m *VariantTensorDataProto) String() string
func (*VariantTensorDataProto) XXX_DiscardUnknown ¶
func (m *VariantTensorDataProto) XXX_DiscardUnknown()
func (*VariantTensorDataProto) XXX_Marshal ¶
func (m *VariantTensorDataProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VariantTensorDataProto) XXX_Merge ¶
func (m *VariantTensorDataProto) XXX_Merge(src proto.Message)
func (*VariantTensorDataProto) XXX_Size ¶
func (m *VariantTensorDataProto) XXX_Size() int
func (*VariantTensorDataProto) XXX_Unmarshal ¶
func (m *VariantTensorDataProto) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.