tensor_slice_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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TensorSliceProto

type TensorSliceProto struct {
	// Extent of the slice in all tensor dimensions.
	//
	// Must have one entry for each of the dimension of the tensor that this
	// slice belongs to.  The order of sizes is the same as the order of
	// dimensions in the TensorShape.
	Extent               []*TensorSliceProto_Extent `protobuf:"bytes,1,rep,name=extent,proto3" json:"extent,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

Can only be interpreted if you know the corresponding TensorShape.

func (*TensorSliceProto) Descriptor

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

func (*TensorSliceProto) GetExtent

func (m *TensorSliceProto) GetExtent() []*TensorSliceProto_Extent

func (*TensorSliceProto) ProtoMessage

func (*TensorSliceProto) ProtoMessage()

func (*TensorSliceProto) Reset

func (m *TensorSliceProto) Reset()

func (*TensorSliceProto) String

func (m *TensorSliceProto) String() string

func (*TensorSliceProto) XXX_DiscardUnknown

func (m *TensorSliceProto) XXX_DiscardUnknown()

func (*TensorSliceProto) XXX_Marshal

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

func (*TensorSliceProto) XXX_Merge

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

func (*TensorSliceProto) XXX_Size

func (m *TensorSliceProto) XXX_Size() int

func (*TensorSliceProto) XXX_Unmarshal

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

type TensorSliceProto_Extent

type TensorSliceProto_Extent struct {
	// Start index of the slice, starting at 0.
	Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	// Length of the slice: if the length is missing or -1 we will
	// interpret this as "everything in this dimension".  We use
	// "oneof" to preserve information about whether the length is
	// present without changing the serialization format from the
	// prior proto2 version of this proto.
	//
	// Types that are valid to be assigned to HasLength:
	//	*TensorSliceProto_Extent_Length
	HasLength            isTensorSliceProto_Extent_HasLength `protobuf_oneof:"has_length"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

Extent of the slice in one dimension.

func (*TensorSliceProto_Extent) Descriptor

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

func (*TensorSliceProto_Extent) GetHasLength

func (m *TensorSliceProto_Extent) GetHasLength() isTensorSliceProto_Extent_HasLength

func (*TensorSliceProto_Extent) GetLength

func (m *TensorSliceProto_Extent) GetLength() int64

func (*TensorSliceProto_Extent) GetStart

func (m *TensorSliceProto_Extent) GetStart() int64

func (*TensorSliceProto_Extent) ProtoMessage

func (*TensorSliceProto_Extent) ProtoMessage()

func (*TensorSliceProto_Extent) Reset

func (m *TensorSliceProto_Extent) Reset()

func (*TensorSliceProto_Extent) String

func (m *TensorSliceProto_Extent) String() string

func (*TensorSliceProto_Extent) XXX_DiscardUnknown

func (m *TensorSliceProto_Extent) XXX_DiscardUnknown()

func (*TensorSliceProto_Extent) XXX_Marshal

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

func (*TensorSliceProto_Extent) XXX_Merge

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

func (*TensorSliceProto_Extent) XXX_OneofWrappers

func (*TensorSliceProto_Extent) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*TensorSliceProto_Extent) XXX_Size

func (m *TensorSliceProto_Extent) XXX_Size() int

func (*TensorSliceProto_Extent) XXX_Unmarshal

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

type TensorSliceProto_Extent_Length

type TensorSliceProto_Extent_Length struct {
	Length int64 `protobuf:"varint,2,opt,name=length,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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