dataset_go_proto

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tensorflow_core_framework_dataset_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CompressedComponentMetadata

type CompressedComponentMetadata struct {

	// The dtype of the component tensor.
	Dtype types_go_proto.DataType `protobuf:"varint,1,opt,name=dtype,proto3,enum=tensorflow.DataType" json:"dtype,omitempty"`
	// The shape of the component tensor.
	TensorShape *tensor_shape_go_proto.TensorShapeProto `protobuf:"bytes,2,opt,name=tensor_shape,json=tensorShape,proto3" json:"tensor_shape,omitempty"`
	// The amount of uncompressed tensor data.
	// - For string tensors, there is an element for each string indicating the
	// size of the string.
	// - For all other tensors, there is a single element indicating the size of
	// the tensor.
	UncompressedBytes []uint64 `protobuf:"varint,4,rep,packed,name=uncompressed_bytes,json=uncompressedBytes,proto3" json:"uncompressed_bytes,omitempty"`
	// contains filtered or unexported fields
}

Metadata describing a compressed component of a dataset element.

func (*CompressedComponentMetadata) Descriptor deprecated

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

Deprecated: Use CompressedComponentMetadata.ProtoReflect.Descriptor instead.

func (*CompressedComponentMetadata) GetDtype

func (*CompressedComponentMetadata) GetTensorShape

func (*CompressedComponentMetadata) GetUncompressedBytes

func (x *CompressedComponentMetadata) GetUncompressedBytes() []uint64

func (*CompressedComponentMetadata) ProtoMessage

func (*CompressedComponentMetadata) ProtoMessage()

func (*CompressedComponentMetadata) ProtoReflect

func (*CompressedComponentMetadata) Reset

func (x *CompressedComponentMetadata) Reset()

func (*CompressedComponentMetadata) String

func (x *CompressedComponentMetadata) String() string

type CompressedElement

type CompressedElement struct {

	// Compressed tensor bytes for all components of the element.
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// Metadata for the components of the element.
	ComponentMetadata []*CompressedComponentMetadata `protobuf:"bytes,2,rep,name=component_metadata,json=componentMetadata,proto3" json:"component_metadata,omitempty"`
	// Version of the CompressedElement. CompressedElements may be stored on disk
	// and read back by later versions of code, so we store a version number to
	// help readers understand which version they are reading. When you add a new
	// field to this proto, you need to increment kCompressedElementVersion in
	// tensorflow/core/data/compression_utils.cc.
	Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*CompressedElement) Descriptor deprecated

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

Deprecated: Use CompressedElement.ProtoReflect.Descriptor instead.

func (*CompressedElement) GetComponentMetadata

func (x *CompressedElement) GetComponentMetadata() []*CompressedComponentMetadata

func (*CompressedElement) GetData

func (x *CompressedElement) GetData() []byte

func (*CompressedElement) GetVersion

func (x *CompressedElement) GetVersion() int32

func (*CompressedElement) ProtoMessage

func (*CompressedElement) ProtoMessage()

func (*CompressedElement) ProtoReflect

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

func (*CompressedElement) Reset

func (x *CompressedElement) Reset()

func (*CompressedElement) String

func (x *CompressedElement) String() string

type UncompressedElement

type UncompressedElement struct {
	Components []*tensor_go_proto.TensorProto `protobuf:"bytes,1,rep,name=components,proto3" json:"components,omitempty"`
	// contains filtered or unexported fields
}

An uncompressed dataset element.

func (*UncompressedElement) Descriptor deprecated

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

Deprecated: Use UncompressedElement.ProtoReflect.Descriptor instead.

func (*UncompressedElement) GetComponents

func (x *UncompressedElement) GetComponents() []*tensor_go_proto.TensorProto

func (*UncompressedElement) ProtoMessage

func (*UncompressedElement) ProtoMessage()

func (*UncompressedElement) ProtoReflect

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

func (*UncompressedElement) Reset

func (x *UncompressedElement) Reset()

func (*UncompressedElement) String

func (x *UncompressedElement) String() string

Jump to

Keyboard shortcuts

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