ifrt

package
v2.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tensorflow_compiler_xla_python_ifrt_serdes_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_compiler_xla_python_ifrt_sharding_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_compiler_xla_python_ifrt_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConcreteEvenShardingProto

type ConcreteEvenShardingProto struct {
	Devices    *DeviceListProto `protobuf:"bytes,1,opt,name=devices,proto3" json:"devices,omitempty"`
	MemoryKind *string          `protobuf:"bytes,4,opt,name=memory_kind,json=memoryKind,proto3,oneof" json:"memory_kind,omitempty"`
	Shape      *ShapeProto      `protobuf:"bytes,2,opt,name=shape,proto3" json:"shape,omitempty"`
	ShardShape *ShapeProto      `protobuf:"bytes,3,opt,name=shard_shape,json=shardShape,proto3" json:"shard_shape,omitempty"`
	// contains filtered or unexported fields
}

Wire format for `ConcreteEvenSharding`.

func (*ConcreteEvenShardingProto) Descriptor deprecated

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

Deprecated: Use ConcreteEvenShardingProto.ProtoReflect.Descriptor instead.

func (*ConcreteEvenShardingProto) GetDevices

func (x *ConcreteEvenShardingProto) GetDevices() *DeviceListProto

func (*ConcreteEvenShardingProto) GetMemoryKind

func (x *ConcreteEvenShardingProto) GetMemoryKind() string

func (*ConcreteEvenShardingProto) GetShape

func (x *ConcreteEvenShardingProto) GetShape() *ShapeProto

func (*ConcreteEvenShardingProto) GetShardShape

func (x *ConcreteEvenShardingProto) GetShardShape() *ShapeProto

func (*ConcreteEvenShardingProto) ProtoMessage

func (*ConcreteEvenShardingProto) ProtoMessage()

func (*ConcreteEvenShardingProto) ProtoReflect

func (*ConcreteEvenShardingProto) Reset

func (x *ConcreteEvenShardingProto) Reset()

func (*ConcreteEvenShardingProto) String

func (x *ConcreteEvenShardingProto) String() string

type ConcreteShardingProto

type ConcreteShardingProto struct {
	Devices     *DeviceListProto `protobuf:"bytes,1,opt,name=devices,proto3" json:"devices,omitempty"`
	MemoryKind  *string          `protobuf:"bytes,4,opt,name=memory_kind,json=memoryKind,proto3,oneof" json:"memory_kind,omitempty"`
	Shape       *ShapeProto      `protobuf:"bytes,2,opt,name=shape,proto3" json:"shape,omitempty"`
	ShardShapes []*ShapeProto    `protobuf:"bytes,3,rep,name=shard_shapes,json=shardShapes,proto3" json:"shard_shapes,omitempty"`
	// contains filtered or unexported fields
}

Wire format for `ConcreteSharding`.

func (*ConcreteShardingProto) Descriptor deprecated

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

Deprecated: Use ConcreteShardingProto.ProtoReflect.Descriptor instead.

func (*ConcreteShardingProto) GetDevices

func (x *ConcreteShardingProto) GetDevices() *DeviceListProto

func (*ConcreteShardingProto) GetMemoryKind

func (x *ConcreteShardingProto) GetMemoryKind() string

func (*ConcreteShardingProto) GetShape

func (x *ConcreteShardingProto) GetShape() *ShapeProto

func (*ConcreteShardingProto) GetShardShapes

func (x *ConcreteShardingProto) GetShardShapes() []*ShapeProto

func (*ConcreteShardingProto) ProtoMessage

func (*ConcreteShardingProto) ProtoMessage()

func (*ConcreteShardingProto) ProtoReflect

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

func (*ConcreteShardingProto) Reset

func (x *ConcreteShardingProto) Reset()

func (*ConcreteShardingProto) String

func (x *ConcreteShardingProto) String() string

type DeviceListProto

type DeviceListProto struct {

	// Serialization and deserialization are expected to ensure that device ids
	// are stable across proto construction and consumption.
	DeviceIds []int32 `protobuf:"varint,1,rep,packed,name=device_ids,json=deviceIds,proto3" json:"device_ids,omitempty"`
	// contains filtered or unexported fields
}

Wire format for `DeviceList`.

func (*DeviceListProto) Descriptor deprecated

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

Deprecated: Use DeviceListProto.ProtoReflect.Descriptor instead.

