Documentation ¶
Index ¶
- Variables
- type ResourceHandleProto
- func (*ResourceHandleProto) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceHandleProto) GetContainer() string
- func (x *ResourceHandleProto) GetDevice() string
- func (x *ResourceHandleProto) GetDtypesAndShapes() []*ResourceHandleProto_DtypeAndShape
- func (x *ResourceHandleProto) GetHashCode() uint64
- func (x *ResourceHandleProto) GetMaybeTypeName() string
- func (x *ResourceHandleProto) GetName() string
- func (*ResourceHandleProto) ProtoMessage()
- func (x *ResourceHandleProto) ProtoReflect() protoreflect.Message
- func (x *ResourceHandleProto) Reset()
- func (x *ResourceHandleProto) String() string
- type ResourceHandleProto_DtypeAndShape
- func (*ResourceHandleProto_DtypeAndShape) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceHandleProto_DtypeAndShape) GetDtype() types_go_proto.DataType
- func (x *ResourceHandleProto_DtypeAndShape) GetShape() *tensor_shape_go_proto.TensorShapeProto
- func (*ResourceHandleProto_DtypeAndShape) ProtoMessage()
- func (x *ResourceHandleProto_DtypeAndShape) ProtoReflect() protoreflect.Message
- func (x *ResourceHandleProto_DtypeAndShape) Reset()
- func (x *ResourceHandleProto_DtypeAndShape) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_tensorflow_core_framework_resource_handle_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ResourceHandleProto ¶
type ResourceHandleProto struct { // Unique name for the device containing the resource. Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` // Container in which this resource is placed. Container string `protobuf:"bytes,2,opt,name=container,proto3" json:"container,omitempty"` // Unique name of this resource. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Hash code for the type of the resource. Is only valid in the same device // and in the same execution. HashCode uint64 `protobuf:"varint,4,opt,name=hash_code,json=hashCode,proto3" json:"hash_code,omitempty"` // For debug-only, the name of the type pointed to by this handle, if // available. MaybeTypeName string `protobuf:"bytes,5,opt,name=maybe_type_name,json=maybeTypeName,proto3" json:"maybe_type_name,omitempty"` // Data types and shapes for the underlying resource. DtypesAndShapes []*ResourceHandleProto_DtypeAndShape `protobuf:"bytes,6,rep,name=dtypes_and_shapes,json=dtypesAndShapes,proto3" json:"dtypes_and_shapes,omitempty"` // contains filtered or unexported fields }
Protocol buffer representing a handle to a tensorflow resource. Handles are not valid across executions, but can be serialized back and forth from within a single run.
func (*ResourceHandleProto) Descriptor
deprecated
func (*ResourceHandleProto) Descriptor() ([]byte, []int)
Deprecated: Use ResourceHandleProto.ProtoReflect.Descriptor instead.
func (*ResourceHandleProto) GetContainer ¶
func (x *ResourceHandleProto) GetContainer() string
func (*ResourceHandleProto) GetDevice ¶
func (x *ResourceHandleProto) GetDevice() string
func (*ResourceHandleProto) GetDtypesAndShapes ¶
func (x *ResourceHandleProto) GetDtypesAndShapes() []*ResourceHandleProto_DtypeAndShape
func (*ResourceHandleProto) GetHashCode ¶
func (x *ResourceHandleProto) GetHashCode() uint64
func (*ResourceHandleProto) GetMaybeTypeName ¶
func (x *ResourceHandleProto) GetMaybeTypeName() string
func (*ResourceHandleProto) GetName ¶
func (x *ResourceHandleProto) GetName() string
func (*ResourceHandleProto) ProtoMessage ¶
func (*ResourceHandleProto) ProtoMessage()
func (*ResourceHandleProto) ProtoReflect ¶
func (x *ResourceHandleProto) ProtoReflect() protoreflect.Message
func (*ResourceHandleProto) Reset ¶
func (x *ResourceHandleProto) Reset()
func (*ResourceHandleProto) String ¶
func (x *ResourceHandleProto) String() string
type ResourceHandleProto_DtypeAndShape ¶
type ResourceHandleProto_DtypeAndShape struct { Dtype types_go_proto.DataType `protobuf:"varint,1,opt,name=dtype,proto3,enum=tensorflow.DataType" json:"dtype,omitempty"` Shape *tensor_shape_go_proto.TensorShapeProto `protobuf:"bytes,2,opt,name=shape,proto3" json:"shape,omitempty"` // contains filtered or unexported fields }
Protocol buffer representing a pair of (data type, tensor shape).
func (*ResourceHandleProto_DtypeAndShape) Descriptor
deprecated
func (*ResourceHandleProto_DtypeAndShape) Descriptor() ([]byte, []int)
Deprecated: Use ResourceHandleProto_DtypeAndShape.ProtoReflect.Descriptor instead.
func (*ResourceHandleProto_DtypeAndShape) GetDtype ¶
func (x *ResourceHandleProto_DtypeAndShape) GetDtype() types_go_proto.DataType
func (*ResourceHandleProto_DtypeAndShape) GetShape ¶
func (x *ResourceHandleProto_DtypeAndShape) GetShape() *tensor_shape_go_proto.TensorShapeProto
func (*ResourceHandleProto_DtypeAndShape) ProtoMessage ¶
func (*ResourceHandleProto_DtypeAndShape) ProtoMessage()
func (*ResourceHandleProto_DtypeAndShape) ProtoReflect ¶
func (x *ResourceHandleProto_DtypeAndShape) ProtoReflect() protoreflect.Message
func (*ResourceHandleProto_DtypeAndShape) Reset ¶
func (x *ResourceHandleProto_DtypeAndShape) Reset()
func (*ResourceHandleProto_DtypeAndShape) String ¶
func (x *ResourceHandleProto_DtypeAndShape) String() string
Click to show internal directories.
Click to hide internal directories.