Documentation ¶
Index ¶
- Variables
- type ConcreteEvenShardingProto
- func (*ConcreteEvenShardingProto) Descriptor() ([]byte, []int)deprecated
- func (x *ConcreteEvenShardingProto) GetDevices() *DeviceListProto
- func (x *ConcreteEvenShardingProto) GetMemoryKind() string
- func (x *ConcreteEvenShardingProto) GetShape() *ShapeProto
- func (x *ConcreteEvenShardingProto) GetShardShape() *ShapeProto
- func (*ConcreteEvenShardingProto) ProtoMessage()
- func (x *ConcreteEvenShardingProto) ProtoReflect() protoreflect.Message
- func (x *ConcreteEvenShardingProto) Reset()
- func (x *ConcreteEvenShardingProto) String() string
- type ConcreteShardingProto
- func (*ConcreteShardingProto) Descriptor() ([]byte, []int)deprecated
- func (x *ConcreteShardingProto) GetDevices() *DeviceListProto
- func (x *ConcreteShardingProto) GetMemoryKind() string
- func (x *ConcreteShardingProto) GetShape() *ShapeProto
- func (x *ConcreteShardingProto) GetShardShapes() []*ShapeProto
- func (*ConcreteShardingProto) ProtoMessage()
- func (x *ConcreteShardingProto) ProtoReflect() protoreflect.Message
- func (x *ConcreteShardingProto) Reset()
- func (x *ConcreteShardingProto) String() string
- type DeviceListProto
- type OpaqueShardingProto
- func (*OpaqueShardingProto) Descriptor() ([]byte, []int)deprecated
- func (x *OpaqueShardingProto) GetDevices() *DeviceListProto
- func (x *OpaqueShardingProto) GetMemoryKind() string
- func (*OpaqueShardingProto) ProtoMessage()
- func (x *OpaqueShardingProto) ProtoReflect() protoreflect.Message
- func (x *OpaqueShardingProto) Reset()
- func (x *OpaqueShardingProto) String() string
- type Serialized
- type ShapeProto
- type SingleDeviceShardingProto
- func (*SingleDeviceShardingProto) Descriptor() ([]byte, []int)deprecated
- func (x *SingleDeviceShardingProto) GetDeviceId() int32
- func (x *SingleDeviceShardingProto) GetMemoryKind() string
- func (*SingleDeviceShardingProto) ProtoMessage()
- func (x *SingleDeviceShardingProto) ProtoReflect() protoreflect.Message
- func (x *SingleDeviceShardingProto) Reset()
- func (x *SingleDeviceShardingProto) String() string
Constants ¶
This section is empty.
Variables ¶
var File_tensorflow_compiler_xla_python_ifrt_serdes_proto protoreflect.FileDescriptor
var File_tensorflow_compiler_xla_python_ifrt_sharding_proto protoreflect.FileDescriptor
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 (x *ConcreteEvenShardingProto) ProtoReflect() protoreflect.Message
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 (x *SingleDeviceShardingProto) ProtoReflect() protoreflect.Message
func (*SingleDeviceShardingProto) Reset ¶
func (x *SingleDeviceShardingProto) Reset()
func (*SingleDeviceShardingProto) String ¶
func (x *SingleDeviceShardingProto) String() string