tensor_slice_go_proto

package
v0.0.0-...-88323db Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: Apache-2.0, BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tensorflow_core_framework_tensor_slice_proto protoreflect.FileDescriptor

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"`
	// contains filtered or unexported fields
}

Can only be interpreted if you know the corresponding TensorShape.

func (*TensorSliceProto) Descriptor deprecated

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

Deprecated: Use TensorSliceProto.ProtoReflect.Descriptor instead.

func (*TensorSliceProto) GetExtent

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

func (*TensorSliceProto) ProtoMessage

func (*TensorSliceProto) ProtoMessage()

func (*TensorSliceProto) ProtoReflect

func (x *TensorSliceProto) ProtoReflect() protoreflect.Message

func (*TensorSliceProto) Reset

func (x *TensorSliceProto) Reset()

func (*TensorSliceProto) String

func (x *TensorSliceProto) String() string

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 assignable to HasLength:
	//
	//	*TensorSliceProto_Extent_Length
	HasLength isTensorSliceProto_Extent_HasLength `protobuf_oneof:"has_length"`
	// contains filtered or unexported fields
}

Extent of the slice in one dimension.

func (*TensorSliceProto_Extent) Descriptor deprecated

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

Deprecated: Use TensorSliceProto_Extent.ProtoReflect.Descriptor instead.

func (*TensorSliceProto_Extent) GetHasLength

func (m *TensorSliceProto_Extent) GetHasLength() isTensorSliceProto_Extent_HasLength

func (*TensorSliceProto_Extent) GetLength

func (x *TensorSliceProto_Extent) GetLength() int64

func (*TensorSliceProto_Extent) GetStart

func (x *TensorSliceProto_Extent) GetStart() int64

func (*TensorSliceProto_Extent) ProtoMessage

func (*TensorSliceProto_Extent) ProtoMessage()

func (*TensorSliceProto_Extent) ProtoReflect

func (x *TensorSliceProto_Extent) ProtoReflect() protoreflect.Message

func (*TensorSliceProto_Extent) Reset

func (x *TensorSliceProto_Extent) Reset()

func (*TensorSliceProto_Extent) String

func (x *TensorSliceProto_Extent) String() string

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