func (*DeviceListProto) GetDeviceIds

func (x *DeviceListProto) GetDeviceIds() []int32

func (*DeviceListProto) ProtoMessage

func (*DeviceListProto) ProtoMessage()

func (*DeviceListProto) ProtoReflect

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

func (*DeviceListProto) Reset

func (x *DeviceListProto) Reset()

func (*DeviceListProto) String

func (x *DeviceListProto) String() string

type OpaqueShardingProto

type OpaqueShardingProto struct {
	Devices    *DeviceListProto `protobuf:"bytes,1,opt,name=devices,proto3" json:"devices,omitempty"`
	MemoryKind *string          `protobuf:"bytes,2,opt,name=memory_kind,json=memoryKind,proto3,oneof" json:"memory_kind,omitempty"`
	// contains filtered or unexported fields
}

Wire format for `OpaqueSharding`.

func (*OpaqueShardingProto) Descriptor deprecated

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

Deprecated: Use OpaqueShardingProto.ProtoReflect.Descriptor instead.

func (*OpaqueShardingProto) GetDevices

func (x *OpaqueShardingProto) GetDevices() *DeviceListProto

func (*OpaqueShardingProto) GetMemoryKind

func (x *OpaqueShardingProto) GetMemoryKind() string

func (*OpaqueShardingProto) ProtoMessage

func (*OpaqueShardingProto) ProtoMessage()

func (*OpaqueShardingProto) ProtoReflect

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

func (*OpaqueShardingProto) Reset

func (x *OpaqueShardingProto) Reset()

func (*OpaqueShardingProto) String

func (x *OpaqueShardingProto) String() string

type Serialized

type Serialized struct {
	TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
	Data     []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Wire format for objects serialized from `Serializable`.

func (*Serialized) Descriptor deprecated

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

Deprecated: Use Serialized.ProtoReflect.Descriptor instead.

func (*Serialized) GetData

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

func (*Serialized) GetTypeName

func (x *Serialized) GetTypeName() string

func (*Serialized) ProtoMessage

func (*Serialized) ProtoMessage()

func (*Serialized) ProtoReflect

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

func (*Serialized) Reset

func (x *Serialized) Reset()

func (*Serialized) String

func (x *Serialized) String() string

type ShapeProto

type ShapeProto struct {
	Dims []int64 `protobuf:"varint,1,rep,packed,name=dims,proto3" json:"dims,omitempty"`
	// contains filtered or unexported fields
}

Wire format for `Shape`. Currently support static shapes with all dimension sizes greater than or equal to 0.

func (*ShapeProto) Descriptor deprecated

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

Deprecated: Use ShapeProto.ProtoReflect.Descriptor instead.

func (*ShapeProto) GetDims

func (x *ShapeProto) GetDims() []int64

func (*ShapeProto) ProtoMessage

func (*ShapeProto) ProtoMessage()

func (*ShapeProto) ProtoReflect

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

func (*ShapeProto) Reset

func (x *ShapeProto) Reset()

func (*ShapeProto) String

func (x *ShapeProto) String() string

type SingleDeviceShardingProto

type SingleDeviceShardingProto struct {

	// Serialization and deserialization are expected to ensure that device ids
	// are stable across proto construction and consumption.
	DeviceId   int32   `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	MemoryKind *string `protobuf:"bytes,2,opt,name=memory_kind,json=memoryKind,proto3,oneof" json:"memory_kind,omitempty"`
	// contains filtered or unexported fields
}

Wire format for `SingleDeviceSharding`.

func (*SingleDeviceShardingProto) Descriptor deprecated

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

Deprecated: Use SingleDeviceShardingProto.ProtoReflect.Descriptor instead.

func (*SingleDeviceShardingProto) GetDeviceId

func (x *SingleDeviceShardingProto) GetDeviceId() int32

func (*SingleDeviceShardingProto) GetMemoryKind

func (x *SingleDeviceShardingProto) GetMemoryKind() string

func (*SingleDeviceShardingProto) ProtoMessage

func (*SingleDeviceShardingProto) ProtoMessage()

func (*SingleDeviceShardingProto) ProtoReflect

func (*SingleDeviceShardingProto) Reset

func (x *SingleDeviceShardingProto) Reset()

func (*SingleDeviceShardingProto) String

func (x *SingleDeviceShardingProto) String() string

Jump to

Keyboard shortcuts

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