resource_handle_go_proto

package
v1.12.2-0...-1b6f133 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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"`
	XXX_NoUnkeyedLiteral struct{}                             `json:"-"`
	XXX_unrecognized     []byte                               `json:"-"`
	XXX_sizecache        int32                                `json:"-"`
}

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

func (*ResourceHandleProto) Descriptor() ([]byte, []int)

func (*ResourceHandleProto) GetContainer

func (m *ResourceHandleProto) GetContainer() string

func (*ResourceHandleProto) GetDevice

func (m *ResourceHandleProto) GetDevice() string

func (*ResourceHandleProto) GetDtypesAndShapes

func (m *ResourceHandleProto) GetDtypesAndShapes() []*ResourceHandleProto_DtypeAndShape

func (*ResourceHandleProto) GetHashCode

func (m *ResourceHandleProto) GetHashCode() uint64

func (*ResourceHandleProto) GetMaybeTypeName

func (m *ResourceHandleProto) GetMaybeTypeName() string

func (*ResourceHandleProto) GetName

func (m *ResourceHandleProto) GetName() string

func (*ResourceHandleProto) ProtoMessage

func (*ResourceHandleProto) ProtoMessage()

func (*ResourceHandleProto) Reset

func (m *ResourceHandleProto) Reset()

func (*ResourceHandleProto) String

func (m *ResourceHandleProto) String() string

func (*ResourceHandleProto) XXX_DiscardUnknown

func (m *ResourceHandleProto) XXX_DiscardUnknown()

func (*ResourceHandleProto) XXX_Marshal

func (m *ResourceHandleProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceHandleProto) XXX_Merge

func (m *ResourceHandleProto) XXX_Merge(src proto.Message)

func (*ResourceHandleProto) XXX_Size

func (m *ResourceHandleProto) XXX_Size() int

func (*ResourceHandleProto) XXX_Unmarshal

func (m *ResourceHandleProto) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}                                `json:"-"`
	XXX_unrecognized     []byte                                  `json:"-"`
	XXX_sizecache        int32                                   `json:"-"`
}

Protocol buffer representing a pair of (data type, tensor shape).

func (*ResourceHandleProto_DtypeAndShape) Descriptor

func (*ResourceHandleProto_DtypeAndShape) Descriptor() ([]byte, []int)

func (*ResourceHandleProto_DtypeAndShape) GetDtype

func (*ResourceHandleProto_DtypeAndShape) GetShape

func (*ResourceHandleProto_DtypeAndShape) ProtoMessage

func (*ResourceHandleProto_DtypeAndShape) ProtoMessage()

func (*ResourceHandleProto_DtypeAndShape) Reset

func (*ResourceHandleProto_DtypeAndShape) String

func (*ResourceHandleProto_DtypeAndShape) XXX_DiscardUnknown

func (m *ResourceHandleProto_DtypeAndShape) XXX_DiscardUnknown()

func (*ResourceHandleProto_DtypeAndShape) XXX_Marshal

func (m *ResourceHandleProto_DtypeAndShape) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceHandleProto_DtypeAndShape) XXX_Merge

func (*ResourceHandleProto_DtypeAndShape) XXX_Size

func (m *ResourceHandleProto_DtypeAndShape) XXX_Size() int

func (*ResourceHandleProto_DtypeAndShape) XXX_Unmarshal

func (m *ResourceHandleProto_DtypeAndShape) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL