Files
2019-01-02 17:04:10 -05:00

7613 lines
304 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/compiler/xla/service/hlo.proto
#ifndef PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto
#define PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3006000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/map.h> // IWYU pragma: export
#include <google/protobuf/map_entry.h>
#include <google/protobuf/map_field_inl.h>
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include "tensorflow/compiler/xla/xla_data.pb.h"
// @@protoc_insertion_point(includes)
#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto
namespace protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
static const ::google::protobuf::internal::ParseTableField entries[];
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
static const ::google::protobuf::internal::ParseTable schema[18];
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
static const ::google::protobuf::internal::SerializationTable serialization_table[];
static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
} // namespace protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto
namespace xla {
class BufferAllocationProto;
class BufferAllocationProtoDefaultTypeInternal;
extern BufferAllocationProtoDefaultTypeInternal _BufferAllocationProto_default_instance_;
class BufferAllocationProto_Assigned;
class BufferAllocationProto_AssignedDefaultTypeInternal;
extern BufferAllocationProto_AssignedDefaultTypeInternal _BufferAllocationProto_Assigned_default_instance_;
class BufferAssignmentProto;
class BufferAssignmentProtoDefaultTypeInternal;
extern BufferAssignmentProtoDefaultTypeInternal _BufferAssignmentProto_default_instance_;
class BufferAssignmentProto_BufferAlias;
class BufferAssignmentProto_BufferAliasDefaultTypeInternal;
extern BufferAssignmentProto_BufferAliasDefaultTypeInternal _BufferAssignmentProto_BufferAlias_default_instance_;
class HeapSimulatorTrace;
class HeapSimulatorTraceDefaultTypeInternal;
extern HeapSimulatorTraceDefaultTypeInternal _HeapSimulatorTrace_default_instance_;
class HeapSimulatorTrace_Event;
class HeapSimulatorTrace_EventDefaultTypeInternal;
extern HeapSimulatorTrace_EventDefaultTypeInternal _HeapSimulatorTrace_Event_default_instance_;
class HloComputationProto;
class HloComputationProtoDefaultTypeInternal;
extern HloComputationProtoDefaultTypeInternal _HloComputationProto_default_instance_;
class HloInstructionProto;
class HloInstructionProtoDefaultTypeInternal;
extern HloInstructionProtoDefaultTypeInternal _HloInstructionProto_default_instance_;
class HloInstructionProto_SliceDimensions;
class HloInstructionProto_SliceDimensionsDefaultTypeInternal;
extern HloInstructionProto_SliceDimensionsDefaultTypeInternal _HloInstructionProto_SliceDimensions_default_instance_;
class HloModuleGroupProto;
class HloModuleGroupProtoDefaultTypeInternal;
extern HloModuleGroupProtoDefaultTypeInternal _HloModuleGroupProto_default_instance_;
class HloModuleProto;
class HloModuleProtoDefaultTypeInternal;
extern HloModuleProtoDefaultTypeInternal _HloModuleProto_default_instance_;
class HloProto;
class HloProtoDefaultTypeInternal;
extern HloProtoDefaultTypeInternal _HloProto_default_instance_;
class HloScheduleProto;
class HloScheduleProtoDefaultTypeInternal;
extern HloScheduleProtoDefaultTypeInternal _HloScheduleProto_default_instance_;
class HloScheduleProto_InstructionSequence;
class HloScheduleProto_InstructionSequenceDefaultTypeInternal;
extern HloScheduleProto_InstructionSequenceDefaultTypeInternal _HloScheduleProto_InstructionSequence_default_instance_;
class HloScheduleProto_SequencesEntry_DoNotUse;
class HloScheduleProto_SequencesEntry_DoNotUseDefaultTypeInternal;
extern HloScheduleProto_SequencesEntry_DoNotUseDefaultTypeInternal _HloScheduleProto_SequencesEntry_DoNotUse_default_instance_;
class HloSnapshot;
class HloSnapshotDefaultTypeInternal;
extern HloSnapshotDefaultTypeInternal _HloSnapshot_default_instance_;
class LogicalBufferProto;
class LogicalBufferProtoDefaultTypeInternal;
extern LogicalBufferProtoDefaultTypeInternal _LogicalBufferProto_default_instance_;
class LogicalBufferProto_Location;
class LogicalBufferProto_LocationDefaultTypeInternal;
extern LogicalBufferProto_LocationDefaultTypeInternal _LogicalBufferProto_Location_default_instance_;
} // namespace xla
namespace google {
namespace protobuf {
template<> ::xla::BufferAllocationProto* Arena::CreateMaybeMessage<::xla::BufferAllocationProto>(Arena*);
template<> ::xla::BufferAllocationProto_Assigned* Arena::CreateMaybeMessage<::xla::BufferAllocationProto_Assigned>(Arena*);
template<> ::xla::BufferAssignmentProto* Arena::CreateMaybeMessage<::xla::BufferAssignmentProto>(Arena*);
template<> ::xla::BufferAssignmentProto_BufferAlias* Arena::CreateMaybeMessage<::xla::BufferAssignmentProto_BufferAlias>(Arena*);
template<> ::xla::HeapSimulatorTrace* Arena::CreateMaybeMessage<::xla::HeapSimulatorTrace>(Arena*);
template<> ::xla::HeapSimulatorTrace_Event* Arena::CreateMaybeMessage<::xla::HeapSimulatorTrace_Event>(Arena*);
template<> ::xla::HloComputationProto* Arena::CreateMaybeMessage<::xla::HloComputationProto>(Arena*);
template<> ::xla::HloInstructionProto* Arena::CreateMaybeMessage<::xla::HloInstructionProto>(Arena*);
template<> ::xla::HloInstructionProto_SliceDimensions* Arena::CreateMaybeMessage<::xla::HloInstructionProto_SliceDimensions>(Arena*);
template<> ::xla::HloModuleGroupProto* Arena::CreateMaybeMessage<::xla::HloModuleGroupProto>(Arena*);
template<> ::xla::HloModuleProto* Arena::CreateMaybeMessage<::xla::HloModuleProto>(Arena*);
template<> ::xla::HloProto* Arena::CreateMaybeMessage<::xla::HloProto>(Arena*);
template<> ::xla::HloScheduleProto* Arena::CreateMaybeMessage<::xla::HloScheduleProto>(Arena*);
template<> ::xla::HloScheduleProto_InstructionSequence* Arena::CreateMaybeMessage<::xla::HloScheduleProto_InstructionSequence>(Arena*);
template<> ::xla::HloScheduleProto_SequencesEntry_DoNotUse* Arena::CreateMaybeMessage<::xla::HloScheduleProto_SequencesEntry_DoNotUse>(Arena*);
template<> ::xla::HloSnapshot* Arena::CreateMaybeMessage<::xla::HloSnapshot>(Arena*);
template<> ::xla::LogicalBufferProto* Arena::CreateMaybeMessage<::xla::LogicalBufferProto>(Arena*);
template<> ::xla::LogicalBufferProto_Location* Arena::CreateMaybeMessage<::xla::LogicalBufferProto_Location>(Arena*);
} // namespace protobuf
} // namespace google
namespace xla {
enum HeapSimulatorTrace_Event_Kind {
HeapSimulatorTrace_Event_Kind_ALLOC = 0,
HeapSimulatorTrace_Event_Kind_FREE = 1,
HeapSimulatorTrace_Event_Kind_SHARE_WITH = 2,
HeapSimulatorTrace_Event_Kind_HeapSimulatorTrace_Event_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
HeapSimulatorTrace_Event_Kind_HeapSimulatorTrace_Event_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
};
bool HeapSimulatorTrace_Event_Kind_IsValid(int value);
const HeapSimulatorTrace_Event_Kind HeapSimulatorTrace_Event_Kind_Kind_MIN = HeapSimulatorTrace_Event_Kind_ALLOC;
const HeapSimulatorTrace_Event_Kind HeapSimulatorTrace_Event_Kind_Kind_MAX = HeapSimulatorTrace_Event_Kind_SHARE_WITH;
const int HeapSimulatorTrace_Event_Kind_Kind_ARRAYSIZE = HeapSimulatorTrace_Event_Kind_Kind_MAX + 1;
const ::google::protobuf::EnumDescriptor* HeapSimulatorTrace_Event_Kind_descriptor();
inline const ::std::string& HeapSimulatorTrace_Event_Kind_Name(HeapSimulatorTrace_Event_Kind value) {
return ::google::protobuf::internal::NameOfEnum(
HeapSimulatorTrace_Event_Kind_descriptor(), value);
}
inline bool HeapSimulatorTrace_Event_Kind_Parse(
const ::std::string& name, HeapSimulatorTrace_Event_Kind* value) {
return ::google::protobuf::internal::ParseNamedEnum<HeapSimulatorTrace_Event_Kind>(
HeapSimulatorTrace_Event_Kind_descriptor(), name, value);
}
// ===================================================================
class HloInstructionProto_SliceDimensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloInstructionProto.SliceDimensions) */ {
public:
HloInstructionProto_SliceDimensions();
virtual ~HloInstructionProto_SliceDimensions();
HloInstructionProto_SliceDimensions(const HloInstructionProto_SliceDimensions& from);
inline HloInstructionProto_SliceDimensions& operator=(const HloInstructionProto_SliceDimensions& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
HloInstructionProto_SliceDimensions(HloInstructionProto_SliceDimensions&& from) noexcept
: HloInstructionProto_SliceDimensions() {
*this = ::std::move(from);
}
inline HloInstructionProto_SliceDimensions& operator=(HloInstructionProto_SliceDimensions&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const HloInstructionProto_SliceDimensions& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const HloInstructionProto_SliceDimensions* internal_default_instance() {
return reinterpret_cast<const HloInstructionProto_SliceDimensions*>(
&_HloInstructionProto_SliceDimensions_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
void UnsafeArenaSwap(HloInstructionProto_SliceDimensions* other);
void Swap(HloInstructionProto_SliceDimensions* other);
friend void swap(HloInstructionProto_SliceDimensions& a, HloInstructionProto_SliceDimensions& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline HloInstructionProto_SliceDimensions* New() const final {
return CreateMaybeMessage<HloInstructionProto_SliceDimensions>(NULL);
}
HloInstructionProto_SliceDimensions* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<HloInstructionProto_SliceDimensions>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const HloInstructionProto_SliceDimensions& from);
void MergeFrom(const HloInstructionProto_SliceDimensions& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HloInstructionProto_SliceDimensions* other);
protected:
explicit HloInstructionProto_SliceDimensions(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// int64 start = 1;
void clear_start();
static const int kStartFieldNumber = 1;
::google::protobuf::int64 start() const;
void set_start(::google::protobuf::int64 value);
// int64 limit = 2;
void clear_limit();
static const int kLimitFieldNumber = 2;
::google::protobuf::int64 limit() const;
void set_limit(::google::protobuf::int64 value);
// int64 stride = 3;
void clear_stride();
static const int kStrideFieldNumber = 3;
::google::protobuf::int64 stride() const;
void set_stride(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:xla.HloInstructionProto.SliceDimensions)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::int64 start_;
::google::protobuf::int64 limit_;
::google::protobuf::int64 stride_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class HloInstructionProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloInstructionProto) */ {
public:
HloInstructionProto();
virtual ~HloInstructionProto();
HloInstructionProto(const HloInstructionProto& from);
inline HloInstructionProto& operator=(const HloInstructionProto& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
HloInstructionProto(HloInstructionProto&& from) noexcept
: HloInstructionProto() {
*this = ::std::move(from);
}
inline HloInstructionProto& operator=(HloInstructionProto&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const HloInstructionProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const HloInstructionProto* internal_default_instance() {
return reinterpret_cast<const HloInstructionProto*>(
&_HloInstructionProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
void UnsafeArenaSwap(HloInstructionProto* other);
void Swap(HloInstructionProto* other);
friend void swap(HloInstructionProto& a, HloInstructionProto& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline HloInstructionProto* New() const final {
return CreateMaybeMessage<HloInstructionProto>(NULL);
}
HloInstructionProto* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<HloInstructionProto>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const HloInstructionProto& from);
void MergeFrom(const HloInstructionProto& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HloInstructionProto* other);
protected:
explicit HloInstructionProto(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef HloInstructionProto_SliceDimensions SliceDimensions;
// accessors -------------------------------------------------------
// repeated int64 dimensions = 14;
int dimensions_size() const;
void clear_dimensions();
static const int kDimensionsFieldNumber = 14;
::google::protobuf::int64 dimensions(int index) const;
void set_dimensions(int index, ::google::protobuf::int64 value);
void add_dimensions(::google::protobuf::int64 value);
const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
dimensions() const;
::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_dimensions();
// repeated .xla.HloInstructionProto.SliceDimensions slice_dimensions = 17;
int slice_dimensions_size() const;
void clear_slice_dimensions();
static const int kSliceDimensionsFieldNumber = 17;
::xla::HloInstructionProto_SliceDimensions* mutable_slice_dimensions(int index);
::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto_SliceDimensions >*
mutable_slice_dimensions();
const ::xla::HloInstructionProto_SliceDimensions& slice_dimensions(int index) const;
::xla::HloInstructionProto_SliceDimensions* add_slice_dimensions();
const ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto_SliceDimensions >&
slice_dimensions() const;
// repeated int64 dynamic_slice_sizes = 20;
int dynamic_slice_sizes_size() const;
void clear_dynamic_slice_sizes();
static const int kDynamicSliceSizesFieldNumber = 20;
::google::protobuf::int64 dynamic_slice_sizes(int index) const;
void set_dynamic_slice_sizes(int index, ::google::protobuf::int64 value);
void add_dynamic_slice_sizes(::google::protobuf::int64 value);
const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
dynamic_slice_sizes() const;
::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_dynamic_slice_sizes();
// repeated int64 fft_length = 32;
int fft_length_size() const;
void clear_fft_length();
static const int kFftLengthFieldNumber = 32;
::google::protobuf::int64 fft_length(int index) const;
void set_fft_length(int index, ::google::protobuf::int64 value);
void add_fft_length(::google::protobuf::int64 value);
const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
fft_length() const;
::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_fft_length();
// repeated int64 gather_slice_sizes = 34;
int gather_slice_sizes_size() const;
void clear_gather_slice_sizes();
static const int kGatherSliceSizesFieldNumber = 34;
::google::protobuf::int64 gather_slice_sizes(int index) const;
void set_gather_slice_sizes(int index, ::google::protobuf::int64 value);
void add_gather_slice_sizes(::google::protobuf::int64 value);
const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
gather_slice_sizes() const;
::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_gather_slice_sizes();
// repeated int64 operand_ids = 36;
int operand_ids_size() const;
void clear_operand_ids();
static const int kOperandIdsFieldNumber = 36;
::google::protobuf::int64 operand_ids(int index) const;
void set_operand_ids(int index, ::google::protobuf::int64 value);
void add_operand_ids(::google::protobuf::int64 value);
const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
operand_ids() const;
::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_operand_ids();
// repeated int64 control_predecessor_ids = 37;
int control_predecessor_ids_size() const;
void clear_control_predecessor_ids();
static const int kControlPredecessorIdsFieldNumber = 37;
::google::protobuf::int64 control_predecessor_ids(int index) const;
void set_control_predecessor_ids(int index, ::google::protobuf::int64 value);
void add_control_predecessor_ids(::google::protobuf::int64 value);
const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
control_predecessor_ids() const;
::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_control_predecessor_ids();
// repeated int64 called_computation_ids = 38;
int called_computation_ids_size() const;
void clear_called_computation_ids();
static const int kCalledComputationIdsFieldNumber = 38;
::google::protobuf::int64 called_computation_ids(int index) const;
void set_called_computation_ids(int index, ::google::protobuf::int64 value);
void add_called_computation_ids(::google::protobuf::int64 value);
const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
called_computation_ids() const;
::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_called_computation_ids();
// repeated .xla.ReplicaGroup replica_groups = 49;
int replica_groups_size() const;
void clear_replica_groups();
static const int kReplicaGroupsFieldNumber = 49;
::xla::ReplicaGroup* mutable_replica_groups(int index);
::google::protobuf::RepeatedPtrField< ::xla::ReplicaGroup >*
mutable_replica_groups();
const ::xla::ReplicaGroup& replica_groups(int index) const;
::xla::ReplicaGroup* add_replica_groups();
const ::google::protobuf::RepeatedPtrField< ::xla::ReplicaGroup >&
replica_groups() const;
// repeated .xla.SourceTarget source_target_pairs = 52;
int source_target_pairs_size() const;
void clear_source_target_pairs();
static const int kSourceTargetPairsFieldNumber = 52;
::xla::SourceTarget* mutable_source_target_pairs(int index);
::google::protobuf::RepeatedPtrField< ::xla::SourceTarget >*
mutable_source_target_pairs();
const ::xla::SourceTarget& source_target_pairs(int index) const;
::xla::SourceTarget* add_source_target_pairs();
const ::google::protobuf::RepeatedPtrField< ::xla::SourceTarget >&
source_target_pairs() const;
// string name = 1;
void clear_name();
static const int kNameFieldNumber = 1;
const ::std::string& name() const;
void set_name(const ::std::string& value);
#if LANG_CXX11
void set_name(::std::string&& value);
#endif
void set_name(const char* value);
void set_name(const char* value, size_t size);
::std::string* mutable_name();
::std::string* release_name();
void set_allocated_name(::std::string* name);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_name();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_name(
::std::string* name);
// string opcode = 2;
void clear_opcode();
static const int kOpcodeFieldNumber = 2;
const ::std::string& opcode() const;
void set_opcode(const ::std::string& value);
#if LANG_CXX11
void set_opcode(::std::string&& value);
#endif
void set_opcode(const char* value);
void set_opcode(const char* value, size_t size);
::std::string* mutable_opcode();
::std::string* release_opcode();
void set_allocated_opcode(::std::string* opcode);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_opcode();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_opcode(
::std::string* opcode);
// string fusion_kind = 11;
void clear_fusion_kind();
static const int kFusionKindFieldNumber = 11;
const ::std::string& fusion_kind() const;
void set_fusion_kind(const ::std::string& value);
#if LANG_CXX11
void set_fusion_kind(::std::string&& value);
#endif
void set_fusion_kind(const char* value);
void set_fusion_kind(const char* value, size_t size);
::std::string* mutable_fusion_kind();
::std::string* release_fusion_kind();
void set_allocated_fusion_kind(::std::string* fusion_kind);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_fusion_kind();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_fusion_kind(
::std::string* fusion_kind);
// bytes outfeed_config = 22;
void clear_outfeed_config();
static const int kOutfeedConfigFieldNumber = 22;
const ::std::string& outfeed_config() const;
void set_outfeed_config(const ::std::string& value);
#if LANG_CXX11
void set_outfeed_config(::std::string&& value);
#endif
void set_outfeed_config(const char* value);
void set_outfeed_config(const void* value, size_t size);
::std::string* mutable_outfeed_config();
::std::string* release_outfeed_config();
void set_allocated_outfeed_config(::std::string* outfeed_config);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_outfeed_config();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_outfeed_config(
::std::string* outfeed_config);
// bytes infeed_config = 27;
void clear_infeed_config();
static const int kInfeedConfigFieldNumber = 27;
const ::std::string& infeed_config() const;
void set_infeed_config(const ::std::string& value);
#if LANG_CXX11
void set_infeed_config(::std::string&& value);
#endif
void set_infeed_config(const char* value);
void set_infeed_config(const void* value, size_t size);
::std::string* mutable_infeed_config();
::std::string* release_infeed_config();
void set_allocated_infeed_config(::std::string* infeed_config);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_infeed_config();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_infeed_config(
::std::string* infeed_config);
// string custom_call_target = 28;
void clear_custom_call_target();
static const int kCustomCallTargetFieldNumber = 28;
const ::std::string& custom_call_target() const;
void set_custom_call_target(const ::std::string& value);
#if LANG_CXX11
void set_custom_call_target(::std::string&& value);
#endif
void set_custom_call_target(const char* value);
void set_custom_call_target(const char* value, size_t size);
::std::string* mutable_custom_call_target();
::std::string* release_custom_call_target();
void set_allocated_custom_call_target(::std::string* custom_call_target);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_custom_call_target();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_custom_call_target(
::std::string* custom_call_target);
// string channel_name = 41;
void clear_channel_name();
static const int kChannelNameFieldNumber = 41;
const ::std::string& channel_name() const;
void set_channel_name(const ::std::string& value);
#if LANG_CXX11
void set_channel_name(::std::string&& value);
#endif
void set_channel_name(const char* value);
void set_channel_name(const char* value, size_t size);
::std::string* mutable_channel_name();
::std::string* release_channel_name();
void set_allocated_channel_name(::std::string* channel_name);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_channel_name();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_channel_name(
::std::string* channel_name);
// string backend_config = 43;
void clear_backend_config();
static const int kBackendConfigFieldNumber = 43;
const ::std::string& backend_config() const;
void set_backend_config(const ::std::string& value);
#if LANG_CXX11
void set_backend_config(::std::string&& value);
#endif
void set_backend_config(const char* value);
void set_backend_config(const char* value, size_t size);
::std::string* mutable_backend_config();
::std::string* release_backend_config();
void set_allocated_backend_config(::std::string* backend_config);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_backend_config();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_backend_config(
::std::string* backend_config);
// string cross_replica_sum_barrier = 46;
void clear_cross_replica_sum_barrier();
static const int kCrossReplicaSumBarrierFieldNumber = 46;
const ::std::string& cross_replica_sum_barrier() const;
void set_cross_replica_sum_barrier(const ::std::string& value);
#if LANG_CXX11
void set_cross_replica_sum_barrier(::std::string&& value);
#endif
void set_cross_replica_sum_barrier(const char* value);
void set_cross_replica_sum_barrier(const char* value, size_t size);
::std::string* mutable_cross_replica_sum_barrier();
::std::string* release_cross_replica_sum_barrier();
void set_allocated_cross_replica_sum_barrier(::std::string* cross_replica_sum_barrier);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_cross_replica_sum_barrier();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_cross_replica_sum_barrier(
::std::string* cross_replica_sum_barrier);
// string custom_call_opaque = 53;
void clear_custom_call_opaque();
static const int kCustomCallOpaqueFieldNumber = 53;
const ::std::string& custom_call_opaque() const;
void set_custom_call_opaque(const ::std::string& value);
#if LANG_CXX11
void set_custom_call_opaque(::std::string&& value);
#endif
void set_custom_call_opaque(const char* value);
void set_custom_call_opaque(const char* value, size_t size);
::std::string* mutable_custom_call_opaque();
::std::string* release_custom_call_opaque();
void set_allocated_custom_call_opaque(::std::string* custom_call_opaque);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_custom_call_opaque();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_custom_call_opaque(
::std::string* custom_call_opaque);
// .xla.Shape shape = 3;
bool has_shape() const;
void clear_shape();
static const int kShapeFieldNumber = 3;
private:
const ::xla::Shape& _internal_shape() const;
public:
const ::xla::Shape& shape() const;
::xla::Shape* release_shape();
::xla::Shape* mutable_shape();
void set_allocated_shape(::xla::Shape* shape);
void unsafe_arena_set_allocated_shape(
::xla::Shape* shape);
::xla::Shape* unsafe_arena_release_shape();
// .xla.OpMetadata metadata = 7;
bool has_metadata() const;
void clear_metadata();
static const int kMetadataFieldNumber = 7;
private:
const ::xla::OpMetadata& _internal_metadata() const;
public:
const ::xla::OpMetadata& metadata() const;
::xla::OpMetadata* release_metadata();
::xla::OpMetadata* mutable_metadata();
void set_allocated_metadata(::xla::OpMetadata* metadata);
void unsafe_arena_set_allocated_metadata(
::xla::OpMetadata* metadata);
::xla::OpMetadata* unsafe_arena_release_metadata();
// .xla.LiteralProto literal = 8;
bool has_literal() const;
void clear_literal();
static const int kLiteralFieldNumber = 8;
private:
const ::xla::LiteralProto& _internal_literal() const;
public:
const ::xla::LiteralProto& literal() const;
::xla::LiteralProto* release_literal();
::xla::LiteralProto* mutable_literal();
void set_allocated_literal(::xla::LiteralProto* literal);
void unsafe_arena_set_allocated_literal(
::xla::LiteralProto* literal);
::xla::LiteralProto* unsafe_arena_release_literal();
// .xla.Window window = 15;
bool has_window() const;
void clear_window();
static const int kWindowFieldNumber = 15;
private:
const ::xla::Window& _internal_window() const;
public:
const ::xla::Window& window() const;
::xla::Window* release_window();
::xla::Window* mutable_window();
void set_allocated_window(::xla::Window* window);
void unsafe_arena_set_allocated_window(
::xla::Window* window);
::xla::Window* unsafe_arena_release_window();
// .xla.ConvolutionDimensionNumbers convolution_dimension_numbers = 16;
bool has_convolution_dimension_numbers() const;
void clear_convolution_dimension_numbers();
static const int kConvolutionDimensionNumbersFieldNumber = 16;
private:
const ::xla::ConvolutionDimensionNumbers& _internal_convolution_dimension_numbers() const;
public:
const ::xla::ConvolutionDimensionNumbers& convolution_dimension_numbers() const;
::xla::ConvolutionDimensionNumbers* release_convolution_dimension_numbers();
::xla::ConvolutionDimensionNumbers* mutable_convolution_dimension_numbers();
void set_allocated_convolution_dimension_numbers(::xla::ConvolutionDimensionNumbers* convolution_dimension_numbers);
void unsafe_arena_set_allocated_convolution_dimension_numbers(
::xla::ConvolutionDimensionNumbers* convolution_dimension_numbers);
::xla::ConvolutionDimensionNumbers* unsafe_arena_release_convolution_dimension_numbers();
// .xla.PaddingConfig padding_config = 21;
bool has_padding_config() const;
void clear_padding_config();
static const int kPaddingConfigFieldNumber = 21;
private:
const ::xla::PaddingConfig& _internal_padding_config() const;
public:
const ::xla::PaddingConfig& padding_config() const;
::xla::PaddingConfig* release_padding_config();
::xla::PaddingConfig* mutable_padding_config();
void set_allocated_padding_config(::xla::PaddingConfig* padding_config);
void unsafe_arena_set_allocated_padding_config(
::xla::PaddingConfig* padding_config);
::xla::PaddingConfig* unsafe_arena_release_padding_config();
// .xla.Shape outfeed_shape = 29;
bool has_outfeed_shape() const;
void clear_outfeed_shape();
static const int kOutfeedShapeFieldNumber = 29;
private:
const ::xla::Shape& _internal_outfeed_shape() const;
public:
const ::xla::Shape& outfeed_shape() const;
::xla::Shape* release_outfeed_shape();
::xla::Shape* mutable_outfeed_shape();
void set_allocated_outfeed_shape(::xla::Shape* outfeed_shape);
void unsafe_arena_set_allocated_outfeed_shape(
::xla::Shape* outfeed_shape);
::xla::Shape* unsafe_arena_release_outfeed_shape();
// .xla.DotDimensionNumbers dot_dimension_numbers = 30;
bool has_dot_dimension_numbers() const;
void clear_dot_dimension_numbers();
static const int kDotDimensionNumbersFieldNumber = 30;
private:
const ::xla::DotDimensionNumbers& _internal_dot_dimension_numbers() const;
public:
const ::xla::DotDimensionNumbers& dot_dimension_numbers() const;
::xla::DotDimensionNumbers* release_dot_dimension_numbers();
::xla::DotDimensionNumbers* mutable_dot_dimension_numbers();
void set_allocated_dot_dimension_numbers(::xla::DotDimensionNumbers* dot_dimension_numbers);
void unsafe_arena_set_allocated_dot_dimension_numbers(
::xla::DotDimensionNumbers* dot_dimension_numbers);
::xla::DotDimensionNumbers* unsafe_arena_release_dot_dimension_numbers();
// .xla.GatherDimensionNumbers gather_dimension_numbers = 33;
bool has_gather_dimension_numbers() const;
void clear_gather_dimension_numbers();
static const int kGatherDimensionNumbersFieldNumber = 33;
private:
const ::xla::GatherDimensionNumbers& _internal_gather_dimension_numbers() const;
public:
const ::xla::GatherDimensionNumbers& gather_dimension_numbers() const;
::xla::GatherDimensionNumbers* release_gather_dimension_numbers();
::xla::GatherDimensionNumbers* mutable_gather_dimension_numbers();
void set_allocated_gather_dimension_numbers(::xla::GatherDimensionNumbers* gather_dimension_numbers);
void unsafe_arena_set_allocated_gather_dimension_numbers(
::xla::GatherDimensionNumbers* gather_dimension_numbers);
::xla::GatherDimensionNumbers* unsafe_arena_release_gather_dimension_numbers();
// .xla.OpSharding sharding = 40;
bool has_sharding() const;
void clear_sharding();
static const int kShardingFieldNumber = 40;
private:
const ::xla::OpSharding& _internal_sharding() const;
public:
const ::xla::OpSharding& sharding() const;
::xla::OpSharding* release_sharding();
::xla::OpSharding* mutable_sharding();
void set_allocated_sharding(::xla::OpSharding* sharding);
void unsafe_arena_set_allocated_sharding(
::xla::OpSharding* sharding);
::xla::OpSharding* unsafe_arena_release_sharding();
// .xla.ScatterDimensionNumbers scatter_dimension_numbers = 48;
bool has_scatter_dimension_numbers() const;
void clear_scatter_dimension_numbers();
static const int kScatterDimensionNumbersFieldNumber = 48;
private:
const ::xla::ScatterDimensionNumbers& _internal_scatter_dimension_numbers() const;
public:
const ::xla::ScatterDimensionNumbers& scatter_dimension_numbers() const;
::xla::ScatterDimensionNumbers* release_scatter_dimension_numbers();
::xla::ScatterDimensionNumbers* mutable_scatter_dimension_numbers();
void set_allocated_scatter_dimension_numbers(::xla::ScatterDimensionNumbers* scatter_dimension_numbers);
void unsafe_arena_set_allocated_scatter_dimension_numbers(
::xla::ScatterDimensionNumbers* scatter_dimension_numbers);
::xla::ScatterDimensionNumbers* unsafe_arena_release_scatter_dimension_numbers();
// .xla.PrecisionConfig precision_config = 51;
bool has_precision_config() const;
void clear_precision_config();
static const int kPrecisionConfigFieldNumber = 51;
private:
const ::xla::PrecisionConfig& _internal_precision_config() const;
public:
const ::xla::PrecisionConfig& precision_config() const;
::xla::PrecisionConfig* release_precision_config();
::xla::PrecisionConfig* mutable_precision_config();
void set_allocated_precision_config(::xla::PrecisionConfig* precision_config);
void unsafe_arena_set_allocated_precision_config(
::xla::PrecisionConfig* precision_config);
::xla::PrecisionConfig* unsafe_arena_release_precision_config();
// int64 parameter_number = 9;
void clear_parameter_number();
static const int kParameterNumberFieldNumber = 9;
::google::protobuf::int64 parameter_number() const;
void set_parameter_number(::google::protobuf::int64 value);
// int64 tuple_index = 13;
void clear_tuple_index();
static const int kTupleIndexFieldNumber = 13;
::google::protobuf::int64 tuple_index() const;
void set_tuple_index(::google::protobuf::int64 value);
// int32 exponent_bits = 18;
void clear_exponent_bits();
static const int kExponentBitsFieldNumber = 18;
::google::protobuf::int32 exponent_bits() const;
void set_exponent_bits(::google::protobuf::int32 value);
// int32 mantissa_bits = 19;
void clear_mantissa_bits();
static const int kMantissaBitsFieldNumber = 19;
::google::protobuf::int32 mantissa_bits() const;
void set_mantissa_bits(::google::protobuf::int32 value);
// .xla.RandomDistribution distribution = 23;
void clear_distribution();
static const int kDistributionFieldNumber = 23;
::xla::RandomDistribution distribution() const;
void set_distribution(::xla::RandomDistribution value);
// float epsilon = 24;
void clear_epsilon();
static const int kEpsilonFieldNumber = 24;
float epsilon() const;
void set_epsilon(float value);
// int64 feature_index = 25;
void clear_feature_index();
static const int kFeatureIndexFieldNumber = 25;
::google::protobuf::int64 feature_index() const;
void set_feature_index(::google::protobuf::int64 value);
// int64 channel_id = 26;
void clear_channel_id();
static const int kChannelIdFieldNumber = 26;
::google::protobuf::int64 channel_id() const;
void set_channel_id(::google::protobuf::int64 value);
// int64 id = 35;
void clear_id();
static const int kIdFieldNumber = 35;
::google::protobuf::int64 id() const;
void set_id(::google::protobuf::int64 value);
// .xla.FftType fft_type = 31;
void clear_fft_type();
static const int kFftTypeFieldNumber = 31;
::xla::FftType fft_type() const;
void set_fft_type(::xla::FftType value);
// bool is_host_transfer = 47;
void clear_is_host_transfer();
static const int kIsHostTransferFieldNumber = 47;
bool is_host_transfer() const;
void set_is_host_transfer(bool value);
// int64 cost_estimate_ns = 42;
void clear_cost_estimate_ns();
static const int kCostEstimateNsFieldNumber = 42;
::google::protobuf::int64 cost_estimate_ns() const;
void set_cost_estimate_ns(::google::protobuf::int64 value);
// int64 all_reduce_id = 45;
void clear_all_reduce_id();
static const int kAllReduceIdFieldNumber = 45;
::google::protobuf::int64 all_reduce_id() const;
void set_all_reduce_id(::google::protobuf::int64 value);
// int64 feature_group_count = 50;
void clear_feature_group_count();
static const int kFeatureGroupCountFieldNumber = 50;
::google::protobuf::int64 feature_group_count() const;
void set_feature_group_count(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:xla.HloInstructionProto)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::RepeatedField< ::google::protobuf::int64 > dimensions_;
mutable int _dimensions_cached_byte_size_;
::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto_SliceDimensions > slice_dimensions_;
::google::protobuf::RepeatedField< ::google::protobuf::int64 > dynamic_slice_sizes_;
mutable int _dynamic_slice_sizes_cached_byte_size_;
::google::protobuf::RepeatedField< ::google::protobuf::int64 > fft_length_;
mutable int _fft_length_cached_byte_size_;
::google::protobuf::RepeatedField< ::google::protobuf::int64 > gather_slice_sizes_;
mutable int _gather_slice_sizes_cached_byte_size_;
::google::protobuf::RepeatedField< ::google::protobuf::int64 > operand_ids_;
mutable int _operand_ids_cached_byte_size_;
::google::protobuf::RepeatedField< ::google::protobuf::int64 > control_predecessor_ids_;
mutable int _control_predecessor_ids_cached_byte_size_;
::google::protobuf::RepeatedField< ::google::protobuf::int64 > called_computation_ids_;
mutable int _called_computation_ids_cached_byte_size_;
::google::protobuf::RepeatedPtrField< ::xla::ReplicaGroup > replica_groups_;
::google::protobuf::RepeatedPtrField< ::xla::SourceTarget > source_target_pairs_;
::google::protobuf::internal::ArenaStringPtr name_;
::google::protobuf::internal::ArenaStringPtr opcode_;
::google::protobuf::internal::ArenaStringPtr fusion_kind_;
::google::protobuf::internal::ArenaStringPtr outfeed_config_;
::google::protobuf::internal::ArenaStringPtr infeed_config_;
::google::protobuf::internal::ArenaStringPtr custom_call_target_;
::google::protobuf::internal::ArenaStringPtr channel_name_;
::google::protobuf::internal::ArenaStringPtr backend_config_;
::google::protobuf::internal::ArenaStringPtr cross_replica_sum_barrier_;
::google::protobuf::internal::ArenaStringPtr custom_call_opaque_;
::xla::Shape* shape_;
::xla::OpMetadata* metadata_;
::xla::LiteralProto* literal_;
::xla::Window* window_;
::xla::ConvolutionDimensionNumbers* convolution_dimension_numbers_;
::xla::PaddingConfig* padding_config_;
::xla::Shape* outfeed_shape_;
::xla::DotDimensionNumbers* dot_dimension_numbers_;
::xla::GatherDimensionNumbers* gather_dimension_numbers_;
::xla::OpSharding* sharding_;
::xla::ScatterDimensionNumbers* scatter_dimension_numbers_;
::xla::PrecisionConfig* precision_config_;
::google::protobuf::int64 parameter_number_;
::google::protobuf::int64 tuple_index_;
::google::protobuf::int32 exponent_bits_;
::google::protobuf::int32 mantissa_bits_;
int distribution_;
float epsilon_;
::google::protobuf::int64 feature_index_;
::google::protobuf::int64 channel_id_;
::google::protobuf::int64 id_;
int fft_type_;
bool is_host_transfer_;
::google::protobuf::int64 cost_estimate_ns_;
::google::protobuf::int64 all_reduce_id_;
::google::protobuf::int64 feature_group_count_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class HloComputationProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloComputationProto) */ {
public:
HloComputationProto();
virtual ~HloComputationProto();
HloComputationProto(const HloComputationProto& from);
inline HloComputationProto& operator=(const HloComputationProto& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
HloComputationProto(HloComputationProto&& from) noexcept
: HloComputationProto() {
*this = ::std::move(from);
}
inline HloComputationProto& operator=(HloComputationProto&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const HloComputationProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const HloComputationProto* internal_default_instance() {
return reinterpret_cast<const HloComputationProto*>(
&_HloComputationProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
void UnsafeArenaSwap(HloComputationProto* other);
void Swap(HloComputationProto* other);
friend void swap(HloComputationProto& a, HloComputationProto& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline HloComputationProto* New() const final {
return CreateMaybeMessage<HloComputationProto>(NULL);
}
HloComputationProto* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<HloComputationProto>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const HloComputationProto& from);
void MergeFrom(const HloComputationProto& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HloComputationProto* other);
protected:
explicit HloComputationProto(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .xla.HloInstructionProto instructions = 2;
int instructions_size() const;
void clear_instructions();
static const int kInstructionsFieldNumber = 2;
::xla::HloInstructionProto* mutable_instructions(int index);
::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto >*
mutable_instructions();
const ::xla::HloInstructionProto& instructions(int index) const;
::xla::HloInstructionProto* add_instructions();
const ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto >&
instructions() const;
// string name = 1;
void clear_name();
static const int kNameFieldNumber = 1;
const ::std::string& name() const;
void set_name(const ::std::string& value);
#if LANG_CXX11
void set_name(::std::string&& value);
#endif
void set_name(const char* value);
void set_name(const char* value, size_t size);
::std::string* mutable_name();
::std::string* release_name();
void set_allocated_name(::std::string* name);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_name();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_name(
::std::string* name);
// .xla.ProgramShape program_shape = 4;
bool has_program_shape() const;
void clear_program_shape();
static const int kProgramShapeFieldNumber = 4;
private:
const ::xla::ProgramShape& _internal_program_shape() const;
public:
const ::xla::ProgramShape& program_shape() const;
::xla::ProgramShape* release_program_shape();
::xla::ProgramShape* mutable_program_shape();
void set_allocated_program_shape(::xla::ProgramShape* program_shape);
void unsafe_arena_set_allocated_program_shape(
::xla::ProgramShape* program_shape);
::xla::ProgramShape* unsafe_arena_release_program_shape();
// int64 id = 5;
void clear_id();
static const int kIdFieldNumber = 5;
::google::protobuf::int64 id() const;
void set_id(::google::protobuf::int64 value);
// int64 root_id = 6;
void clear_root_id();
static const int kRootIdFieldNumber = 6;
::google::protobuf::int64 root_id() const;
void set_root_id(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:xla.HloComputationProto)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto > instructions_;
::google::protobuf::internal::ArenaStringPtr name_;
::xla::ProgramShape* program_shape_;
::google::protobuf::int64 id_;
::google::protobuf::int64 root_id_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class HloScheduleProto_InstructionSequence : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloScheduleProto.InstructionSequence) */ {
public:
HloScheduleProto_InstructionSequence();
virtual ~HloScheduleProto_InstructionSequence();
HloScheduleProto_InstructionSequence(const HloScheduleProto_InstructionSequence& from);
inline HloScheduleProto_InstructionSequence& operator=(const HloScheduleProto_InstructionSequence& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
HloScheduleProto_InstructionSequence(HloScheduleProto_InstructionSequence&& from) noexcept
: HloScheduleProto_InstructionSequence() {
*this = ::std::move(from);
}
inline HloScheduleProto_InstructionSequence& operator=(HloScheduleProto_InstructionSequence&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const HloScheduleProto_InstructionSequence& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const HloScheduleProto_InstructionSequence* internal_default_instance() {
return reinterpret_cast<const HloScheduleProto_InstructionSequence*>(
&_HloScheduleProto_InstructionSequence_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
void UnsafeArenaSwap(HloScheduleProto_InstructionSequence* other);
void Swap(HloScheduleProto_InstructionSequence* other);
friend void swap(HloScheduleProto_InstructionSequence& a, HloScheduleProto_InstructionSequence& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline HloScheduleProto_InstructionSequence* New() const final {
return CreateMaybeMessage<HloScheduleProto_InstructionSequence>(NULL);
}
HloScheduleProto_InstructionSequence* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<HloScheduleProto_InstructionSequence>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const HloScheduleProto_InstructionSequence& from);
void MergeFrom(const HloScheduleProto_InstructionSequence& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HloScheduleProto_InstructionSequence* other);
protected:
explicit HloScheduleProto_InstructionSequence(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated int64 instruction_ids = 1;
int instruction_ids_size() const;
void clear_instruction_ids();
static const int kInstructionIdsFieldNumber = 1;
::google::protobuf::int64 instruction_ids(int index) const;
void set_instruction_ids(int index, ::google::protobuf::int64 value);
void add_instruction_ids(::google::protobuf::int64 value);
const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
instruction_ids() const;
::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_instruction_ids();
// @@protoc_insertion_point(class_scope:xla.HloScheduleProto.InstructionSequence)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::RepeatedField< ::google::protobuf::int64 > instruction_ids_;
mutable int _instruction_ids_cached_byte_size_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class HloScheduleProto_SequencesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<HloScheduleProto_SequencesEntry_DoNotUse,
::google::protobuf::int64, ::xla::HloScheduleProto_InstructionSequence,
::google::protobuf::internal::WireFormatLite::TYPE_INT64,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > {
public:
typedef ::google::protobuf::internal::MapEntry<HloScheduleProto_SequencesEntry_DoNotUse,
::google::protobuf::int64, ::xla::HloScheduleProto_InstructionSequence,
::google::protobuf::internal::WireFormatLite::TYPE_INT64,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > SuperType;
HloScheduleProto_SequencesEntry_DoNotUse();
HloScheduleProto_SequencesEntry_DoNotUse(::google::protobuf::Arena* arena);
void MergeFrom(const HloScheduleProto_SequencesEntry_DoNotUse& other);
static const HloScheduleProto_SequencesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const HloScheduleProto_SequencesEntry_DoNotUse*>(&_HloScheduleProto_SequencesEntry_DoNotUse_default_instance_); }
void MergeFrom(const ::google::protobuf::Message& other) final;
::google::protobuf::Metadata GetMetadata() const;
};
// -------------------------------------------------------------------
class HloScheduleProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloScheduleProto) */ {
public:
HloScheduleProto();
virtual ~HloScheduleProto();
HloScheduleProto(const HloScheduleProto& from);
inline HloScheduleProto& operator=(const HloScheduleProto& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
HloScheduleProto(HloScheduleProto&& from) noexcept
: HloScheduleProto() {
*this = ::std::move(from);
}
inline HloScheduleProto& operator=(HloScheduleProto&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const HloScheduleProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const HloScheduleProto* internal_default_instance() {
return reinterpret_cast<const HloScheduleProto*>(
&_HloScheduleProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
5;
void UnsafeArenaSwap(HloScheduleProto* other);
void Swap(HloScheduleProto* other);
friend void swap(HloScheduleProto& a, HloScheduleProto& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline HloScheduleProto* New() const final {
return CreateMaybeMessage<HloScheduleProto>(NULL);
}
HloScheduleProto* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<HloScheduleProto>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const HloScheduleProto& from);
void MergeFrom(const HloScheduleProto& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HloScheduleProto* other);
protected:
explicit HloScheduleProto(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef HloScheduleProto_InstructionSequence InstructionSequence;
// accessors -------------------------------------------------------
// map<int64, .xla.HloScheduleProto.InstructionSequence> sequences = 1;
int sequences_size() const;
void clear_sequences();
static const int kSequencesFieldNumber = 1;
const ::google::protobuf::Map< ::google::protobuf::int64, ::xla::HloScheduleProto_InstructionSequence >&
sequences() const;
::google::protobuf::Map< ::google::protobuf::int64, ::xla::HloScheduleProto_InstructionSequence >*
mutable_sequences();
// @@protoc_insertion_point(class_scope:xla.HloScheduleProto)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::MapField<
HloScheduleProto_SequencesEntry_DoNotUse,
::google::protobuf::int64, ::xla::HloScheduleProto_InstructionSequence,
::google::protobuf::internal::WireFormatLite::TYPE_INT64,
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
0 > sequences_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class HloModuleProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloModuleProto) */ {
public:
HloModuleProto();
virtual ~HloModuleProto();
HloModuleProto(const HloModuleProto& from);
inline HloModuleProto& operator=(const HloModuleProto& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
HloModuleProto(HloModuleProto&& from) noexcept
: HloModuleProto() {
*this = ::std::move(from);
}
inline HloModuleProto& operator=(HloModuleProto&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const HloModuleProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const HloModuleProto* internal_default_instance() {
return reinterpret_cast<const HloModuleProto*>(
&_HloModuleProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
6;
void UnsafeArenaSwap(HloModuleProto* other);
void Swap(HloModuleProto* other);
friend void swap(HloModuleProto& a, HloModuleProto& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline HloModuleProto* New() const final {
return CreateMaybeMessage<HloModuleProto>(NULL);
}
HloModuleProto* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<HloModuleProto>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const HloModuleProto& from);
void MergeFrom(const HloModuleProto& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HloModuleProto* other);
protected:
explicit HloModuleProto(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .xla.HloComputationProto computations = 3;
int computations_size() const;
void clear_computations();
static const int kComputationsFieldNumber = 3;
::xla::HloComputationProto* mutable_computations(int index);
::google::protobuf::RepeatedPtrField< ::xla::HloComputationProto >*
mutable_computations();
const ::xla::HloComputationProto& computations(int index) const;
::xla::HloComputationProto* add_computations();
const ::google::protobuf::RepeatedPtrField< ::xla::HloComputationProto >&
computations() const;
// string name = 1;
void clear_name();
static const int kNameFieldNumber = 1;
const ::std::string& name() const;
void set_name(const ::std::string& value);
#if LANG_CXX11
void set_name(::std::string&& value);
#endif
void set_name(const char* value);
void set_name(const char* value, size_t size);
::std::string* mutable_name();
::std::string* release_name();
void set_allocated_name(::std::string* name);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_name();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_name(
::std::string* name);
// string entry_computation_name = 2;
void clear_entry_computation_name();
static const int kEntryComputationNameFieldNumber = 2;
const ::std::string& entry_computation_name() const;
void set_entry_computation_name(const ::std::string& value);
#if LANG_CXX11
void set_entry_computation_name(::std::string&& value);
#endif
void set_entry_computation_name(const char* value);
void set_entry_computation_name(const char* value, size_t size);
::std::string* mutable_entry_computation_name();
::std::string* release_entry_computation_name();
void set_allocated_entry_computation_name(::std::string* entry_computation_name);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_entry_computation_name();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_entry_computation_name(
::std::string* entry_computation_name);
// .xla.ProgramShape program_shape = 4;
bool has_program_shape() const;
void clear_program_shape();
static const int kProgramShapeFieldNumber = 4;
private:
const ::xla::ProgramShape& _internal_program_shape() const;
public:
const ::xla::ProgramShape& program_shape() const;
::xla::ProgramShape* release_program_shape();
::xla::ProgramShape* mutable_program_shape();
void set_allocated_program_shape(::xla::ProgramShape* program_shape);
void unsafe_arena_set_allocated_program_shape(
::xla::ProgramShape* program_shape);
::xla::ProgramShape* unsafe_arena_release_program_shape();
// .xla.HloScheduleProto schedule = 7;
bool has_schedule() const;
void clear_schedule();
static const int kScheduleFieldNumber = 7;
private:
const ::xla::HloScheduleProto& _internal_schedule() const;
public:
const ::xla::HloScheduleProto& schedule() const;
::xla::HloScheduleProto* release_schedule();
::xla::HloScheduleProto* mutable_schedule();
void set_allocated_schedule(::xla::HloScheduleProto* schedule);
void unsafe_arena_set_allocated_schedule(
::xla::HloScheduleProto* schedule);
::xla::HloScheduleProto* unsafe_arena_release_schedule();
// int64 id = 5;
void clear_id();
static const int kIdFieldNumber = 5;
::google::protobuf::int64 id() const;
void set_id(::google::protobuf::int64 value);
// int64 entry_computation_id = 6;
void clear_entry_computation_id();
static const int kEntryComputationIdFieldNumber = 6;
::google::protobuf::int64 entry_computation_id() const;
void set_entry_computation_id(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:xla.HloModuleProto)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::xla::HloComputationProto > computations_;
::google::protobuf::internal::ArenaStringPtr name_;
::google::protobuf::internal::ArenaStringPtr entry_computation_name_;
::xla::ProgramShape* program_shape_;
::xla::HloScheduleProto* schedule_;
::google::protobuf::int64 id_;
::google::protobuf::int64 entry_computation_id_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class LogicalBufferProto_Location : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.LogicalBufferProto.Location) */ {
public:
LogicalBufferProto_Location();
virtual ~LogicalBufferProto_Location();
LogicalBufferProto_Location(const LogicalBufferProto_Location& from);
inline LogicalBufferProto_Location& operator=(const LogicalBufferProto_Location& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
LogicalBufferProto_Location(LogicalBufferProto_Location&& from) noexcept
: LogicalBufferProto_Location() {
*this = ::std::move(from);
}
inline LogicalBufferProto_Location& operator=(LogicalBufferProto_Location&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const LogicalBufferProto_Location& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const LogicalBufferProto_Location* internal_default_instance() {
return reinterpret_cast<const LogicalBufferProto_Location*>(
&_LogicalBufferProto_Location_default_instance_);
}
static constexpr int kIndexInFileMessages =
7;
void UnsafeArenaSwap(LogicalBufferProto_Location* other);
void Swap(LogicalBufferProto_Location* other);
friend void swap(LogicalBufferProto_Location& a, LogicalBufferProto_Location& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline LogicalBufferProto_Location* New() const final {
return CreateMaybeMessage<LogicalBufferProto_Location>(NULL);
}
LogicalBufferProto_Location* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<LogicalBufferProto_Location>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const LogicalBufferProto_Location& from);
void MergeFrom(const LogicalBufferProto_Location& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(LogicalBufferProto_Location* other);
protected:
explicit LogicalBufferProto_Location(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated int64 shape_index = 3;
int shape_index_size() const;
void clear_shape_index();
static const int kShapeIndexFieldNumber = 3;
::google::protobuf::int64 shape_index(int index) const;
void set_shape_index(int index, ::google::protobuf::int64 value);
void add_shape_index(::google::protobuf::int64 value);
const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
shape_index() const;
::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_shape_index();
// string computation_name = 1;
void clear_computation_name();
static const int kComputationNameFieldNumber = 1;
const ::std::string& computation_name() const;
void set_computation_name(const ::std::string& value);
#if LANG_CXX11
void set_computation_name(::std::string&& value);
#endif
void set_computation_name(const char* value);
void set_computation_name(const char* value, size_t size);
::std::string* mutable_computation_name();
::std::string* release_computation_name();
void set_allocated_computation_name(::std::string* computation_name);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_computation_name();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_computation_name(
::std::string* computation_name);
// string instruction_name = 2;
void clear_instruction_name();
static const int kInstructionNameFieldNumber = 2;
const ::std::string& instruction_name() const;
void set_instruction_name(const ::std::string& value);
#if LANG_CXX11
void set_instruction_name(::std::string&& value);
#endif
void set_instruction_name(const char* value);
void set_instruction_name(const char* value, size_t size);
::std::string* mutable_instruction_name();
::std::string* release_instruction_name();
void set_allocated_instruction_name(::std::string* instruction_name);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_instruction_name();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_instruction_name(
::std::string* instruction_name);
// @@protoc_insertion_point(class_scope:xla.LogicalBufferProto.Location)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::RepeatedField< ::google::protobuf::int64 > shape_index_;
mutable int _shape_index_cached_byte_size_;
::google::protobuf::internal::ArenaStringPtr computation_name_;
::google::protobuf::internal::ArenaStringPtr instruction_name_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class LogicalBufferProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.LogicalBufferProto) */ {
public:
LogicalBufferProto();
virtual ~LogicalBufferProto();
LogicalBufferProto(const LogicalBufferProto& from);
inline LogicalBufferProto& operator=(const LogicalBufferProto& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
LogicalBufferProto(LogicalBufferProto&& from) noexcept
: LogicalBufferProto() {
*this = ::std::move(from);
}
inline LogicalBufferProto& operator=(LogicalBufferProto&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const LogicalBufferProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const LogicalBufferProto* internal_default_instance() {
return reinterpret_cast<const LogicalBufferProto*>(
&_LogicalBufferProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
8;
void UnsafeArenaSwap(LogicalBufferProto* other);
void Swap(LogicalBufferProto* other);
friend void swap(LogicalBufferProto& a, LogicalBufferProto& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline LogicalBufferProto* New() const final {
return CreateMaybeMessage<LogicalBufferProto>(NULL);
}
LogicalBufferProto* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<LogicalBufferProto>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const LogicalBufferProto& from);
void MergeFrom(const LogicalBufferProto& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(LogicalBufferProto* other);
protected:
explicit LogicalBufferProto(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef LogicalBufferProto_Location Location;
// accessors -------------------------------------------------------
// .xla.LogicalBufferProto.Location defined_at = 3;
bool has_defined_at() const;
void clear_defined_at();
static const int kDefinedAtFieldNumber = 3;
private:
const ::xla::LogicalBufferProto_Location& _internal_defined_at() const;
public:
const ::xla::LogicalBufferProto_Location& defined_at() const;
::xla::LogicalBufferProto_Location* release_defined_at();
::xla::LogicalBufferProto_Location* mutable_defined_at();
void set_allocated_defined_at(::xla::LogicalBufferProto_Location* defined_at);
void unsafe_arena_set_allocated_defined_at(
::xla::LogicalBufferProto_Location* defined_at);
::xla::LogicalBufferProto_Location* unsafe_arena_release_defined_at();
// int64 id = 1;
void clear_id();
static const int kIdFieldNumber = 1;
::google::protobuf::int64 id() const;
void set_id(::google::protobuf::int64 value);
// int64 size = 2;
void clear_size();
static const int kSizeFieldNumber = 2;
::google::protobuf::int64 size() const;
void set_size(::google::protobuf::int64 value);
// int64 color = 4;
void clear_color();
static const int kColorFieldNumber = 4;
::google::protobuf::int64 color() const;
void set_color(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:xla.LogicalBufferProto)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::xla::LogicalBufferProto_Location* defined_at_;
::google::protobuf::int64 id_;
::google::protobuf::int64 size_;
::google::protobuf::int64 color_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class BufferAllocationProto_Assigned : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BufferAllocationProto.Assigned) */ {
public:
BufferAllocationProto_Assigned();
virtual ~BufferAllocationProto_Assigned();
BufferAllocationProto_Assigned(const BufferAllocationProto_Assigned& from);
inline BufferAllocationProto_Assigned& operator=(const BufferAllocationProto_Assigned& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
BufferAllocationProto_Assigned(BufferAllocationProto_Assigned&& from) noexcept
: BufferAllocationProto_Assigned() {
*this = ::std::move(from);
}
inline BufferAllocationProto_Assigned& operator=(BufferAllocationProto_Assigned&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const BufferAllocationProto_Assigned& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const BufferAllocationProto_Assigned* internal_default_instance() {
return reinterpret_cast<const BufferAllocationProto_Assigned*>(
&_BufferAllocationProto_Assigned_default_instance_);
}
static constexpr int kIndexInFileMessages =
9;
void UnsafeArenaSwap(BufferAllocationProto_Assigned* other);
void Swap(BufferAllocationProto_Assigned* other);
friend void swap(BufferAllocationProto_Assigned& a, BufferAllocationProto_Assigned& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline BufferAllocationProto_Assigned* New() const final {
return CreateMaybeMessage<BufferAllocationProto_Assigned>(NULL);
}
BufferAllocationProto_Assigned* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<BufferAllocationProto_Assigned>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const BufferAllocationProto_Assigned& from);
void MergeFrom(const BufferAllocationProto_Assigned& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(BufferAllocationProto_Assigned* other);
protected:
explicit BufferAllocationProto_Assigned(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// int64 logical_buffer_id = 1;
void clear_logical_buffer_id();
static const int kLogicalBufferIdFieldNumber = 1;
::google::protobuf::int64 logical_buffer_id() const;
void set_logical_buffer_id(::google::protobuf::int64 value);
// int64 offset = 2;
void clear_offset();
static const int kOffsetFieldNumber = 2;
::google::protobuf::int64 offset() const;
void set_offset(::google::protobuf::int64 value);
// int64 size = 3;
void clear_size();
static const int kSizeFieldNumber = 3;
::google::protobuf::int64 size() const;
void set_size(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:xla.BufferAllocationProto.Assigned)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::int64 logical_buffer_id_;
::google::protobuf::int64 offset_;
::google::protobuf::int64 size_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class BufferAllocationProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BufferAllocationProto) */ {
public:
BufferAllocationProto();
virtual ~BufferAllocationProto();
BufferAllocationProto(const BufferAllocationProto& from);
inline BufferAllocationProto& operator=(const BufferAllocationProto& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
BufferAllocationProto(BufferAllocationProto&& from) noexcept
: BufferAllocationProto() {
*this = ::std::move(from);
}
inline BufferAllocationProto& operator=(BufferAllocationProto&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const BufferAllocationProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const BufferAllocationProto* internal_default_instance() {
return reinterpret_cast<const BufferAllocationProto*>(
&_BufferAllocationProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
10;
void UnsafeArenaSwap(BufferAllocationProto* other);
void Swap(BufferAllocationProto* other);
friend void swap(BufferAllocationProto& a, BufferAllocationProto& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline BufferAllocationProto* New() const final {
return CreateMaybeMessage<BufferAllocationProto>(NULL);
}
BufferAllocationProto* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<BufferAllocationProto>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const BufferAllocationProto& from);
void MergeFrom(const BufferAllocationProto& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(BufferAllocationProto* other);
protected:
explicit BufferAllocationProto(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef BufferAllocationProto_Assigned Assigned;
// accessors -------------------------------------------------------
// repeated .xla.BufferAllocationProto.Assigned assigned = 9;
int assigned_size() const;
void clear_assigned();
static const int kAssignedFieldNumber = 9;
::xla::BufferAllocationProto_Assigned* mutable_assigned(int index);
::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto_Assigned >*
mutable_assigned();
const ::xla::BufferAllocationProto_Assigned& assigned(int index) const;
::xla::BufferAllocationProto_Assigned* add_assigned();
const ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto_Assigned >&
assigned() const;
// repeated int64 parameter_shape_index = 10;
int parameter_shape_index_size() const;
void clear_parameter_shape_index();
static const int kParameterShapeIndexFieldNumber = 10;
::google::protobuf::int64 parameter_shape_index(int index) const;
void set_parameter_shape_index(int index, ::google::protobuf::int64 value);
void add_parameter_shape_index(::google::protobuf::int64 value);
const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
parameter_shape_index() const;
::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_parameter_shape_index();
// int64 index = 1;
void clear_index();
static const int kIndexFieldNumber = 1;
::google::protobuf::int64 index() const;
void set_index(::google::protobuf::int64 value);
// int64 size = 2;
void clear_size();
static const int kSizeFieldNumber = 2;
::google::protobuf::int64 size() const;
void set_size(::google::protobuf::int64 value);
// int64 parameter_number = 6;
void clear_parameter_number();
static const int kParameterNumberFieldNumber = 6;
::google::protobuf::int64 parameter_number() const;
void set_parameter_number(::google::protobuf::int64 value);
// bool maybe_live_out = 7;
void clear_maybe_live_out();
static const int kMaybeLiveOutFieldNumber = 7;
bool maybe_live_out() const;
void set_maybe_live_out(bool value);
// bool is_thread_local = 3;
void clear_is_thread_local();
static const int kIsThreadLocalFieldNumber = 3;
bool is_thread_local() const;
void set_is_thread_local(bool value);
// bool is_tuple = 11;
void clear_is_tuple();
static const int kIsTupleFieldNumber = 11;
bool is_tuple() const;
void set_is_tuple(bool value);
// bool is_entry_computation_parameter = 5;
void clear_is_entry_computation_parameter();
static const int kIsEntryComputationParameterFieldNumber = 5;
bool is_entry_computation_parameter() const;
void set_is_entry_computation_parameter(bool value);
// bool is_constant = 12;
void clear_is_constant();
static const int kIsConstantFieldNumber = 12;
bool is_constant() const;
void set_is_constant(bool value);
// int64 color = 8;
void clear_color();
static const int kColorFieldNumber = 8;
::google::protobuf::int64 color() const;
void set_color(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:xla.BufferAllocationProto)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto_Assigned > assigned_;
::google::protobuf::RepeatedField< ::google::protobuf::int64 > parameter_shape_index_;
mutable int _parameter_shape_index_cached_byte_size_;
::google::protobuf::int64 index_;
::google::protobuf::int64 size_;
::google::protobuf::int64 parameter_number_;
bool maybe_live_out_;
bool is_thread_local_;
bool is_tuple_;
bool is_entry_computation_parameter_;
bool is_constant_;
::google::protobuf::int64 color_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class HeapSimulatorTrace_Event : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HeapSimulatorTrace.Event) */ {
public:
HeapSimulatorTrace_Event();
virtual ~HeapSimulatorTrace_Event();
HeapSimulatorTrace_Event(const HeapSimulatorTrace_Event& from);
inline HeapSimulatorTrace_Event& operator=(const HeapSimulatorTrace_Event& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
HeapSimulatorTrace_Event(HeapSimulatorTrace_Event&& from) noexcept
: HeapSimulatorTrace_Event() {
*this = ::std::move(from);
}
inline HeapSimulatorTrace_Event& operator=(HeapSimulatorTrace_Event&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const HeapSimulatorTrace_Event& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const HeapSimulatorTrace_Event* internal_default_instance() {
return reinterpret_cast<const HeapSimulatorTrace_Event*>(
&_HeapSimulatorTrace_Event_default_instance_);
}
static constexpr int kIndexInFileMessages =
11;
void UnsafeArenaSwap(HeapSimulatorTrace_Event* other);
void Swap(HeapSimulatorTrace_Event* other);
friend void swap(HeapSimulatorTrace_Event& a, HeapSimulatorTrace_Event& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline HeapSimulatorTrace_Event* New() const final {
return CreateMaybeMessage<HeapSimulatorTrace_Event>(NULL);
}
HeapSimulatorTrace_Event* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<HeapSimulatorTrace_Event>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const HeapSimulatorTrace_Event& from);
void MergeFrom(const HeapSimulatorTrace_Event& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HeapSimulatorTrace_Event* other);
protected:
explicit HeapSimulatorTrace_Event(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef HeapSimulatorTrace_Event_Kind Kind;
static const Kind ALLOC =
HeapSimulatorTrace_Event_Kind_ALLOC;
static const Kind FREE =
HeapSimulatorTrace_Event_Kind_FREE;
static const Kind SHARE_WITH =
HeapSimulatorTrace_Event_Kind_SHARE_WITH;
static inline bool Kind_IsValid(int value) {
return HeapSimulatorTrace_Event_Kind_IsValid(value);
}
static const Kind Kind_MIN =
HeapSimulatorTrace_Event_Kind_Kind_MIN;
static const Kind Kind_MAX =
HeapSimulatorTrace_Event_Kind_Kind_MAX;
static const int Kind_ARRAYSIZE =
HeapSimulatorTrace_Event_Kind_Kind_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
Kind_descriptor() {
return HeapSimulatorTrace_Event_Kind_descriptor();
}
static inline const ::std::string& Kind_Name(Kind value) {
return HeapSimulatorTrace_Event_Kind_Name(value);
}
static inline bool Kind_Parse(const ::std::string& name,
Kind* value) {
return HeapSimulatorTrace_Event_Kind_Parse(name, value);
}
// accessors -------------------------------------------------------
// string computation_name = 3;
void clear_computation_name();
static const int kComputationNameFieldNumber = 3;
const ::std::string& computation_name() const;
void set_computation_name(const ::std::string& value);
#if LANG_CXX11
void set_computation_name(::std::string&& value);
#endif
void set_computation_name(const char* value);
void set_computation_name(const char* value, size_t size);
::std::string* mutable_computation_name();
::std::string* release_computation_name();
void set_allocated_computation_name(::std::string* computation_name);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_computation_name();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_computation_name(
::std::string* computation_name);
// string instruction_name = 4;
void clear_instruction_name();
static const int kInstructionNameFieldNumber = 4;
const ::std::string& instruction_name() const;
void set_instruction_name(const ::std::string& value);
#if LANG_CXX11
void set_instruction_name(::std::string&& value);
#endif
void set_instruction_name(const char* value);
void set_instruction_name(const char* value, size_t size);
::std::string* mutable_instruction_name();
::std::string* release_instruction_name();
void set_allocated_instruction_name(::std::string* instruction_name);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_instruction_name();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_instruction_name(
::std::string* instruction_name);
// int64 buffer_id = 2;
void clear_buffer_id();
static const int kBufferIdFieldNumber = 2;
::google::protobuf::int64 buffer_id() const;
void set_buffer_id(::google::protobuf::int64 value);
// int64 share_with_canonical_id = 5;
void clear_share_with_canonical_id();
static const int kShareWithCanonicalIdFieldNumber = 5;
::google::protobuf::int64 share_with_canonical_id() const;
void set_share_with_canonical_id(::google::protobuf::int64 value);
// .xla.HeapSimulatorTrace.Event.Kind kind = 1;
void clear_kind();
static const int kKindFieldNumber = 1;
::xla::HeapSimulatorTrace_Event_Kind kind() const;
void set_kind(::xla::HeapSimulatorTrace_Event_Kind value);
// @@protoc_insertion_point(class_scope:xla.HeapSimulatorTrace.Event)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::internal::ArenaStringPtr computation_name_;
::google::protobuf::internal::ArenaStringPtr instruction_name_;
::google::protobuf::int64 buffer_id_;
::google::protobuf::int64 share_with_canonical_id_;
int kind_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class HeapSimulatorTrace : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HeapSimulatorTrace) */ {
public:
HeapSimulatorTrace();
virtual ~HeapSimulatorTrace();
HeapSimulatorTrace(const HeapSimulatorTrace& from);
inline HeapSimulatorTrace& operator=(const HeapSimulatorTrace& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
HeapSimulatorTrace(HeapSimulatorTrace&& from) noexcept
: HeapSimulatorTrace() {
*this = ::std::move(from);
}
inline HeapSimulatorTrace& operator=(HeapSimulatorTrace&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const HeapSimulatorTrace& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const HeapSimulatorTrace* internal_default_instance() {
return reinterpret_cast<const HeapSimulatorTrace*>(
&_HeapSimulatorTrace_default_instance_);
}
static constexpr int kIndexInFileMessages =
12;
void UnsafeArenaSwap(HeapSimulatorTrace* other);
void Swap(HeapSimulatorTrace* other);
friend void swap(HeapSimulatorTrace& a, HeapSimulatorTrace& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline HeapSimulatorTrace* New() const final {
return CreateMaybeMessage<HeapSimulatorTrace>(NULL);
}
HeapSimulatorTrace* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<HeapSimulatorTrace>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const HeapSimulatorTrace& from);
void MergeFrom(const HeapSimulatorTrace& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HeapSimulatorTrace* other);
protected:
explicit HeapSimulatorTrace(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef HeapSimulatorTrace_Event Event;
// accessors -------------------------------------------------------
// repeated .xla.HeapSimulatorTrace.Event events = 1;
int events_size() const;
void clear_events();
static const int kEventsFieldNumber = 1;
::xla::HeapSimulatorTrace_Event* mutable_events(int index);
::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace_Event >*
mutable_events();
const ::xla::HeapSimulatorTrace_Event& events(int index) const;
::xla::HeapSimulatorTrace_Event* add_events();
const ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace_Event >&
events() const;
// bool whole_module_simulation = 2;
void clear_whole_module_simulation();
static const int kWholeModuleSimulationFieldNumber = 2;
bool whole_module_simulation() const;
void set_whole_module_simulation(bool value);
// @@protoc_insertion_point(class_scope:xla.HeapSimulatorTrace)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace_Event > events_;
bool whole_module_simulation_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class HloModuleGroupProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloModuleGroupProto) */ {
public:
HloModuleGroupProto();
virtual ~HloModuleGroupProto();
HloModuleGroupProto(const HloModuleGroupProto& from);
inline HloModuleGroupProto& operator=(const HloModuleGroupProto& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
HloModuleGroupProto(HloModuleGroupProto&& from) noexcept
: HloModuleGroupProto() {
*this = ::std::move(from);
}
inline HloModuleGroupProto& operator=(HloModuleGroupProto&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const HloModuleGroupProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const HloModuleGroupProto* internal_default_instance() {
return reinterpret_cast<const HloModuleGroupProto*>(
&_HloModuleGroupProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
13;
void UnsafeArenaSwap(HloModuleGroupProto* other);
void Swap(HloModuleGroupProto* other);
friend void swap(HloModuleGroupProto& a, HloModuleGroupProto& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline HloModuleGroupProto* New() const final {
return CreateMaybeMessage<HloModuleGroupProto>(NULL);
}
HloModuleGroupProto* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<HloModuleGroupProto>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const HloModuleGroupProto& from);
void MergeFrom(const HloModuleGroupProto& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HloModuleGroupProto* other);
protected:
explicit HloModuleGroupProto(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .xla.HloModuleProto hlo_modules = 2;
int hlo_modules_size() const;
void clear_hlo_modules();
static const int kHloModulesFieldNumber = 2;
::xla::HloModuleProto* mutable_hlo_modules(int index);
::google::protobuf::RepeatedPtrField< ::xla::HloModuleProto >*
mutable_hlo_modules();
const ::xla::HloModuleProto& hlo_modules(int index) const;
::xla::HloModuleProto* add_hlo_modules();
const ::google::protobuf::RepeatedPtrField< ::xla::HloModuleProto >&
hlo_modules() const;
// string name = 1;
void clear_name();
static const int kNameFieldNumber = 1;
const ::std::string& name() const;
void set_name(const ::std::string& value);
#if LANG_CXX11
void set_name(::std::string&& value);
#endif
void set_name(const char* value);
void set_name(const char* value, size_t size);
::std::string* mutable_name();
::std::string* release_name();
void set_allocated_name(::std::string* name);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_name();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_name(
::std::string* name);
// @@protoc_insertion_point(class_scope:xla.HloModuleGroupProto)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::xla::HloModuleProto > hlo_modules_;
::google::protobuf::internal::ArenaStringPtr name_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class BufferAssignmentProto_BufferAlias : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BufferAssignmentProto.BufferAlias) */ {
public:
BufferAssignmentProto_BufferAlias();
virtual ~BufferAssignmentProto_BufferAlias();
BufferAssignmentProto_BufferAlias(const BufferAssignmentProto_BufferAlias& from);
inline BufferAssignmentProto_BufferAlias& operator=(const BufferAssignmentProto_BufferAlias& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
BufferAssignmentProto_BufferAlias(BufferAssignmentProto_BufferAlias&& from) noexcept
: BufferAssignmentProto_BufferAlias() {
*this = ::std::move(from);
}
inline BufferAssignmentProto_BufferAlias& operator=(BufferAssignmentProto_BufferAlias&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const BufferAssignmentProto_BufferAlias& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const BufferAssignmentProto_BufferAlias* internal_default_instance() {
return reinterpret_cast<const BufferAssignmentProto_BufferAlias*>(
&_BufferAssignmentProto_BufferAlias_default_instance_);
}
static constexpr int kIndexInFileMessages =
14;
void UnsafeArenaSwap(BufferAssignmentProto_BufferAlias* other);
void Swap(BufferAssignmentProto_BufferAlias* other);
friend void swap(BufferAssignmentProto_BufferAlias& a, BufferAssignmentProto_BufferAlias& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline BufferAssignmentProto_BufferAlias* New() const final {
return CreateMaybeMessage<BufferAssignmentProto_BufferAlias>(NULL);
}
BufferAssignmentProto_BufferAlias* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<BufferAssignmentProto_BufferAlias>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const BufferAssignmentProto_BufferAlias& from);
void MergeFrom(const BufferAssignmentProto_BufferAlias& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(BufferAssignmentProto_BufferAlias* other);
protected:
explicit BufferAssignmentProto_BufferAlias(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// .xla.LogicalBufferProto.Location location = 2;
bool has_location() const;
void clear_location();
static const int kLocationFieldNumber = 2;
private:
const ::xla::LogicalBufferProto_Location& _internal_location() const;
public:
const ::xla::LogicalBufferProto_Location& location() const;
::xla::LogicalBufferProto_Location* release_location();
::xla::LogicalBufferProto_Location* mutable_location();
void set_allocated_location(::xla::LogicalBufferProto_Location* location);
void unsafe_arena_set_allocated_location(
::xla::LogicalBufferProto_Location* location);
::xla::LogicalBufferProto_Location* unsafe_arena_release_location();
// int64 source_buffer_id = 1;
void clear_source_buffer_id();
static const int kSourceBufferIdFieldNumber = 1;
::google::protobuf::int64 source_buffer_id() const;
void set_source_buffer_id(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:xla.BufferAssignmentProto.BufferAlias)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::xla::LogicalBufferProto_Location* location_;
::google::protobuf::int64 source_buffer_id_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class BufferAssignmentProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BufferAssignmentProto) */ {
public:
BufferAssignmentProto();
virtual ~BufferAssignmentProto();
BufferAssignmentProto(const BufferAssignmentProto& from);
inline BufferAssignmentProto& operator=(const BufferAssignmentProto& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
BufferAssignmentProto(BufferAssignmentProto&& from) noexcept
: BufferAssignmentProto() {
*this = ::std::move(from);
}
inline BufferAssignmentProto& operator=(BufferAssignmentProto&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const BufferAssignmentProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const BufferAssignmentProto* internal_default_instance() {
return reinterpret_cast<const BufferAssignmentProto*>(
&_BufferAssignmentProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
15;
void UnsafeArenaSwap(BufferAssignmentProto* other);
void Swap(BufferAssignmentProto* other);
friend void swap(BufferAssignmentProto& a, BufferAssignmentProto& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline BufferAssignmentProto* New() const final {
return CreateMaybeMessage<BufferAssignmentProto>(NULL);
}
BufferAssignmentProto* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<BufferAssignmentProto>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const BufferAssignmentProto& from);
void MergeFrom(const BufferAssignmentProto& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(BufferAssignmentProto* other);
protected:
explicit BufferAssignmentProto(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef BufferAssignmentProto_BufferAlias BufferAlias;
// accessors -------------------------------------------------------
// repeated .xla.LogicalBufferProto logical_buffers = 1;
int logical_buffers_size() const;
void clear_logical_buffers();
static const int kLogicalBuffersFieldNumber = 1;
::xla::LogicalBufferProto* mutable_logical_buffers(int index);
::google::protobuf::RepeatedPtrField< ::xla::LogicalBufferProto >*
mutable_logical_buffers();
const ::xla::LogicalBufferProto& logical_buffers(int index) const;
::xla::LogicalBufferProto* add_logical_buffers();
const ::google::protobuf::RepeatedPtrField< ::xla::LogicalBufferProto >&
logical_buffers() const;
// repeated .xla.BufferAssignmentProto.BufferAlias buffer_aliases = 2;
int buffer_aliases_size() const;
void clear_buffer_aliases();
static const int kBufferAliasesFieldNumber = 2;
::xla::BufferAssignmentProto_BufferAlias* mutable_buffer_aliases(int index);
::google::protobuf::RepeatedPtrField< ::xla::BufferAssignmentProto_BufferAlias >*
mutable_buffer_aliases();
const ::xla::BufferAssignmentProto_BufferAlias& buffer_aliases(int index) const;
::xla::BufferAssignmentProto_BufferAlias* add_buffer_aliases();
const ::google::protobuf::RepeatedPtrField< ::xla::BufferAssignmentProto_BufferAlias >&
buffer_aliases() const;
// repeated .xla.BufferAllocationProto buffer_allocations = 3;
int buffer_allocations_size() const;
void clear_buffer_allocations();
static const int kBufferAllocationsFieldNumber = 3;
::xla::BufferAllocationProto* mutable_buffer_allocations(int index);
::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto >*
mutable_buffer_allocations();
const ::xla::BufferAllocationProto& buffer_allocations(int index) const;
::xla::BufferAllocationProto* add_buffer_allocations();
const ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto >&
buffer_allocations() const;
// repeated .xla.HeapSimulatorTrace heap_simulator_traces = 4;
int heap_simulator_traces_size() const;
void clear_heap_simulator_traces();
static const int kHeapSimulatorTracesFieldNumber = 4;
::xla::HeapSimulatorTrace* mutable_heap_simulator_traces(int index);
::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace >*
mutable_heap_simulator_traces();
const ::xla::HeapSimulatorTrace& heap_simulator_traces(int index) const;
::xla::HeapSimulatorTrace* add_heap_simulator_traces();
const ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace >&
heap_simulator_traces() const;
// @@protoc_insertion_point(class_scope:xla.BufferAssignmentProto)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::xla::LogicalBufferProto > logical_buffers_;
::google::protobuf::RepeatedPtrField< ::xla::BufferAssignmentProto_BufferAlias > buffer_aliases_;
::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto > buffer_allocations_;
::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace > heap_simulator_traces_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class HloProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloProto) */ {
public:
HloProto();
virtual ~HloProto();
HloProto(const HloProto& from);
inline HloProto& operator=(const HloProto& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
HloProto(HloProto&& from) noexcept
: HloProto() {
*this = ::std::move(from);
}
inline HloProto& operator=(HloProto&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const HloProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const HloProto* internal_default_instance() {
return reinterpret_cast<const HloProto*>(
&_HloProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
16;
void UnsafeArenaSwap(HloProto* other);
void Swap(HloProto* other);
friend void swap(HloProto& a, HloProto& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline HloProto* New() const final {
return CreateMaybeMessage<HloProto>(NULL);
}
HloProto* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<HloProto>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const HloProto& from);
void MergeFrom(const HloProto& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HloProto* other);
protected:
explicit HloProto(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// .xla.HloModuleProto hlo_module = 1;
bool has_hlo_module() const;
void clear_hlo_module();
static const int kHloModuleFieldNumber = 1;
private:
const ::xla::HloModuleProto& _internal_hlo_module() const;
public:
const ::xla::HloModuleProto& hlo_module() const;
::xla::HloModuleProto* release_hlo_module();
::xla::HloModuleProto* mutable_hlo_module();
void set_allocated_hlo_module(::xla::HloModuleProto* hlo_module);
void unsafe_arena_set_allocated_hlo_module(
::xla::HloModuleProto* hlo_module);
::xla::HloModuleProto* unsafe_arena_release_hlo_module();
// .xla.BufferAssignmentProto buffer_assignment = 3;
bool has_buffer_assignment() const;
void clear_buffer_assignment();
static const int kBufferAssignmentFieldNumber = 3;
private:
const ::xla::BufferAssignmentProto& _internal_buffer_assignment() const;
public:
const ::xla::BufferAssignmentProto& buffer_assignment() const;
::xla::BufferAssignmentProto* release_buffer_assignment();
::xla::BufferAssignmentProto* mutable_buffer_assignment();
void set_allocated_buffer_assignment(::xla::BufferAssignmentProto* buffer_assignment);
void unsafe_arena_set_allocated_buffer_assignment(
::xla::BufferAssignmentProto* buffer_assignment);
::xla::BufferAssignmentProto* unsafe_arena_release_buffer_assignment();
// @@protoc_insertion_point(class_scope:xla.HloProto)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::xla::HloModuleProto* hlo_module_;
::xla::BufferAssignmentProto* buffer_assignment_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class HloSnapshot : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloSnapshot) */ {
public:
HloSnapshot();
virtual ~HloSnapshot();
HloSnapshot(const HloSnapshot& from);
inline HloSnapshot& operator=(const HloSnapshot& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
HloSnapshot(HloSnapshot&& from) noexcept
: HloSnapshot() {
*this = ::std::move(from);
}
inline HloSnapshot& operator=(HloSnapshot&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline ::google::protobuf::Arena* GetArena() const final {
return GetArenaNoVirtual();
}
inline void* GetMaybeArenaPointer() const final {
return MaybeArenaPtr();
}
static const ::google::protobuf::Descriptor* descriptor();
static const HloSnapshot& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const HloSnapshot* internal_default_instance() {
return reinterpret_cast<const HloSnapshot*>(
&_HloSnapshot_default_instance_);
}
static constexpr int kIndexInFileMessages =
17;
void UnsafeArenaSwap(HloSnapshot* other);
void Swap(HloSnapshot* other);
friend void swap(HloSnapshot& a, HloSnapshot& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline HloSnapshot* New() const final {
return CreateMaybeMessage<HloSnapshot>(NULL);
}
HloSnapshot* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<HloSnapshot>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const HloSnapshot& from);
void MergeFrom(const HloSnapshot& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HloSnapshot* other);
protected:
explicit HloSnapshot(::google::protobuf::Arena* arena);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return _internal_metadata_.arena();
}
inline void* MaybeArenaPtr() const {
return _internal_metadata_.raw_arena_ptr();
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .xla.LiteralProto arguments = 2;
int arguments_size() const;
void clear_arguments();
static const int kArgumentsFieldNumber = 2;
::xla::LiteralProto* mutable_arguments(int index);
::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >*
mutable_arguments();
const ::xla::LiteralProto& arguments(int index) const;
::xla::LiteralProto* add_arguments();
const ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >&
arguments() const;
// string execution_platform = 4;
void clear_execution_platform();
static const int kExecutionPlatformFieldNumber = 4;
const ::std::string& execution_platform() const;
void set_execution_platform(const ::std::string& value);
#if LANG_CXX11
void set_execution_platform(::std::string&& value);
#endif
void set_execution_platform(const char* value);
void set_execution_platform(const char* value, size_t size);
::std::string* mutable_execution_platform();
::std::string* release_execution_platform();
void set_allocated_execution_platform(::std::string* execution_platform);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_execution_platform();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_execution_platform(
::std::string* execution_platform);
// .xla.HloProto hlo = 1;
bool has_hlo() const;
void clear_hlo();
static const int kHloFieldNumber = 1;
private:
const ::xla::HloProto& _internal_hlo() const;
public:
const ::xla::HloProto& hlo() const;
::xla::HloProto* release_hlo();
::xla::HloProto* mutable_hlo();
void set_allocated_hlo(::xla::HloProto* hlo);
void unsafe_arena_set_allocated_hlo(
::xla::HloProto* hlo);
::xla::HloProto* unsafe_arena_release_hlo();
// .xla.LiteralProto result = 3;
bool has_result() const;
void clear_result();
static const int kResultFieldNumber = 3;
private:
const ::xla::LiteralProto& _internal_result() const;
public:
const ::xla::LiteralProto& result() const;
::xla::LiteralProto* release_result();
::xla::LiteralProto* mutable_result();
void set_allocated_result(::xla::LiteralProto* result);
void unsafe_arena_set_allocated_result(
::xla::LiteralProto* result);
::xla::LiteralProto* unsafe_arena_release_result();
// @@protoc_insertion_point(class_scope:xla.HloSnapshot)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::google::protobuf::RepeatedPtrField< ::xla::LiteralProto > arguments_;
::google::protobuf::internal::ArenaStringPtr execution_platform_;
::xla::HloProto* hlo_;
::xla::LiteralProto* result_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// HloInstructionProto_SliceDimensions
// int64 start = 1;
inline void HloInstructionProto_SliceDimensions::clear_start() {
start_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloInstructionProto_SliceDimensions::start() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.SliceDimensions.start)
return start_;
}
inline void HloInstructionProto_SliceDimensions::set_start(::google::protobuf::int64 value) {
start_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.SliceDimensions.start)
}
// int64 limit = 2;
inline void HloInstructionProto_SliceDimensions::clear_limit() {
limit_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloInstructionProto_SliceDimensions::limit() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.SliceDimensions.limit)
return limit_;
}
inline void HloInstructionProto_SliceDimensions::set_limit(::google::protobuf::int64 value) {
limit_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.SliceDimensions.limit)
}
// int64 stride = 3;
inline void HloInstructionProto_SliceDimensions::clear_stride() {
stride_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloInstructionProto_SliceDimensions::stride() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.SliceDimensions.stride)
return stride_;
}
inline void HloInstructionProto_SliceDimensions::set_stride(::google::protobuf::int64 value) {
stride_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.SliceDimensions.stride)
}
// -------------------------------------------------------------------
// HloInstructionProto
// string name = 1;
inline void HloInstructionProto::clear_name() {
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloInstructionProto::name() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.name)
return name_.Get();
}
inline void HloInstructionProto::set_name(const ::std::string& value) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.name)
}
#if LANG_CXX11
inline void HloInstructionProto::set_name(::std::string&& value) {
name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.name)
}
#endif
inline void HloInstructionProto::set_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.name)
}
inline void HloInstructionProto::set_name(const char* value,
size_t size) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.name)
}
inline ::std::string* HloInstructionProto::mutable_name() {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.name)
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloInstructionProto::release_name() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.name)
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloInstructionProto::set_allocated_name(::std::string* name) {
if (name != NULL) {
} else {
}
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.name)
}
inline ::std::string* HloInstructionProto::unsafe_arena_release_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloInstructionProto::unsafe_arena_set_allocated_name(
::std::string* name) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (name != NULL) {
} else {
}
name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.name)
}
// string opcode = 2;
inline void HloInstructionProto::clear_opcode() {
opcode_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloInstructionProto::opcode() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.opcode)
return opcode_.Get();
}
inline void HloInstructionProto::set_opcode(const ::std::string& value) {
opcode_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.opcode)
}
#if LANG_CXX11
inline void HloInstructionProto::set_opcode(::std::string&& value) {
opcode_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.opcode)
}
#endif
inline void HloInstructionProto::set_opcode(const char* value) {
GOOGLE_DCHECK(value != NULL);
opcode_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.opcode)
}
inline void HloInstructionProto::set_opcode(const char* value,
size_t size) {
opcode_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.opcode)
}
inline ::std::string* HloInstructionProto::mutable_opcode() {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.opcode)
return opcode_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloInstructionProto::release_opcode() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.opcode)
return opcode_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloInstructionProto::set_allocated_opcode(::std::string* opcode) {
if (opcode != NULL) {
} else {
}
opcode_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), opcode,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.opcode)
}
inline ::std::string* HloInstructionProto::unsafe_arena_release_opcode() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.opcode)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return opcode_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloInstructionProto::unsafe_arena_set_allocated_opcode(
::std::string* opcode) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (opcode != NULL) {
} else {
}
opcode_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
opcode, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.opcode)
}
// .xla.Shape shape = 3;
inline bool HloInstructionProto::has_shape() const {
return this != internal_default_instance() && shape_ != NULL;
}
inline const ::xla::Shape& HloInstructionProto::_internal_shape() const {
return *shape_;
}
inline const ::xla::Shape& HloInstructionProto::shape() const {
const ::xla::Shape* p = shape_;
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.shape)
return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>(
&::xla::_Shape_default_instance_);
}
inline ::xla::Shape* HloInstructionProto::release_shape() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.shape)
::xla::Shape* temp = shape_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
shape_ = NULL;
return temp;
}
inline ::xla::Shape* HloInstructionProto::unsafe_arena_release_shape() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.shape)
::xla::Shape* temp = shape_;
shape_ = NULL;
return temp;
}
inline ::xla::Shape* HloInstructionProto::mutable_shape() {
if (shape_ == NULL) {
auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual());
shape_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.shape)
return shape_;
}
inline void HloInstructionProto::set_allocated_shape(::xla::Shape* shape) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_);
}
if (shape) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(shape)->GetArena();
if (message_arena != submessage_arena) {
shape = ::google::protobuf::internal::GetOwnedMessage(
message_arena, shape, submessage_arena);
}
} else {
}
shape_ = shape;
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.shape)
}
// .xla.OpMetadata metadata = 7;
inline bool HloInstructionProto::has_metadata() const {
return this != internal_default_instance() && metadata_ != NULL;
}
inline const ::xla::OpMetadata& HloInstructionProto::_internal_metadata() const {
return *metadata_;
}
inline const ::xla::OpMetadata& HloInstructionProto::metadata() const {
const ::xla::OpMetadata* p = metadata_;
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.metadata)
return p != NULL ? *p : *reinterpret_cast<const ::xla::OpMetadata*>(
&::xla::_OpMetadata_default_instance_);
}
inline ::xla::OpMetadata* HloInstructionProto::release_metadata() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.metadata)
::xla::OpMetadata* temp = metadata_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
metadata_ = NULL;
return temp;
}
inline ::xla::OpMetadata* HloInstructionProto::unsafe_arena_release_metadata() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.metadata)
::xla::OpMetadata* temp = metadata_;
metadata_ = NULL;
return temp;
}
inline ::xla::OpMetadata* HloInstructionProto::mutable_metadata() {
if (metadata_ == NULL) {
auto* p = CreateMaybeMessage<::xla::OpMetadata>(GetArenaNoVirtual());
metadata_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.metadata)
return metadata_;
}
inline void HloInstructionProto::set_allocated_metadata(::xla::OpMetadata* metadata) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(metadata_);
}
if (metadata) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(metadata)->GetArena();
if (message_arena != submessage_arena) {
metadata = ::google::protobuf::internal::GetOwnedMessage(
message_arena, metadata, submessage_arena);
}
} else {
}
metadata_ = metadata;
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.metadata)
}
// .xla.LiteralProto literal = 8;
inline bool HloInstructionProto::has_literal() const {
return this != internal_default_instance() && literal_ != NULL;
}
inline const ::xla::LiteralProto& HloInstructionProto::_internal_literal() const {
return *literal_;
}
inline const ::xla::LiteralProto& HloInstructionProto::literal() const {
const ::xla::LiteralProto* p = literal_;
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.literal)
return p != NULL ? *p : *reinterpret_cast<const ::xla::LiteralProto*>(
&::xla::_LiteralProto_default_instance_);
}
inline ::xla::LiteralProto* HloInstructionProto::release_literal() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.literal)
::xla::LiteralProto* temp = literal_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
literal_ = NULL;
return temp;
}
inline ::xla::LiteralProto* HloInstructionProto::unsafe_arena_release_literal() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.literal)
::xla::LiteralProto* temp = literal_;
literal_ = NULL;
return temp;
}
inline ::xla::LiteralProto* HloInstructionProto::mutable_literal() {
if (literal_ == NULL) {
auto* p = CreateMaybeMessage<::xla::LiteralProto>(GetArenaNoVirtual());
literal_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.literal)
return literal_;
}
inline void HloInstructionProto::set_allocated_literal(::xla::LiteralProto* literal) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(literal_);
}
if (literal) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(literal)->GetArena();
if (message_arena != submessage_arena) {
literal = ::google::protobuf::internal::GetOwnedMessage(
message_arena, literal, submessage_arena);
}
} else {
}
literal_ = literal;
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.literal)
}
// int64 parameter_number = 9;
inline void HloInstructionProto::clear_parameter_number() {
parameter_number_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloInstructionProto::parameter_number() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.parameter_number)
return parameter_number_;
}
inline void HloInstructionProto::set_parameter_number(::google::protobuf::int64 value) {
parameter_number_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.parameter_number)
}
// string fusion_kind = 11;
inline void HloInstructionProto::clear_fusion_kind() {
fusion_kind_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloInstructionProto::fusion_kind() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.fusion_kind)
return fusion_kind_.Get();
}
inline void HloInstructionProto::set_fusion_kind(const ::std::string& value) {
fusion_kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.fusion_kind)
}
#if LANG_CXX11
inline void HloInstructionProto::set_fusion_kind(::std::string&& value) {
fusion_kind_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.fusion_kind)
}
#endif
inline void HloInstructionProto::set_fusion_kind(const char* value) {
GOOGLE_DCHECK(value != NULL);
fusion_kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.fusion_kind)
}
inline void HloInstructionProto::set_fusion_kind(const char* value,
size_t size) {
fusion_kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.fusion_kind)
}
inline ::std::string* HloInstructionProto::mutable_fusion_kind() {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.fusion_kind)
return fusion_kind_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloInstructionProto::release_fusion_kind() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.fusion_kind)
return fusion_kind_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloInstructionProto::set_allocated_fusion_kind(::std::string* fusion_kind) {
if (fusion_kind != NULL) {
} else {
}
fusion_kind_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), fusion_kind,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.fusion_kind)
}
inline ::std::string* HloInstructionProto::unsafe_arena_release_fusion_kind() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.fusion_kind)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return fusion_kind_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloInstructionProto::unsafe_arena_set_allocated_fusion_kind(
::std::string* fusion_kind) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (fusion_kind != NULL) {
} else {
}
fusion_kind_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
fusion_kind, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.fusion_kind)
}
// int64 tuple_index = 13;
inline void HloInstructionProto::clear_tuple_index() {
tuple_index_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloInstructionProto::tuple_index() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.tuple_index)
return tuple_index_;
}
inline void HloInstructionProto::set_tuple_index(::google::protobuf::int64 value) {
tuple_index_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.tuple_index)
}
// repeated int64 dimensions = 14;
inline int HloInstructionProto::dimensions_size() const {
return dimensions_.size();
}
inline void HloInstructionProto::clear_dimensions() {
dimensions_.Clear();
}
inline ::google::protobuf::int64 HloInstructionProto::dimensions(int index) const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.dimensions)
return dimensions_.Get(index);
}
inline void HloInstructionProto::set_dimensions(int index, ::google::protobuf::int64 value) {
dimensions_.Set(index, value);
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.dimensions)
}
inline void HloInstructionProto::add_dimensions(::google::protobuf::int64 value) {
dimensions_.Add(value);
// @@protoc_insertion_point(field_add:xla.HloInstructionProto.dimensions)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
HloInstructionProto::dimensions() const {
// @@protoc_insertion_point(field_list:xla.HloInstructionProto.dimensions)
return dimensions_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
HloInstructionProto::mutable_dimensions() {
// @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.dimensions)
return &dimensions_;
}
// .xla.Window window = 15;
inline bool HloInstructionProto::has_window() const {
return this != internal_default_instance() && window_ != NULL;
}
inline const ::xla::Window& HloInstructionProto::_internal_window() const {
return *window_;
}
inline const ::xla::Window& HloInstructionProto::window() const {
const ::xla::Window* p = window_;
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.window)
return p != NULL ? *p : *reinterpret_cast<const ::xla::Window*>(
&::xla::_Window_default_instance_);
}
inline ::xla::Window* HloInstructionProto::release_window() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.window)
::xla::Window* temp = window_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
window_ = NULL;
return temp;
}
inline ::xla::Window* HloInstructionProto::unsafe_arena_release_window() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.window)
::xla::Window* temp = window_;
window_ = NULL;
return temp;
}
inline ::xla::Window* HloInstructionProto::mutable_window() {
if (window_ == NULL) {
auto* p = CreateMaybeMessage<::xla::Window>(GetArenaNoVirtual());
window_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.window)
return window_;
}
inline void HloInstructionProto::set_allocated_window(::xla::Window* window) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(window_);
}
if (window) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(window)->GetArena();
if (message_arena != submessage_arena) {
window = ::google::protobuf::internal::GetOwnedMessage(
message_arena, window, submessage_arena);
}
} else {
}
window_ = window;
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.window)
}
// .xla.ConvolutionDimensionNumbers convolution_dimension_numbers = 16;
inline bool HloInstructionProto::has_convolution_dimension_numbers() const {
return this != internal_default_instance() && convolution_dimension_numbers_ != NULL;
}
inline const ::xla::ConvolutionDimensionNumbers& HloInstructionProto::_internal_convolution_dimension_numbers() const {
return *convolution_dimension_numbers_;
}
inline const ::xla::ConvolutionDimensionNumbers& HloInstructionProto::convolution_dimension_numbers() const {
const ::xla::ConvolutionDimensionNumbers* p = convolution_dimension_numbers_;
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.convolution_dimension_numbers)
return p != NULL ? *p : *reinterpret_cast<const ::xla::ConvolutionDimensionNumbers*>(
&::xla::_ConvolutionDimensionNumbers_default_instance_);
}
inline ::xla::ConvolutionDimensionNumbers* HloInstructionProto::release_convolution_dimension_numbers() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.convolution_dimension_numbers)
::xla::ConvolutionDimensionNumbers* temp = convolution_dimension_numbers_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
convolution_dimension_numbers_ = NULL;
return temp;
}
inline ::xla::ConvolutionDimensionNumbers* HloInstructionProto::unsafe_arena_release_convolution_dimension_numbers() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.convolution_dimension_numbers)
::xla::ConvolutionDimensionNumbers* temp = convolution_dimension_numbers_;
convolution_dimension_numbers_ = NULL;
return temp;
}
inline ::xla::ConvolutionDimensionNumbers* HloInstructionProto::mutable_convolution_dimension_numbers() {
if (convolution_dimension_numbers_ == NULL) {
auto* p = CreateMaybeMessage<::xla::ConvolutionDimensionNumbers>(GetArenaNoVirtual());
convolution_dimension_numbers_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.convolution_dimension_numbers)
return convolution_dimension_numbers_;
}
inline void HloInstructionProto::set_allocated_convolution_dimension_numbers(::xla::ConvolutionDimensionNumbers* convolution_dimension_numbers) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(convolution_dimension_numbers_);
}
if (convolution_dimension_numbers) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(convolution_dimension_numbers)->GetArena();
if (message_arena != submessage_arena) {
convolution_dimension_numbers = ::google::protobuf::internal::GetOwnedMessage(
message_arena, convolution_dimension_numbers, submessage_arena);
}
} else {
}
convolution_dimension_numbers_ = convolution_dimension_numbers;
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.convolution_dimension_numbers)
}
// int64 feature_group_count = 50;
inline void HloInstructionProto::clear_feature_group_count() {
feature_group_count_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloInstructionProto::feature_group_count() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.feature_group_count)
return feature_group_count_;
}
inline void HloInstructionProto::set_feature_group_count(::google::protobuf::int64 value) {
feature_group_count_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.feature_group_count)
}
// repeated .xla.HloInstructionProto.SliceDimensions slice_dimensions = 17;
inline int HloInstructionProto::slice_dimensions_size() const {
return slice_dimensions_.size();
}
inline void HloInstructionProto::clear_slice_dimensions() {
slice_dimensions_.Clear();
}
inline ::xla::HloInstructionProto_SliceDimensions* HloInstructionProto::mutable_slice_dimensions(int index) {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.slice_dimensions)
return slice_dimensions_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto_SliceDimensions >*
HloInstructionProto::mutable_slice_dimensions() {
// @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.slice_dimensions)
return &slice_dimensions_;
}
inline const ::xla::HloInstructionProto_SliceDimensions& HloInstructionProto::slice_dimensions(int index) const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.slice_dimensions)
return slice_dimensions_.Get(index);
}
inline ::xla::HloInstructionProto_SliceDimensions* HloInstructionProto::add_slice_dimensions() {
// @@protoc_insertion_point(field_add:xla.HloInstructionProto.slice_dimensions)
return slice_dimensions_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto_SliceDimensions >&
HloInstructionProto::slice_dimensions() const {
// @@protoc_insertion_point(field_list:xla.HloInstructionProto.slice_dimensions)
return slice_dimensions_;
}
// int32 exponent_bits = 18;
inline void HloInstructionProto::clear_exponent_bits() {
exponent_bits_ = 0;
}
inline ::google::protobuf::int32 HloInstructionProto::exponent_bits() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.exponent_bits)
return exponent_bits_;
}
inline void HloInstructionProto::set_exponent_bits(::google::protobuf::int32 value) {
exponent_bits_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.exponent_bits)
}
// int32 mantissa_bits = 19;
inline void HloInstructionProto::clear_mantissa_bits() {
mantissa_bits_ = 0;
}
inline ::google::protobuf::int32 HloInstructionProto::mantissa_bits() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.mantissa_bits)
return mantissa_bits_;
}
inline void HloInstructionProto::set_mantissa_bits(::google::protobuf::int32 value) {
mantissa_bits_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.mantissa_bits)
}
// repeated int64 dynamic_slice_sizes = 20;
inline int HloInstructionProto::dynamic_slice_sizes_size() const {
return dynamic_slice_sizes_.size();
}
inline void HloInstructionProto::clear_dynamic_slice_sizes() {
dynamic_slice_sizes_.Clear();
}
inline ::google::protobuf::int64 HloInstructionProto::dynamic_slice_sizes(int index) const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.dynamic_slice_sizes)
return dynamic_slice_sizes_.Get(index);
}
inline void HloInstructionProto::set_dynamic_slice_sizes(int index, ::google::protobuf::int64 value) {
dynamic_slice_sizes_.Set(index, value);
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.dynamic_slice_sizes)
}
inline void HloInstructionProto::add_dynamic_slice_sizes(::google::protobuf::int64 value) {
dynamic_slice_sizes_.Add(value);
// @@protoc_insertion_point(field_add:xla.HloInstructionProto.dynamic_slice_sizes)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
HloInstructionProto::dynamic_slice_sizes() const {
// @@protoc_insertion_point(field_list:xla.HloInstructionProto.dynamic_slice_sizes)
return dynamic_slice_sizes_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
HloInstructionProto::mutable_dynamic_slice_sizes() {
// @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.dynamic_slice_sizes)
return &dynamic_slice_sizes_;
}
// .xla.PaddingConfig padding_config = 21;
inline bool HloInstructionProto::has_padding_config() const {
return this != internal_default_instance() && padding_config_ != NULL;
}
inline const ::xla::PaddingConfig& HloInstructionProto::_internal_padding_config() const {
return *padding_config_;
}
inline const ::xla::PaddingConfig& HloInstructionProto::padding_config() const {
const ::xla::PaddingConfig* p = padding_config_;
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.padding_config)
return p != NULL ? *p : *reinterpret_cast<const ::xla::PaddingConfig*>(
&::xla::_PaddingConfig_default_instance_);
}
inline ::xla::PaddingConfig* HloInstructionProto::release_padding_config() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.padding_config)
::xla::PaddingConfig* temp = padding_config_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
padding_config_ = NULL;
return temp;
}
inline ::xla::PaddingConfig* HloInstructionProto::unsafe_arena_release_padding_config() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.padding_config)
::xla::PaddingConfig* temp = padding_config_;
padding_config_ = NULL;
return temp;
}
inline ::xla::PaddingConfig* HloInstructionProto::mutable_padding_config() {
if (padding_config_ == NULL) {
auto* p = CreateMaybeMessage<::xla::PaddingConfig>(GetArenaNoVirtual());
padding_config_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.padding_config)
return padding_config_;
}
inline void HloInstructionProto::set_allocated_padding_config(::xla::PaddingConfig* padding_config) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(padding_config_);
}
if (padding_config) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(padding_config)->GetArena();
if (message_arena != submessage_arena) {
padding_config = ::google::protobuf::internal::GetOwnedMessage(
message_arena, padding_config, submessage_arena);
}
} else {
}
padding_config_ = padding_config;
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.padding_config)
}
// bytes outfeed_config = 22;
inline void HloInstructionProto::clear_outfeed_config() {
outfeed_config_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloInstructionProto::outfeed_config() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.outfeed_config)
return outfeed_config_.Get();
}
inline void HloInstructionProto::set_outfeed_config(const ::std::string& value) {
outfeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.outfeed_config)
}
#if LANG_CXX11
inline void HloInstructionProto::set_outfeed_config(::std::string&& value) {
outfeed_config_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.outfeed_config)
}
#endif
inline void HloInstructionProto::set_outfeed_config(const char* value) {
GOOGLE_DCHECK(value != NULL);
outfeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.outfeed_config)
}
inline void HloInstructionProto::set_outfeed_config(const void* value,
size_t size) {
outfeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.outfeed_config)
}
inline ::std::string* HloInstructionProto::mutable_outfeed_config() {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.outfeed_config)
return outfeed_config_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloInstructionProto::release_outfeed_config() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.outfeed_config)
return outfeed_config_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloInstructionProto::set_allocated_outfeed_config(::std::string* outfeed_config) {
if (outfeed_config != NULL) {
} else {
}
outfeed_config_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), outfeed_config,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.outfeed_config)
}
inline ::std::string* HloInstructionProto::unsafe_arena_release_outfeed_config() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.outfeed_config)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return outfeed_config_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloInstructionProto::unsafe_arena_set_allocated_outfeed_config(
::std::string* outfeed_config) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (outfeed_config != NULL) {
} else {
}
outfeed_config_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
outfeed_config, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.outfeed_config)
}
// .xla.RandomDistribution distribution = 23;
inline void HloInstructionProto::clear_distribution() {
distribution_ = 0;
}
inline ::xla::RandomDistribution HloInstructionProto::distribution() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.distribution)
return static_cast< ::xla::RandomDistribution >(distribution_);
}
inline void HloInstructionProto::set_distribution(::xla::RandomDistribution value) {
distribution_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.distribution)
}
// float epsilon = 24;
inline void HloInstructionProto::clear_epsilon() {
epsilon_ = 0;
}
inline float HloInstructionProto::epsilon() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.epsilon)
return epsilon_;
}
inline void HloInstructionProto::set_epsilon(float value) {
epsilon_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.epsilon)
}
// int64 feature_index = 25;
inline void HloInstructionProto::clear_feature_index() {
feature_index_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloInstructionProto::feature_index() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.feature_index)
return feature_index_;
}
inline void HloInstructionProto::set_feature_index(::google::protobuf::int64 value) {
feature_index_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.feature_index)
}
// int64 channel_id = 26;
inline void HloInstructionProto::clear_channel_id() {
channel_id_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloInstructionProto::channel_id() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.channel_id)
return channel_id_;
}
inline void HloInstructionProto::set_channel_id(::google::protobuf::int64 value) {
channel_id_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.channel_id)
}
// bytes infeed_config = 27;
inline void HloInstructionProto::clear_infeed_config() {
infeed_config_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloInstructionProto::infeed_config() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.infeed_config)
return infeed_config_.Get();
}
inline void HloInstructionProto::set_infeed_config(const ::std::string& value) {
infeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.infeed_config)
}
#if LANG_CXX11
inline void HloInstructionProto::set_infeed_config(::std::string&& value) {
infeed_config_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.infeed_config)
}
#endif
inline void HloInstructionProto::set_infeed_config(const char* value) {
GOOGLE_DCHECK(value != NULL);
infeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.infeed_config)
}
inline void HloInstructionProto::set_infeed_config(const void* value,
size_t size) {
infeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.infeed_config)
}
inline ::std::string* HloInstructionProto::mutable_infeed_config() {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.infeed_config)
return infeed_config_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloInstructionProto::release_infeed_config() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.infeed_config)
return infeed_config_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloInstructionProto::set_allocated_infeed_config(::std::string* infeed_config) {
if (infeed_config != NULL) {
} else {
}
infeed_config_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), infeed_config,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.infeed_config)
}
inline ::std::string* HloInstructionProto::unsafe_arena_release_infeed_config() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.infeed_config)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return infeed_config_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloInstructionProto::unsafe_arena_set_allocated_infeed_config(
::std::string* infeed_config) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (infeed_config != NULL) {
} else {
}
infeed_config_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
infeed_config, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.infeed_config)
}
// string custom_call_target = 28;
inline void HloInstructionProto::clear_custom_call_target() {
custom_call_target_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloInstructionProto::custom_call_target() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.custom_call_target)
return custom_call_target_.Get();
}
inline void HloInstructionProto::set_custom_call_target(const ::std::string& value) {
custom_call_target_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.custom_call_target)
}
#if LANG_CXX11
inline void HloInstructionProto::set_custom_call_target(::std::string&& value) {
custom_call_target_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.custom_call_target)
}
#endif
inline void HloInstructionProto::set_custom_call_target(const char* value) {
GOOGLE_DCHECK(value != NULL);
custom_call_target_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.custom_call_target)
}
inline void HloInstructionProto::set_custom_call_target(const char* value,
size_t size) {
custom_call_target_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.custom_call_target)
}
inline ::std::string* HloInstructionProto::mutable_custom_call_target() {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.custom_call_target)
return custom_call_target_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloInstructionProto::release_custom_call_target() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.custom_call_target)
return custom_call_target_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloInstructionProto::set_allocated_custom_call_target(::std::string* custom_call_target) {
if (custom_call_target != NULL) {
} else {
}
custom_call_target_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), custom_call_target,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.custom_call_target)
}
inline ::std::string* HloInstructionProto::unsafe_arena_release_custom_call_target() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.custom_call_target)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return custom_call_target_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloInstructionProto::unsafe_arena_set_allocated_custom_call_target(
::std::string* custom_call_target) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (custom_call_target != NULL) {
} else {
}
custom_call_target_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
custom_call_target, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.custom_call_target)
}
// string custom_call_opaque = 53;
inline void HloInstructionProto::clear_custom_call_opaque() {
custom_call_opaque_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloInstructionProto::custom_call_opaque() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.custom_call_opaque)
return custom_call_opaque_.Get();
}
inline void HloInstructionProto::set_custom_call_opaque(const ::std::string& value) {
custom_call_opaque_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.custom_call_opaque)
}
#if LANG_CXX11
inline void HloInstructionProto::set_custom_call_opaque(::std::string&& value) {
custom_call_opaque_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.custom_call_opaque)
}
#endif
inline void HloInstructionProto::set_custom_call_opaque(const char* value) {
GOOGLE_DCHECK(value != NULL);
custom_call_opaque_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.custom_call_opaque)
}
inline void HloInstructionProto::set_custom_call_opaque(const char* value,
size_t size) {
custom_call_opaque_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.custom_call_opaque)
}
inline ::std::string* HloInstructionProto::mutable_custom_call_opaque() {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.custom_call_opaque)
return custom_call_opaque_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloInstructionProto::release_custom_call_opaque() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.custom_call_opaque)
return custom_call_opaque_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloInstructionProto::set_allocated_custom_call_opaque(::std::string* custom_call_opaque) {
if (custom_call_opaque != NULL) {
} else {
}
custom_call_opaque_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), custom_call_opaque,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.custom_call_opaque)
}
inline ::std::string* HloInstructionProto::unsafe_arena_release_custom_call_opaque() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.custom_call_opaque)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return custom_call_opaque_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloInstructionProto::unsafe_arena_set_allocated_custom_call_opaque(
::std::string* custom_call_opaque) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (custom_call_opaque != NULL) {
} else {
}
custom_call_opaque_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
custom_call_opaque, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.custom_call_opaque)
}
// .xla.Shape outfeed_shape = 29;
inline bool HloInstructionProto::has_outfeed_shape() const {
return this != internal_default_instance() && outfeed_shape_ != NULL;
}
inline const ::xla::Shape& HloInstructionProto::_internal_outfeed_shape() const {
return *outfeed_shape_;
}
inline const ::xla::Shape& HloInstructionProto::outfeed_shape() const {
const ::xla::Shape* p = outfeed_shape_;
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.outfeed_shape)
return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>(
&::xla::_Shape_default_instance_);
}
inline ::xla::Shape* HloInstructionProto::release_outfeed_shape() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.outfeed_shape)
::xla::Shape* temp = outfeed_shape_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
outfeed_shape_ = NULL;
return temp;
}
inline ::xla::Shape* HloInstructionProto::unsafe_arena_release_outfeed_shape() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.outfeed_shape)
::xla::Shape* temp = outfeed_shape_;
outfeed_shape_ = NULL;
return temp;
}
inline ::xla::Shape* HloInstructionProto::mutable_outfeed_shape() {
if (outfeed_shape_ == NULL) {
auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual());
outfeed_shape_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.outfeed_shape)
return outfeed_shape_;
}
inline void HloInstructionProto::set_allocated_outfeed_shape(::xla::Shape* outfeed_shape) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(outfeed_shape_);
}
if (outfeed_shape) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(outfeed_shape)->GetArena();
if (message_arena != submessage_arena) {
outfeed_shape = ::google::protobuf::internal::GetOwnedMessage(
message_arena, outfeed_shape, submessage_arena);
}
} else {
}
outfeed_shape_ = outfeed_shape;
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.outfeed_shape)
}
// .xla.DotDimensionNumbers dot_dimension_numbers = 30;
inline bool HloInstructionProto::has_dot_dimension_numbers() const {
return this != internal_default_instance() && dot_dimension_numbers_ != NULL;
}
inline const ::xla::DotDimensionNumbers& HloInstructionProto::_internal_dot_dimension_numbers() const {
return *dot_dimension_numbers_;
}
inline const ::xla::DotDimensionNumbers& HloInstructionProto::dot_dimension_numbers() const {
const ::xla::DotDimensionNumbers* p = dot_dimension_numbers_;
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.dot_dimension_numbers)
return p != NULL ? *p : *reinterpret_cast<const ::xla::DotDimensionNumbers*>(
&::xla::_DotDimensionNumbers_default_instance_);
}
inline ::xla::DotDimensionNumbers* HloInstructionProto::release_dot_dimension_numbers() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.dot_dimension_numbers)
::xla::DotDimensionNumbers* temp = dot_dimension_numbers_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
dot_dimension_numbers_ = NULL;
return temp;
}
inline ::xla::DotDimensionNumbers* HloInstructionProto::unsafe_arena_release_dot_dimension_numbers() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.dot_dimension_numbers)
::xla::DotDimensionNumbers* temp = dot_dimension_numbers_;
dot_dimension_numbers_ = NULL;
return temp;
}
inline ::xla::DotDimensionNumbers* HloInstructionProto::mutable_dot_dimension_numbers() {
if (dot_dimension_numbers_ == NULL) {
auto* p = CreateMaybeMessage<::xla::DotDimensionNumbers>(GetArenaNoVirtual());
dot_dimension_numbers_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.dot_dimension_numbers)
return dot_dimension_numbers_;
}
inline void HloInstructionProto::set_allocated_dot_dimension_numbers(::xla::DotDimensionNumbers* dot_dimension_numbers) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(dot_dimension_numbers_);
}
if (dot_dimension_numbers) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(dot_dimension_numbers)->GetArena();
if (message_arena != submessage_arena) {
dot_dimension_numbers = ::google::protobuf::internal::GetOwnedMessage(
message_arena, dot_dimension_numbers, submessage_arena);
}
} else {
}
dot_dimension_numbers_ = dot_dimension_numbers;
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.dot_dimension_numbers)
}
// .xla.FftType fft_type = 31;
inline void HloInstructionProto::clear_fft_type() {
fft_type_ = 0;
}
inline ::xla::FftType HloInstructionProto::fft_type() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.fft_type)
return static_cast< ::xla::FftType >(fft_type_);
}
inline void HloInstructionProto::set_fft_type(::xla::FftType value) {
fft_type_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.fft_type)
}
// repeated int64 fft_length = 32;
inline int HloInstructionProto::fft_length_size() const {
return fft_length_.size();
}
inline void HloInstructionProto::clear_fft_length() {
fft_length_.Clear();
}
inline ::google::protobuf::int64 HloInstructionProto::fft_length(int index) const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.fft_length)
return fft_length_.Get(index);
}
inline void HloInstructionProto::set_fft_length(int index, ::google::protobuf::int64 value) {
fft_length_.Set(index, value);
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.fft_length)
}
inline void HloInstructionProto::add_fft_length(::google::protobuf::int64 value) {
fft_length_.Add(value);
// @@protoc_insertion_point(field_add:xla.HloInstructionProto.fft_length)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
HloInstructionProto::fft_length() const {
// @@protoc_insertion_point(field_list:xla.HloInstructionProto.fft_length)
return fft_length_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
HloInstructionProto::mutable_fft_length() {
// @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.fft_length)
return &fft_length_;
}
// .xla.GatherDimensionNumbers gather_dimension_numbers = 33;
inline bool HloInstructionProto::has_gather_dimension_numbers() const {
return this != internal_default_instance() && gather_dimension_numbers_ != NULL;
}
inline const ::xla::GatherDimensionNumbers& HloInstructionProto::_internal_gather_dimension_numbers() const {
return *gather_dimension_numbers_;
}
inline const ::xla::GatherDimensionNumbers& HloInstructionProto::gather_dimension_numbers() const {
const ::xla::GatherDimensionNumbers* p = gather_dimension_numbers_;
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.gather_dimension_numbers)
return p != NULL ? *p : *reinterpret_cast<const ::xla::GatherDimensionNumbers*>(
&::xla::_GatherDimensionNumbers_default_instance_);
}
inline ::xla::GatherDimensionNumbers* HloInstructionProto::release_gather_dimension_numbers() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.gather_dimension_numbers)
::xla::GatherDimensionNumbers* temp = gather_dimension_numbers_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
gather_dimension_numbers_ = NULL;
return temp;
}
inline ::xla::GatherDimensionNumbers* HloInstructionProto::unsafe_arena_release_gather_dimension_numbers() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.gather_dimension_numbers)
::xla::GatherDimensionNumbers* temp = gather_dimension_numbers_;
gather_dimension_numbers_ = NULL;
return temp;
}
inline ::xla::GatherDimensionNumbers* HloInstructionProto::mutable_gather_dimension_numbers() {
if (gather_dimension_numbers_ == NULL) {
auto* p = CreateMaybeMessage<::xla::GatherDimensionNumbers>(GetArenaNoVirtual());
gather_dimension_numbers_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.gather_dimension_numbers)
return gather_dimension_numbers_;
}
inline void HloInstructionProto::set_allocated_gather_dimension_numbers(::xla::GatherDimensionNumbers* gather_dimension_numbers) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(gather_dimension_numbers_);
}
if (gather_dimension_numbers) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(gather_dimension_numbers)->GetArena();
if (message_arena != submessage_arena) {
gather_dimension_numbers = ::google::protobuf::internal::GetOwnedMessage(
message_arena, gather_dimension_numbers, submessage_arena);
}
} else {
}
gather_dimension_numbers_ = gather_dimension_numbers;
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.gather_dimension_numbers)
}
// repeated int64 gather_slice_sizes = 34;
inline int HloInstructionProto::gather_slice_sizes_size() const {
return gather_slice_sizes_.size();
}
inline void HloInstructionProto::clear_gather_slice_sizes() {
gather_slice_sizes_.Clear();
}
inline ::google::protobuf::int64 HloInstructionProto::gather_slice_sizes(int index) const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.gather_slice_sizes)
return gather_slice_sizes_.Get(index);
}
inline void HloInstructionProto::set_gather_slice_sizes(int index, ::google::protobuf::int64 value) {
gather_slice_sizes_.Set(index, value);
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.gather_slice_sizes)
}
inline void HloInstructionProto::add_gather_slice_sizes(::google::protobuf::int64 value) {
gather_slice_sizes_.Add(value);
// @@protoc_insertion_point(field_add:xla.HloInstructionProto.gather_slice_sizes)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
HloInstructionProto::gather_slice_sizes() const {
// @@protoc_insertion_point(field_list:xla.HloInstructionProto.gather_slice_sizes)
return gather_slice_sizes_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
HloInstructionProto::mutable_gather_slice_sizes() {
// @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.gather_slice_sizes)
return &gather_slice_sizes_;
}
// string channel_name = 41;
inline void HloInstructionProto::clear_channel_name() {
channel_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloInstructionProto::channel_name() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.channel_name)
return channel_name_.Get();
}
inline void HloInstructionProto::set_channel_name(const ::std::string& value) {
channel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.channel_name)
}
#if LANG_CXX11
inline void HloInstructionProto::set_channel_name(::std::string&& value) {
channel_name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.channel_name)
}
#endif
inline void HloInstructionProto::set_channel_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
channel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.channel_name)
}
inline void HloInstructionProto::set_channel_name(const char* value,
size_t size) {
channel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.channel_name)
}
inline ::std::string* HloInstructionProto::mutable_channel_name() {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.channel_name)
return channel_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloInstructionProto::release_channel_name() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.channel_name)
return channel_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloInstructionProto::set_allocated_channel_name(::std::string* channel_name) {
if (channel_name != NULL) {
} else {
}
channel_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), channel_name,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.channel_name)
}
inline ::std::string* HloInstructionProto::unsafe_arena_release_channel_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.channel_name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return channel_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloInstructionProto::unsafe_arena_set_allocated_channel_name(
::std::string* channel_name) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (channel_name != NULL) {
} else {
}
channel_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
channel_name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.channel_name)
}
// int64 cost_estimate_ns = 42;
inline void HloInstructionProto::clear_cost_estimate_ns() {
cost_estimate_ns_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloInstructionProto::cost_estimate_ns() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.cost_estimate_ns)
return cost_estimate_ns_;
}
inline void HloInstructionProto::set_cost_estimate_ns(::google::protobuf::int64 value) {
cost_estimate_ns_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.cost_estimate_ns)
}
// int64 id = 35;
inline void HloInstructionProto::clear_id() {
id_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloInstructionProto::id() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.id)
return id_;
}
inline void HloInstructionProto::set_id(::google::protobuf::int64 value) {
id_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.id)
}
// repeated int64 operand_ids = 36;
inline int HloInstructionProto::operand_ids_size() const {
return operand_ids_.size();
}
inline void HloInstructionProto::clear_operand_ids() {
operand_ids_.Clear();
}
inline ::google::protobuf::int64 HloInstructionProto::operand_ids(int index) const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.operand_ids)
return operand_ids_.Get(index);
}
inline void HloInstructionProto::set_operand_ids(int index, ::google::protobuf::int64 value) {
operand_ids_.Set(index, value);
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.operand_ids)
}
inline void HloInstructionProto::add_operand_ids(::google::protobuf::int64 value) {
operand_ids_.Add(value);
// @@protoc_insertion_point(field_add:xla.HloInstructionProto.operand_ids)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
HloInstructionProto::operand_ids() const {
// @@protoc_insertion_point(field_list:xla.HloInstructionProto.operand_ids)
return operand_ids_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
HloInstructionProto::mutable_operand_ids() {
// @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.operand_ids)
return &operand_ids_;
}
// repeated int64 control_predecessor_ids = 37;
inline int HloInstructionProto::control_predecessor_ids_size() const {
return control_predecessor_ids_.size();
}
inline void HloInstructionProto::clear_control_predecessor_ids() {
control_predecessor_ids_.Clear();
}
inline ::google::protobuf::int64 HloInstructionProto::control_predecessor_ids(int index) const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.control_predecessor_ids)
return control_predecessor_ids_.Get(index);
}
inline void HloInstructionProto::set_control_predecessor_ids(int index, ::google::protobuf::int64 value) {
control_predecessor_ids_.Set(index, value);
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.control_predecessor_ids)
}
inline void HloInstructionProto::add_control_predecessor_ids(::google::protobuf::int64 value) {
control_predecessor_ids_.Add(value);
// @@protoc_insertion_point(field_add:xla.HloInstructionProto.control_predecessor_ids)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
HloInstructionProto::control_predecessor_ids() const {
// @@protoc_insertion_point(field_list:xla.HloInstructionProto.control_predecessor_ids)
return control_predecessor_ids_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
HloInstructionProto::mutable_control_predecessor_ids() {
// @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.control_predecessor_ids)
return &control_predecessor_ids_;
}
// repeated int64 called_computation_ids = 38;
inline int HloInstructionProto::called_computation_ids_size() const {
return called_computation_ids_.size();
}
inline void HloInstructionProto::clear_called_computation_ids() {
called_computation_ids_.Clear();
}
inline ::google::protobuf::int64 HloInstructionProto::called_computation_ids(int index) const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.called_computation_ids)
return called_computation_ids_.Get(index);
}
inline void HloInstructionProto::set_called_computation_ids(int index, ::google::protobuf::int64 value) {
called_computation_ids_.Set(index, value);
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.called_computation_ids)
}
inline void HloInstructionProto::add_called_computation_ids(::google::protobuf::int64 value) {
called_computation_ids_.Add(value);
// @@protoc_insertion_point(field_add:xla.HloInstructionProto.called_computation_ids)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
HloInstructionProto::called_computation_ids() const {
// @@protoc_insertion_point(field_list:xla.HloInstructionProto.called_computation_ids)
return called_computation_ids_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
HloInstructionProto::mutable_called_computation_ids() {
// @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.called_computation_ids)
return &called_computation_ids_;
}
// .xla.OpSharding sharding = 40;
inline bool HloInstructionProto::has_sharding() const {
return this != internal_default_instance() && sharding_ != NULL;
}
inline const ::xla::OpSharding& HloInstructionProto::_internal_sharding() const {
return *sharding_;
}
inline const ::xla::OpSharding& HloInstructionProto::sharding() const {
const ::xla::OpSharding* p = sharding_;
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.sharding)
return p != NULL ? *p : *reinterpret_cast<const ::xla::OpSharding*>(
&::xla::_OpSharding_default_instance_);
}
inline ::xla::OpSharding* HloInstructionProto::release_sharding() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.sharding)
::xla::OpSharding* temp = sharding_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
sharding_ = NULL;
return temp;
}
inline ::xla::OpSharding* HloInstructionProto::unsafe_arena_release_sharding() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.sharding)
::xla::OpSharding* temp = sharding_;
sharding_ = NULL;
return temp;
}
inline ::xla::OpSharding* HloInstructionProto::mutable_sharding() {
if (sharding_ == NULL) {
auto* p = CreateMaybeMessage<::xla::OpSharding>(GetArenaNoVirtual());
sharding_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.sharding)
return sharding_;
}
inline void HloInstructionProto::set_allocated_sharding(::xla::OpSharding* sharding) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(sharding_);
}
if (sharding) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(sharding)->GetArena();
if (message_arena != submessage_arena) {
sharding = ::google::protobuf::internal::GetOwnedMessage(
message_arena, sharding, submessage_arena);
}
} else {
}
sharding_ = sharding;
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.sharding)
}
// string backend_config = 43;
inline void HloInstructionProto::clear_backend_config() {
backend_config_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloInstructionProto::backend_config() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.backend_config)
return backend_config_.Get();
}
inline void HloInstructionProto::set_backend_config(const ::std::string& value) {
backend_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.backend_config)
}
#if LANG_CXX11
inline void HloInstructionProto::set_backend_config(::std::string&& value) {
backend_config_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.backend_config)
}
#endif
inline void HloInstructionProto::set_backend_config(const char* value) {
GOOGLE_DCHECK(value != NULL);
backend_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.backend_config)
}
inline void HloInstructionProto::set_backend_config(const char* value,
size_t size) {
backend_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.backend_config)
}
inline ::std::string* HloInstructionProto::mutable_backend_config() {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.backend_config)
return backend_config_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloInstructionProto::release_backend_config() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.backend_config)
return backend_config_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloInstructionProto::set_allocated_backend_config(::std::string* backend_config) {
if (backend_config != NULL) {
} else {
}
backend_config_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), backend_config,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.backend_config)
}
inline ::std::string* HloInstructionProto::unsafe_arena_release_backend_config() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.backend_config)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return backend_config_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloInstructionProto::unsafe_arena_set_allocated_backend_config(
::std::string* backend_config) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (backend_config != NULL) {
} else {
}
backend_config_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
backend_config, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.backend_config)
}
// repeated .xla.ReplicaGroup replica_groups = 49;
inline int HloInstructionProto::replica_groups_size() const {
return replica_groups_.size();
}
inline ::xla::ReplicaGroup* HloInstructionProto::mutable_replica_groups(int index) {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.replica_groups)
return replica_groups_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::ReplicaGroup >*
HloInstructionProto::mutable_replica_groups() {
// @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.replica_groups)
return &replica_groups_;
}
inline const ::xla::ReplicaGroup& HloInstructionProto::replica_groups(int index) const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.replica_groups)
return replica_groups_.Get(index);
}
inline ::xla::ReplicaGroup* HloInstructionProto::add_replica_groups() {
// @@protoc_insertion_point(field_add:xla.HloInstructionProto.replica_groups)
return replica_groups_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::ReplicaGroup >&
HloInstructionProto::replica_groups() const {
// @@protoc_insertion_point(field_list:xla.HloInstructionProto.replica_groups)
return replica_groups_;
}
// int64 all_reduce_id = 45;
inline void HloInstructionProto::clear_all_reduce_id() {
all_reduce_id_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloInstructionProto::all_reduce_id() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.all_reduce_id)
return all_reduce_id_;
}
inline void HloInstructionProto::set_all_reduce_id(::google::protobuf::int64 value) {
all_reduce_id_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.all_reduce_id)
}
// string cross_replica_sum_barrier = 46;
inline void HloInstructionProto::clear_cross_replica_sum_barrier() {
cross_replica_sum_barrier_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloInstructionProto::cross_replica_sum_barrier() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.cross_replica_sum_barrier)
return cross_replica_sum_barrier_.Get();
}
inline void HloInstructionProto::set_cross_replica_sum_barrier(const ::std::string& value) {
cross_replica_sum_barrier_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.cross_replica_sum_barrier)
}
#if LANG_CXX11
inline void HloInstructionProto::set_cross_replica_sum_barrier(::std::string&& value) {
cross_replica_sum_barrier_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.cross_replica_sum_barrier)
}
#endif
inline void HloInstructionProto::set_cross_replica_sum_barrier(const char* value) {
GOOGLE_DCHECK(value != NULL);
cross_replica_sum_barrier_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.cross_replica_sum_barrier)
}
inline void HloInstructionProto::set_cross_replica_sum_barrier(const char* value,
size_t size) {
cross_replica_sum_barrier_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.cross_replica_sum_barrier)
}
inline ::std::string* HloInstructionProto::mutable_cross_replica_sum_barrier() {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.cross_replica_sum_barrier)
return cross_replica_sum_barrier_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloInstructionProto::release_cross_replica_sum_barrier() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.cross_replica_sum_barrier)
return cross_replica_sum_barrier_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloInstructionProto::set_allocated_cross_replica_sum_barrier(::std::string* cross_replica_sum_barrier) {
if (cross_replica_sum_barrier != NULL) {
} else {
}
cross_replica_sum_barrier_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cross_replica_sum_barrier,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.cross_replica_sum_barrier)
}
inline ::std::string* HloInstructionProto::unsafe_arena_release_cross_replica_sum_barrier() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.cross_replica_sum_barrier)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return cross_replica_sum_barrier_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloInstructionProto::unsafe_arena_set_allocated_cross_replica_sum_barrier(
::std::string* cross_replica_sum_barrier) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (cross_replica_sum_barrier != NULL) {
} else {
}
cross_replica_sum_barrier_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
cross_replica_sum_barrier, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.cross_replica_sum_barrier)
}
// bool is_host_transfer = 47;
inline void HloInstructionProto::clear_is_host_transfer() {
is_host_transfer_ = false;
}
inline bool HloInstructionProto::is_host_transfer() const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.is_host_transfer)
return is_host_transfer_;
}
inline void HloInstructionProto::set_is_host_transfer(bool value) {
is_host_transfer_ = value;
// @@protoc_insertion_point(field_set:xla.HloInstructionProto.is_host_transfer)
}
// .xla.ScatterDimensionNumbers scatter_dimension_numbers = 48;
inline bool HloInstructionProto::has_scatter_dimension_numbers() const {
return this != internal_default_instance() && scatter_dimension_numbers_ != NULL;
}
inline const ::xla::ScatterDimensionNumbers& HloInstructionProto::_internal_scatter_dimension_numbers() const {
return *scatter_dimension_numbers_;
}
inline const ::xla::ScatterDimensionNumbers& HloInstructionProto::scatter_dimension_numbers() const {
const ::xla::ScatterDimensionNumbers* p = scatter_dimension_numbers_;
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.scatter_dimension_numbers)
return p != NULL ? *p : *reinterpret_cast<const ::xla::ScatterDimensionNumbers*>(
&::xla::_ScatterDimensionNumbers_default_instance_);
}
inline ::xla::ScatterDimensionNumbers* HloInstructionProto::release_scatter_dimension_numbers() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.scatter_dimension_numbers)
::xla::ScatterDimensionNumbers* temp = scatter_dimension_numbers_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
scatter_dimension_numbers_ = NULL;
return temp;
}
inline ::xla::ScatterDimensionNumbers* HloInstructionProto::unsafe_arena_release_scatter_dimension_numbers() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.scatter_dimension_numbers)
::xla::ScatterDimensionNumbers* temp = scatter_dimension_numbers_;
scatter_dimension_numbers_ = NULL;
return temp;
}
inline ::xla::ScatterDimensionNumbers* HloInstructionProto::mutable_scatter_dimension_numbers() {
if (scatter_dimension_numbers_ == NULL) {
auto* p = CreateMaybeMessage<::xla::ScatterDimensionNumbers>(GetArenaNoVirtual());
scatter_dimension_numbers_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.scatter_dimension_numbers)
return scatter_dimension_numbers_;
}
inline void HloInstructionProto::set_allocated_scatter_dimension_numbers(::xla::ScatterDimensionNumbers* scatter_dimension_numbers) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(scatter_dimension_numbers_);
}
if (scatter_dimension_numbers) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(scatter_dimension_numbers)->GetArena();
if (message_arena != submessage_arena) {
scatter_dimension_numbers = ::google::protobuf::internal::GetOwnedMessage(
message_arena, scatter_dimension_numbers, submessage_arena);
}
} else {
}
scatter_dimension_numbers_ = scatter_dimension_numbers;
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.scatter_dimension_numbers)
}
// .xla.PrecisionConfig precision_config = 51;
inline bool HloInstructionProto::has_precision_config() const {
return this != internal_default_instance() && precision_config_ != NULL;
}
inline const ::xla::PrecisionConfig& HloInstructionProto::_internal_precision_config() const {
return *precision_config_;
}
inline const ::xla::PrecisionConfig& HloInstructionProto::precision_config() const {
const ::xla::PrecisionConfig* p = precision_config_;
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.precision_config)
return p != NULL ? *p : *reinterpret_cast<const ::xla::PrecisionConfig*>(
&::xla::_PrecisionConfig_default_instance_);
}
inline ::xla::PrecisionConfig* HloInstructionProto::release_precision_config() {
// @@protoc_insertion_point(field_release:xla.HloInstructionProto.precision_config)
::xla::PrecisionConfig* temp = precision_config_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
precision_config_ = NULL;
return temp;
}
inline ::xla::PrecisionConfig* HloInstructionProto::unsafe_arena_release_precision_config() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.precision_config)
::xla::PrecisionConfig* temp = precision_config_;
precision_config_ = NULL;
return temp;
}
inline ::xla::PrecisionConfig* HloInstructionProto::mutable_precision_config() {
if (precision_config_ == NULL) {
auto* p = CreateMaybeMessage<::xla::PrecisionConfig>(GetArenaNoVirtual());
precision_config_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.precision_config)
return precision_config_;
}
inline void HloInstructionProto::set_allocated_precision_config(::xla::PrecisionConfig* precision_config) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(precision_config_);
}
if (precision_config) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(precision_config)->GetArena();
if (message_arena != submessage_arena) {
precision_config = ::google::protobuf::internal::GetOwnedMessage(
message_arena, precision_config, submessage_arena);
}
} else {
}
precision_config_ = precision_config;
// @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.precision_config)
}
// repeated .xla.SourceTarget source_target_pairs = 52;
inline int HloInstructionProto::source_target_pairs_size() const {
return source_target_pairs_.size();
}
inline ::xla::SourceTarget* HloInstructionProto::mutable_source_target_pairs(int index) {
// @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.source_target_pairs)
return source_target_pairs_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::SourceTarget >*
HloInstructionProto::mutable_source_target_pairs() {
// @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.source_target_pairs)
return &source_target_pairs_;
}
inline const ::xla::SourceTarget& HloInstructionProto::source_target_pairs(int index) const {
// @@protoc_insertion_point(field_get:xla.HloInstructionProto.source_target_pairs)
return source_target_pairs_.Get(index);
}
inline ::xla::SourceTarget* HloInstructionProto::add_source_target_pairs() {
// @@protoc_insertion_point(field_add:xla.HloInstructionProto.source_target_pairs)
return source_target_pairs_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::SourceTarget >&
HloInstructionProto::source_target_pairs() const {
// @@protoc_insertion_point(field_list:xla.HloInstructionProto.source_target_pairs)
return source_target_pairs_;
}
// -------------------------------------------------------------------
// HloComputationProto
// string name = 1;
inline void HloComputationProto::clear_name() {
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloComputationProto::name() const {
// @@protoc_insertion_point(field_get:xla.HloComputationProto.name)
return name_.Get();
}
inline void HloComputationProto::set_name(const ::std::string& value) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloComputationProto.name)
}
#if LANG_CXX11
inline void HloComputationProto::set_name(::std::string&& value) {
name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloComputationProto.name)
}
#endif
inline void HloComputationProto::set_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloComputationProto.name)
}
inline void HloComputationProto::set_name(const char* value,
size_t size) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloComputationProto.name)
}
inline ::std::string* HloComputationProto::mutable_name() {
// @@protoc_insertion_point(field_mutable:xla.HloComputationProto.name)
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloComputationProto::release_name() {
// @@protoc_insertion_point(field_release:xla.HloComputationProto.name)
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloComputationProto::set_allocated_name(::std::string* name) {
if (name != NULL) {
} else {
}
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloComputationProto.name)
}
inline ::std::string* HloComputationProto::unsafe_arena_release_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloComputationProto.name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloComputationProto::unsafe_arena_set_allocated_name(
::std::string* name) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (name != NULL) {
} else {
}
name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloComputationProto.name)
}
// repeated .xla.HloInstructionProto instructions = 2;
inline int HloComputationProto::instructions_size() const {
return instructions_.size();
}
inline void HloComputationProto::clear_instructions() {
instructions_.Clear();
}
inline ::xla::HloInstructionProto* HloComputationProto::mutable_instructions(int index) {
// @@protoc_insertion_point(field_mutable:xla.HloComputationProto.instructions)
return instructions_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto >*
HloComputationProto::mutable_instructions() {
// @@protoc_insertion_point(field_mutable_list:xla.HloComputationProto.instructions)
return &instructions_;
}
inline const ::xla::HloInstructionProto& HloComputationProto::instructions(int index) const {
// @@protoc_insertion_point(field_get:xla.HloComputationProto.instructions)
return instructions_.Get(index);
}
inline ::xla::HloInstructionProto* HloComputationProto::add_instructions() {
// @@protoc_insertion_point(field_add:xla.HloComputationProto.instructions)
return instructions_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto >&
HloComputationProto::instructions() const {
// @@protoc_insertion_point(field_list:xla.HloComputationProto.instructions)
return instructions_;
}
// .xla.ProgramShape program_shape = 4;
inline bool HloComputationProto::has_program_shape() const {
return this != internal_default_instance() && program_shape_ != NULL;
}
inline const ::xla::ProgramShape& HloComputationProto::_internal_program_shape() const {
return *program_shape_;
}
inline const ::xla::ProgramShape& HloComputationProto::program_shape() const {
const ::xla::ProgramShape* p = program_shape_;
// @@protoc_insertion_point(field_get:xla.HloComputationProto.program_shape)
return p != NULL ? *p : *reinterpret_cast<const ::xla::ProgramShape*>(
&::xla::_ProgramShape_default_instance_);
}
inline ::xla::ProgramShape* HloComputationProto::release_program_shape() {
// @@protoc_insertion_point(field_release:xla.HloComputationProto.program_shape)
::xla::ProgramShape* temp = program_shape_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
program_shape_ = NULL;
return temp;
}
inline ::xla::ProgramShape* HloComputationProto::unsafe_arena_release_program_shape() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloComputationProto.program_shape)
::xla::ProgramShape* temp = program_shape_;
program_shape_ = NULL;
return temp;
}
inline ::xla::ProgramShape* HloComputationProto::mutable_program_shape() {
if (program_shape_ == NULL) {
auto* p = CreateMaybeMessage<::xla::ProgramShape>(GetArenaNoVirtual());
program_shape_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloComputationProto.program_shape)
return program_shape_;
}
inline void HloComputationProto::set_allocated_program_shape(::xla::ProgramShape* program_shape) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(program_shape_);
}
if (program_shape) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(program_shape)->GetArena();
if (message_arena != submessage_arena) {
program_shape = ::google::protobuf::internal::GetOwnedMessage(
message_arena, program_shape, submessage_arena);
}
} else {
}
program_shape_ = program_shape;
// @@protoc_insertion_point(field_set_allocated:xla.HloComputationProto.program_shape)
}
// int64 id = 5;
inline void HloComputationProto::clear_id() {
id_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloComputationProto::id() const {
// @@protoc_insertion_point(field_get:xla.HloComputationProto.id)
return id_;
}
inline void HloComputationProto::set_id(::google::protobuf::int64 value) {
id_ = value;
// @@protoc_insertion_point(field_set:xla.HloComputationProto.id)
}
// int64 root_id = 6;
inline void HloComputationProto::clear_root_id() {
root_id_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloComputationProto::root_id() const {
// @@protoc_insertion_point(field_get:xla.HloComputationProto.root_id)
return root_id_;
}
inline void HloComputationProto::set_root_id(::google::protobuf::int64 value) {
root_id_ = value;
// @@protoc_insertion_point(field_set:xla.HloComputationProto.root_id)
}
// -------------------------------------------------------------------
// HloScheduleProto_InstructionSequence
// repeated int64 instruction_ids = 1;
inline int HloScheduleProto_InstructionSequence::instruction_ids_size() const {
return instruction_ids_.size();
}
inline void HloScheduleProto_InstructionSequence::clear_instruction_ids() {
instruction_ids_.Clear();
}
inline ::google::protobuf::int64 HloScheduleProto_InstructionSequence::instruction_ids(int index) const {
// @@protoc_insertion_point(field_get:xla.HloScheduleProto.InstructionSequence.instruction_ids)
return instruction_ids_.Get(index);
}
inline void HloScheduleProto_InstructionSequence::set_instruction_ids(int index, ::google::protobuf::int64 value) {
instruction_ids_.Set(index, value);
// @@protoc_insertion_point(field_set:xla.HloScheduleProto.InstructionSequence.instruction_ids)
}
inline void HloScheduleProto_InstructionSequence::add_instruction_ids(::google::protobuf::int64 value) {
instruction_ids_.Add(value);
// @@protoc_insertion_point(field_add:xla.HloScheduleProto.InstructionSequence.instruction_ids)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
HloScheduleProto_InstructionSequence::instruction_ids() const {
// @@protoc_insertion_point(field_list:xla.HloScheduleProto.InstructionSequence.instruction_ids)
return instruction_ids_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
HloScheduleProto_InstructionSequence::mutable_instruction_ids() {
// @@protoc_insertion_point(field_mutable_list:xla.HloScheduleProto.InstructionSequence.instruction_ids)
return &instruction_ids_;
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// HloScheduleProto
// map<int64, .xla.HloScheduleProto.InstructionSequence> sequences = 1;
inline int HloScheduleProto::sequences_size() const {
return sequences_.size();
}
inline void HloScheduleProto::clear_sequences() {
sequences_.Clear();
}
inline const ::google::protobuf::Map< ::google::protobuf::int64, ::xla::HloScheduleProto_InstructionSequence >&
HloScheduleProto::sequences() const {
// @@protoc_insertion_point(field_map:xla.HloScheduleProto.sequences)
return sequences_.GetMap();
}
inline ::google::protobuf::Map< ::google::protobuf::int64, ::xla::HloScheduleProto_InstructionSequence >*
HloScheduleProto::mutable_sequences() {
// @@protoc_insertion_point(field_mutable_map:xla.HloScheduleProto.sequences)
return sequences_.MutableMap();
}
// -------------------------------------------------------------------
// HloModuleProto
// string name = 1;
inline void HloModuleProto::clear_name() {
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloModuleProto::name() const {
// @@protoc_insertion_point(field_get:xla.HloModuleProto.name)
return name_.Get();
}
inline void HloModuleProto::set_name(const ::std::string& value) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloModuleProto.name)
}
#if LANG_CXX11
inline void HloModuleProto::set_name(::std::string&& value) {
name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloModuleProto.name)
}
#endif
inline void HloModuleProto::set_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloModuleProto.name)
}
inline void HloModuleProto::set_name(const char* value,
size_t size) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloModuleProto.name)
}
inline ::std::string* HloModuleProto::mutable_name() {
// @@protoc_insertion_point(field_mutable:xla.HloModuleProto.name)
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloModuleProto::release_name() {
// @@protoc_insertion_point(field_release:xla.HloModuleProto.name)
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloModuleProto::set_allocated_name(::std::string* name) {
if (name != NULL) {
} else {
}
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloModuleProto.name)
}
inline ::std::string* HloModuleProto::unsafe_arena_release_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloModuleProto.name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloModuleProto::unsafe_arena_set_allocated_name(
::std::string* name) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (name != NULL) {
} else {
}
name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloModuleProto.name)
}
// string entry_computation_name = 2;
inline void HloModuleProto::clear_entry_computation_name() {
entry_computation_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloModuleProto::entry_computation_name() const {
// @@protoc_insertion_point(field_get:xla.HloModuleProto.entry_computation_name)
return entry_computation_name_.Get();
}
inline void HloModuleProto::set_entry_computation_name(const ::std::string& value) {
entry_computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloModuleProto.entry_computation_name)
}
#if LANG_CXX11
inline void HloModuleProto::set_entry_computation_name(::std::string&& value) {
entry_computation_name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloModuleProto.entry_computation_name)
}
#endif
inline void HloModuleProto::set_entry_computation_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
entry_computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloModuleProto.entry_computation_name)
}
inline void HloModuleProto::set_entry_computation_name(const char* value,
size_t size) {
entry_computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloModuleProto.entry_computation_name)
}
inline ::std::string* HloModuleProto::mutable_entry_computation_name() {
// @@protoc_insertion_point(field_mutable:xla.HloModuleProto.entry_computation_name)
return entry_computation_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloModuleProto::release_entry_computation_name() {
// @@protoc_insertion_point(field_release:xla.HloModuleProto.entry_computation_name)
return entry_computation_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloModuleProto::set_allocated_entry_computation_name(::std::string* entry_computation_name) {
if (entry_computation_name != NULL) {
} else {
}
entry_computation_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entry_computation_name,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloModuleProto.entry_computation_name)
}
inline ::std::string* HloModuleProto::unsafe_arena_release_entry_computation_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloModuleProto.entry_computation_name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return entry_computation_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloModuleProto::unsafe_arena_set_allocated_entry_computation_name(
::std::string* entry_computation_name) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (entry_computation_name != NULL) {
} else {
}
entry_computation_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
entry_computation_name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloModuleProto.entry_computation_name)
}
// int64 entry_computation_id = 6;
inline void HloModuleProto::clear_entry_computation_id() {
entry_computation_id_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloModuleProto::entry_computation_id() const {
// @@protoc_insertion_point(field_get:xla.HloModuleProto.entry_computation_id)
return entry_computation_id_;
}
inline void HloModuleProto::set_entry_computation_id(::google::protobuf::int64 value) {
entry_computation_id_ = value;
// @@protoc_insertion_point(field_set:xla.HloModuleProto.entry_computation_id)
}
// repeated .xla.HloComputationProto computations = 3;
inline int HloModuleProto::computations_size() const {
return computations_.size();
}
inline void HloModuleProto::clear_computations() {
computations_.Clear();
}
inline ::xla::HloComputationProto* HloModuleProto::mutable_computations(int index) {
// @@protoc_insertion_point(field_mutable:xla.HloModuleProto.computations)
return computations_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::HloComputationProto >*
HloModuleProto::mutable_computations() {
// @@protoc_insertion_point(field_mutable_list:xla.HloModuleProto.computations)
return &computations_;
}
inline const ::xla::HloComputationProto& HloModuleProto::computations(int index) const {
// @@protoc_insertion_point(field_get:xla.HloModuleProto.computations)
return computations_.Get(index);
}
inline ::xla::HloComputationProto* HloModuleProto::add_computations() {
// @@protoc_insertion_point(field_add:xla.HloModuleProto.computations)
return computations_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::HloComputationProto >&
HloModuleProto::computations() const {
// @@protoc_insertion_point(field_list:xla.HloModuleProto.computations)
return computations_;
}
// .xla.ProgramShape program_shape = 4;
inline bool HloModuleProto::has_program_shape() const {
return this != internal_default_instance() && program_shape_ != NULL;
}
inline const ::xla::ProgramShape& HloModuleProto::_internal_program_shape() const {
return *program_shape_;
}
inline const ::xla::ProgramShape& HloModuleProto::program_shape() const {
const ::xla::ProgramShape* p = program_shape_;
// @@protoc_insertion_point(field_get:xla.HloModuleProto.program_shape)
return p != NULL ? *p : *reinterpret_cast<const ::xla::ProgramShape*>(
&::xla::_ProgramShape_default_instance_);
}
inline ::xla::ProgramShape* HloModuleProto::release_program_shape() {
// @@protoc_insertion_point(field_release:xla.HloModuleProto.program_shape)
::xla::ProgramShape* temp = program_shape_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
program_shape_ = NULL;
return temp;
}
inline ::xla::ProgramShape* HloModuleProto::unsafe_arena_release_program_shape() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloModuleProto.program_shape)
::xla::ProgramShape* temp = program_shape_;
program_shape_ = NULL;
return temp;
}
inline ::xla::ProgramShape* HloModuleProto::mutable_program_shape() {
if (program_shape_ == NULL) {
auto* p = CreateMaybeMessage<::xla::ProgramShape>(GetArenaNoVirtual());
program_shape_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloModuleProto.program_shape)
return program_shape_;
}
inline void HloModuleProto::set_allocated_program_shape(::xla::ProgramShape* program_shape) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(program_shape_);
}
if (program_shape) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(program_shape)->GetArena();
if (message_arena != submessage_arena) {
program_shape = ::google::protobuf::internal::GetOwnedMessage(
message_arena, program_shape, submessage_arena);
}
} else {
}
program_shape_ = program_shape;
// @@protoc_insertion_point(field_set_allocated:xla.HloModuleProto.program_shape)
}
// int64 id = 5;
inline void HloModuleProto::clear_id() {
id_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HloModuleProto::id() const {
// @@protoc_insertion_point(field_get:xla.HloModuleProto.id)
return id_;
}
inline void HloModuleProto::set_id(::google::protobuf::int64 value) {
id_ = value;
// @@protoc_insertion_point(field_set:xla.HloModuleProto.id)
}
// .xla.HloScheduleProto schedule = 7;
inline bool HloModuleProto::has_schedule() const {
return this != internal_default_instance() && schedule_ != NULL;
}
inline void HloModuleProto::clear_schedule() {
if (GetArenaNoVirtual() == NULL && schedule_ != NULL) {
delete schedule_;
}
schedule_ = NULL;
}
inline const ::xla::HloScheduleProto& HloModuleProto::_internal_schedule() const {
return *schedule_;
}
inline const ::xla::HloScheduleProto& HloModuleProto::schedule() const {
const ::xla::HloScheduleProto* p = schedule_;
// @@protoc_insertion_point(field_get:xla.HloModuleProto.schedule)
return p != NULL ? *p : *reinterpret_cast<const ::xla::HloScheduleProto*>(
&::xla::_HloScheduleProto_default_instance_);
}
inline ::xla::HloScheduleProto* HloModuleProto::release_schedule() {
// @@protoc_insertion_point(field_release:xla.HloModuleProto.schedule)
::xla::HloScheduleProto* temp = schedule_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
schedule_ = NULL;
return temp;
}
inline ::xla::HloScheduleProto* HloModuleProto::unsafe_arena_release_schedule() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloModuleProto.schedule)
::xla::HloScheduleProto* temp = schedule_;
schedule_ = NULL;
return temp;
}
inline ::xla::HloScheduleProto* HloModuleProto::mutable_schedule() {
if (schedule_ == NULL) {
auto* p = CreateMaybeMessage<::xla::HloScheduleProto>(GetArenaNoVirtual());
schedule_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloModuleProto.schedule)
return schedule_;
}
inline void HloModuleProto::set_allocated_schedule(::xla::HloScheduleProto* schedule) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete schedule_;
}
if (schedule) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(schedule);
if (message_arena != submessage_arena) {
schedule = ::google::protobuf::internal::GetOwnedMessage(
message_arena, schedule, submessage_arena);
}
} else {
}
schedule_ = schedule;
// @@protoc_insertion_point(field_set_allocated:xla.HloModuleProto.schedule)
}
// -------------------------------------------------------------------
// LogicalBufferProto_Location
// string computation_name = 1;
inline void LogicalBufferProto_Location::clear_computation_name() {
computation_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& LogicalBufferProto_Location::computation_name() const {
// @@protoc_insertion_point(field_get:xla.LogicalBufferProto.Location.computation_name)
return computation_name_.Get();
}
inline void LogicalBufferProto_Location::set_computation_name(const ::std::string& value) {
computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.LogicalBufferProto.Location.computation_name)
}
#if LANG_CXX11
inline void LogicalBufferProto_Location::set_computation_name(::std::string&& value) {
computation_name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.LogicalBufferProto.Location.computation_name)
}
#endif
inline void LogicalBufferProto_Location::set_computation_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.LogicalBufferProto.Location.computation_name)
}
inline void LogicalBufferProto_Location::set_computation_name(const char* value,
size_t size) {
computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.LogicalBufferProto.Location.computation_name)
}
inline ::std::string* LogicalBufferProto_Location::mutable_computation_name() {
// @@protoc_insertion_point(field_mutable:xla.LogicalBufferProto.Location.computation_name)
return computation_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* LogicalBufferProto_Location::release_computation_name() {
// @@protoc_insertion_point(field_release:xla.LogicalBufferProto.Location.computation_name)
return computation_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void LogicalBufferProto_Location::set_allocated_computation_name(::std::string* computation_name) {
if (computation_name != NULL) {
} else {
}
computation_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), computation_name,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.LogicalBufferProto.Location.computation_name)
}
inline ::std::string* LogicalBufferProto_Location::unsafe_arena_release_computation_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.LogicalBufferProto.Location.computation_name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return computation_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void LogicalBufferProto_Location::unsafe_arena_set_allocated_computation_name(
::std::string* computation_name) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (computation_name != NULL) {
} else {
}
computation_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
computation_name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.LogicalBufferProto.Location.computation_name)
}
// string instruction_name = 2;
inline void LogicalBufferProto_Location::clear_instruction_name() {
instruction_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& LogicalBufferProto_Location::instruction_name() const {
// @@protoc_insertion_point(field_get:xla.LogicalBufferProto.Location.instruction_name)
return instruction_name_.Get();
}
inline void LogicalBufferProto_Location::set_instruction_name(const ::std::string& value) {
instruction_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.LogicalBufferProto.Location.instruction_name)
}
#if LANG_CXX11
inline void LogicalBufferProto_Location::set_instruction_name(::std::string&& value) {
instruction_name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.LogicalBufferProto.Location.instruction_name)
}
#endif
inline void LogicalBufferProto_Location::set_instruction_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
instruction_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.LogicalBufferProto.Location.instruction_name)
}
inline void LogicalBufferProto_Location::set_instruction_name(const char* value,
size_t size) {
instruction_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.LogicalBufferProto.Location.instruction_name)
}
inline ::std::string* LogicalBufferProto_Location::mutable_instruction_name() {
// @@protoc_insertion_point(field_mutable:xla.LogicalBufferProto.Location.instruction_name)
return instruction_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* LogicalBufferProto_Location::release_instruction_name() {
// @@protoc_insertion_point(field_release:xla.LogicalBufferProto.Location.instruction_name)
return instruction_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void LogicalBufferProto_Location::set_allocated_instruction_name(::std::string* instruction_name) {
if (instruction_name != NULL) {
} else {
}
instruction_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instruction_name,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.LogicalBufferProto.Location.instruction_name)
}
inline ::std::string* LogicalBufferProto_Location::unsafe_arena_release_instruction_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.LogicalBufferProto.Location.instruction_name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return instruction_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void LogicalBufferProto_Location::unsafe_arena_set_allocated_instruction_name(
::std::string* instruction_name) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (instruction_name != NULL) {
} else {
}
instruction_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
instruction_name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.LogicalBufferProto.Location.instruction_name)
}
// repeated int64 shape_index = 3;
inline int LogicalBufferProto_Location::shape_index_size() const {
return shape_index_.size();
}
inline void LogicalBufferProto_Location::clear_shape_index() {
shape_index_.Clear();
}
inline ::google::protobuf::int64 LogicalBufferProto_Location::shape_index(int index) const {
// @@protoc_insertion_point(field_get:xla.LogicalBufferProto.Location.shape_index)
return shape_index_.Get(index);
}
inline void LogicalBufferProto_Location::set_shape_index(int index, ::google::protobuf::int64 value) {
shape_index_.Set(index, value);
// @@protoc_insertion_point(field_set:xla.LogicalBufferProto.Location.shape_index)
}
inline void LogicalBufferProto_Location::add_shape_index(::google::protobuf::int64 value) {
shape_index_.Add(value);
// @@protoc_insertion_point(field_add:xla.LogicalBufferProto.Location.shape_index)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
LogicalBufferProto_Location::shape_index() const {
// @@protoc_insertion_point(field_list:xla.LogicalBufferProto.Location.shape_index)
return shape_index_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
LogicalBufferProto_Location::mutable_shape_index() {
// @@protoc_insertion_point(field_mutable_list:xla.LogicalBufferProto.Location.shape_index)
return &shape_index_;
}
// -------------------------------------------------------------------
// LogicalBufferProto
// int64 id = 1;
inline void LogicalBufferProto::clear_id() {
id_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 LogicalBufferProto::id() const {
// @@protoc_insertion_point(field_get:xla.LogicalBufferProto.id)
return id_;
}
inline void LogicalBufferProto::set_id(::google::protobuf::int64 value) {
id_ = value;
// @@protoc_insertion_point(field_set:xla.LogicalBufferProto.id)
}
// int64 size = 2;
inline void LogicalBufferProto::clear_size() {
size_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 LogicalBufferProto::size() const {
// @@protoc_insertion_point(field_get:xla.LogicalBufferProto.size)
return size_;
}
inline void LogicalBufferProto::set_size(::google::protobuf::int64 value) {
size_ = value;
// @@protoc_insertion_point(field_set:xla.LogicalBufferProto.size)
}
// .xla.LogicalBufferProto.Location defined_at = 3;
inline bool LogicalBufferProto::has_defined_at() const {
return this != internal_default_instance() && defined_at_ != NULL;
}
inline void LogicalBufferProto::clear_defined_at() {
if (GetArenaNoVirtual() == NULL && defined_at_ != NULL) {
delete defined_at_;
}
defined_at_ = NULL;
}
inline const ::xla::LogicalBufferProto_Location& LogicalBufferProto::_internal_defined_at() const {
return *defined_at_;
}
inline const ::xla::LogicalBufferProto_Location& LogicalBufferProto::defined_at() const {
const ::xla::LogicalBufferProto_Location* p = defined_at_;
// @@protoc_insertion_point(field_get:xla.LogicalBufferProto.defined_at)
return p != NULL ? *p : *reinterpret_cast<const ::xla::LogicalBufferProto_Location*>(
&::xla::_LogicalBufferProto_Location_default_instance_);
}
inline ::xla::LogicalBufferProto_Location* LogicalBufferProto::release_defined_at() {
// @@protoc_insertion_point(field_release:xla.LogicalBufferProto.defined_at)
::xla::LogicalBufferProto_Location* temp = defined_at_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
defined_at_ = NULL;
return temp;
}
inline ::xla::LogicalBufferProto_Location* LogicalBufferProto::unsafe_arena_release_defined_at() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.LogicalBufferProto.defined_at)
::xla::LogicalBufferProto_Location* temp = defined_at_;
defined_at_ = NULL;
return temp;
}
inline ::xla::LogicalBufferProto_Location* LogicalBufferProto::mutable_defined_at() {
if (defined_at_ == NULL) {
auto* p = CreateMaybeMessage<::xla::LogicalBufferProto_Location>(GetArenaNoVirtual());
defined_at_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.LogicalBufferProto.defined_at)
return defined_at_;
}
inline void LogicalBufferProto::set_allocated_defined_at(::xla::LogicalBufferProto_Location* defined_at) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete defined_at_;
}
if (defined_at) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(defined_at);
if (message_arena != submessage_arena) {
defined_at = ::google::protobuf::internal::GetOwnedMessage(
message_arena, defined_at, submessage_arena);
}
} else {
}
defined_at_ = defined_at;
// @@protoc_insertion_point(field_set_allocated:xla.LogicalBufferProto.defined_at)
}
// int64 color = 4;
inline void LogicalBufferProto::clear_color() {
color_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 LogicalBufferProto::color() const {
// @@protoc_insertion_point(field_get:xla.LogicalBufferProto.color)
return color_;
}
inline void LogicalBufferProto::set_color(::google::protobuf::int64 value) {
color_ = value;
// @@protoc_insertion_point(field_set:xla.LogicalBufferProto.color)
}
// -------------------------------------------------------------------
// BufferAllocationProto_Assigned
// int64 logical_buffer_id = 1;
inline void BufferAllocationProto_Assigned::clear_logical_buffer_id() {
logical_buffer_id_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 BufferAllocationProto_Assigned::logical_buffer_id() const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.Assigned.logical_buffer_id)
return logical_buffer_id_;
}
inline void BufferAllocationProto_Assigned::set_logical_buffer_id(::google::protobuf::int64 value) {
logical_buffer_id_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.Assigned.logical_buffer_id)
}
// int64 offset = 2;
inline void BufferAllocationProto_Assigned::clear_offset() {
offset_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 BufferAllocationProto_Assigned::offset() const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.Assigned.offset)
return offset_;
}
inline void BufferAllocationProto_Assigned::set_offset(::google::protobuf::int64 value) {
offset_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.Assigned.offset)
}
// int64 size = 3;
inline void BufferAllocationProto_Assigned::clear_size() {
size_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 BufferAllocationProto_Assigned::size() const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.Assigned.size)
return size_;
}
inline void BufferAllocationProto_Assigned::set_size(::google::protobuf::int64 value) {
size_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.Assigned.size)
}
// -------------------------------------------------------------------
// BufferAllocationProto
// int64 index = 1;
inline void BufferAllocationProto::clear_index() {
index_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 BufferAllocationProto::index() const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.index)
return index_;
}
inline void BufferAllocationProto::set_index(::google::protobuf::int64 value) {
index_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.index)
}
// int64 size = 2;
inline void BufferAllocationProto::clear_size() {
size_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 BufferAllocationProto::size() const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.size)
return size_;
}
inline void BufferAllocationProto::set_size(::google::protobuf::int64 value) {
size_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.size)
}
// bool is_thread_local = 3;
inline void BufferAllocationProto::clear_is_thread_local() {
is_thread_local_ = false;
}
inline bool BufferAllocationProto::is_thread_local() const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.is_thread_local)
return is_thread_local_;
}
inline void BufferAllocationProto::set_is_thread_local(bool value) {
is_thread_local_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.is_thread_local)
}
// bool is_tuple = 11;
inline void BufferAllocationProto::clear_is_tuple() {
is_tuple_ = false;
}
inline bool BufferAllocationProto::is_tuple() const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.is_tuple)
return is_tuple_;
}
inline void BufferAllocationProto::set_is_tuple(bool value) {
is_tuple_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.is_tuple)
}
// bool is_entry_computation_parameter = 5;
inline void BufferAllocationProto::clear_is_entry_computation_parameter() {
is_entry_computation_parameter_ = false;
}
inline bool BufferAllocationProto::is_entry_computation_parameter() const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.is_entry_computation_parameter)
return is_entry_computation_parameter_;
}
inline void BufferAllocationProto::set_is_entry_computation_parameter(bool value) {
is_entry_computation_parameter_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.is_entry_computation_parameter)
}
// bool is_constant = 12;
inline void BufferAllocationProto::clear_is_constant() {
is_constant_ = false;
}
inline bool BufferAllocationProto::is_constant() const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.is_constant)
return is_constant_;
}
inline void BufferAllocationProto::set_is_constant(bool value) {
is_constant_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.is_constant)
}
// int64 parameter_number = 6;
inline void BufferAllocationProto::clear_parameter_number() {
parameter_number_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 BufferAllocationProto::parameter_number() const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.parameter_number)
return parameter_number_;
}
inline void BufferAllocationProto::set_parameter_number(::google::protobuf::int64 value) {
parameter_number_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.parameter_number)
}
// repeated int64 parameter_shape_index = 10;
inline int BufferAllocationProto::parameter_shape_index_size() const {
return parameter_shape_index_.size();
}
inline void BufferAllocationProto::clear_parameter_shape_index() {
parameter_shape_index_.Clear();
}
inline ::google::protobuf::int64 BufferAllocationProto::parameter_shape_index(int index) const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.parameter_shape_index)
return parameter_shape_index_.Get(index);
}
inline void BufferAllocationProto::set_parameter_shape_index(int index, ::google::protobuf::int64 value) {
parameter_shape_index_.Set(index, value);
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.parameter_shape_index)
}
inline void BufferAllocationProto::add_parameter_shape_index(::google::protobuf::int64 value) {
parameter_shape_index_.Add(value);
// @@protoc_insertion_point(field_add:xla.BufferAllocationProto.parameter_shape_index)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
BufferAllocationProto::parameter_shape_index() const {
// @@protoc_insertion_point(field_list:xla.BufferAllocationProto.parameter_shape_index)
return parameter_shape_index_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
BufferAllocationProto::mutable_parameter_shape_index() {
// @@protoc_insertion_point(field_mutable_list:xla.BufferAllocationProto.parameter_shape_index)
return &parameter_shape_index_;
}
// bool maybe_live_out = 7;
inline void BufferAllocationProto::clear_maybe_live_out() {
maybe_live_out_ = false;
}
inline bool BufferAllocationProto::maybe_live_out() const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.maybe_live_out)
return maybe_live_out_;
}
inline void BufferAllocationProto::set_maybe_live_out(bool value) {
maybe_live_out_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.maybe_live_out)
}
// int64 color = 8;
inline void BufferAllocationProto::clear_color() {
color_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 BufferAllocationProto::color() const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.color)
return color_;
}
inline void BufferAllocationProto::set_color(::google::protobuf::int64 value) {
color_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAllocationProto.color)
}
// repeated .xla.BufferAllocationProto.Assigned assigned = 9;
inline int BufferAllocationProto::assigned_size() const {
return assigned_.size();
}
inline void BufferAllocationProto::clear_assigned() {
assigned_.Clear();
}
inline ::xla::BufferAllocationProto_Assigned* BufferAllocationProto::mutable_assigned(int index) {
// @@protoc_insertion_point(field_mutable:xla.BufferAllocationProto.assigned)
return assigned_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto_Assigned >*
BufferAllocationProto::mutable_assigned() {
// @@protoc_insertion_point(field_mutable_list:xla.BufferAllocationProto.assigned)
return &assigned_;
}
inline const ::xla::BufferAllocationProto_Assigned& BufferAllocationProto::assigned(int index) const {
// @@protoc_insertion_point(field_get:xla.BufferAllocationProto.assigned)
return assigned_.Get(index);
}
inline ::xla::BufferAllocationProto_Assigned* BufferAllocationProto::add_assigned() {
// @@protoc_insertion_point(field_add:xla.BufferAllocationProto.assigned)
return assigned_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto_Assigned >&
BufferAllocationProto::assigned() const {
// @@protoc_insertion_point(field_list:xla.BufferAllocationProto.assigned)
return assigned_;
}
// -------------------------------------------------------------------
// HeapSimulatorTrace_Event
// .xla.HeapSimulatorTrace.Event.Kind kind = 1;
inline void HeapSimulatorTrace_Event::clear_kind() {
kind_ = 0;
}
inline ::xla::HeapSimulatorTrace_Event_Kind HeapSimulatorTrace_Event::kind() const {
// @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.Event.kind)
return static_cast< ::xla::HeapSimulatorTrace_Event_Kind >(kind_);
}
inline void HeapSimulatorTrace_Event::set_kind(::xla::HeapSimulatorTrace_Event_Kind value) {
kind_ = value;
// @@protoc_insertion_point(field_set:xla.HeapSimulatorTrace.Event.kind)
}
// int64 buffer_id = 2;
inline void HeapSimulatorTrace_Event::clear_buffer_id() {
buffer_id_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HeapSimulatorTrace_Event::buffer_id() const {
// @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.Event.buffer_id)
return buffer_id_;
}
inline void HeapSimulatorTrace_Event::set_buffer_id(::google::protobuf::int64 value) {
buffer_id_ = value;
// @@protoc_insertion_point(field_set:xla.HeapSimulatorTrace.Event.buffer_id)
}
// string computation_name = 3;
inline void HeapSimulatorTrace_Event::clear_computation_name() {
computation_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HeapSimulatorTrace_Event::computation_name() const {
// @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.Event.computation_name)
return computation_name_.Get();
}
inline void HeapSimulatorTrace_Event::set_computation_name(const ::std::string& value) {
computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HeapSimulatorTrace.Event.computation_name)
}
#if LANG_CXX11
inline void HeapSimulatorTrace_Event::set_computation_name(::std::string&& value) {
computation_name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HeapSimulatorTrace.Event.computation_name)
}
#endif
inline void HeapSimulatorTrace_Event::set_computation_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HeapSimulatorTrace.Event.computation_name)
}
inline void HeapSimulatorTrace_Event::set_computation_name(const char* value,
size_t size) {
computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HeapSimulatorTrace.Event.computation_name)
}
inline ::std::string* HeapSimulatorTrace_Event::mutable_computation_name() {
// @@protoc_insertion_point(field_mutable:xla.HeapSimulatorTrace.Event.computation_name)
return computation_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HeapSimulatorTrace_Event::release_computation_name() {
// @@protoc_insertion_point(field_release:xla.HeapSimulatorTrace.Event.computation_name)
return computation_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HeapSimulatorTrace_Event::set_allocated_computation_name(::std::string* computation_name) {
if (computation_name != NULL) {
} else {
}
computation_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), computation_name,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HeapSimulatorTrace.Event.computation_name)
}
inline ::std::string* HeapSimulatorTrace_Event::unsafe_arena_release_computation_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HeapSimulatorTrace.Event.computation_name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return computation_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HeapSimulatorTrace_Event::unsafe_arena_set_allocated_computation_name(
::std::string* computation_name) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (computation_name != NULL) {
} else {
}
computation_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
computation_name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HeapSimulatorTrace.Event.computation_name)
}
// string instruction_name = 4;
inline void HeapSimulatorTrace_Event::clear_instruction_name() {
instruction_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HeapSimulatorTrace_Event::instruction_name() const {
// @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.Event.instruction_name)
return instruction_name_.Get();
}
inline void HeapSimulatorTrace_Event::set_instruction_name(const ::std::string& value) {
instruction_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HeapSimulatorTrace.Event.instruction_name)
}
#if LANG_CXX11
inline void HeapSimulatorTrace_Event::set_instruction_name(::std::string&& value) {
instruction_name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HeapSimulatorTrace.Event.instruction_name)
}
#endif
inline void HeapSimulatorTrace_Event::set_instruction_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
instruction_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HeapSimulatorTrace.Event.instruction_name)
}
inline void HeapSimulatorTrace_Event::set_instruction_name(const char* value,
size_t size) {
instruction_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HeapSimulatorTrace.Event.instruction_name)
}
inline ::std::string* HeapSimulatorTrace_Event::mutable_instruction_name() {
// @@protoc_insertion_point(field_mutable:xla.HeapSimulatorTrace.Event.instruction_name)
return instruction_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HeapSimulatorTrace_Event::release_instruction_name() {
// @@protoc_insertion_point(field_release:xla.HeapSimulatorTrace.Event.instruction_name)
return instruction_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HeapSimulatorTrace_Event::set_allocated_instruction_name(::std::string* instruction_name) {
if (instruction_name != NULL) {
} else {
}
instruction_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instruction_name,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HeapSimulatorTrace.Event.instruction_name)
}
inline ::std::string* HeapSimulatorTrace_Event::unsafe_arena_release_instruction_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HeapSimulatorTrace.Event.instruction_name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return instruction_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HeapSimulatorTrace_Event::unsafe_arena_set_allocated_instruction_name(
::std::string* instruction_name) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (instruction_name != NULL) {
} else {
}
instruction_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
instruction_name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HeapSimulatorTrace.Event.instruction_name)
}
// int64 share_with_canonical_id = 5;
inline void HeapSimulatorTrace_Event::clear_share_with_canonical_id() {
share_with_canonical_id_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 HeapSimulatorTrace_Event::share_with_canonical_id() const {
// @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.Event.share_with_canonical_id)
return share_with_canonical_id_;
}
inline void HeapSimulatorTrace_Event::set_share_with_canonical_id(::google::protobuf::int64 value) {
share_with_canonical_id_ = value;
// @@protoc_insertion_point(field_set:xla.HeapSimulatorTrace.Event.share_with_canonical_id)
}
// -------------------------------------------------------------------
// HeapSimulatorTrace
// repeated .xla.HeapSimulatorTrace.Event events = 1;
inline int HeapSimulatorTrace::events_size() const {
return events_.size();
}
inline void HeapSimulatorTrace::clear_events() {
events_.Clear();
}
inline ::xla::HeapSimulatorTrace_Event* HeapSimulatorTrace::mutable_events(int index) {
// @@protoc_insertion_point(field_mutable:xla.HeapSimulatorTrace.events)
return events_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace_Event >*
HeapSimulatorTrace::mutable_events() {
// @@protoc_insertion_point(field_mutable_list:xla.HeapSimulatorTrace.events)
return &events_;
}
inline const ::xla::HeapSimulatorTrace_Event& HeapSimulatorTrace::events(int index) const {
// @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.events)
return events_.Get(index);
}
inline ::xla::HeapSimulatorTrace_Event* HeapSimulatorTrace::add_events() {
// @@protoc_insertion_point(field_add:xla.HeapSimulatorTrace.events)
return events_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace_Event >&
HeapSimulatorTrace::events() const {
// @@protoc_insertion_point(field_list:xla.HeapSimulatorTrace.events)
return events_;
}
// bool whole_module_simulation = 2;
inline void HeapSimulatorTrace::clear_whole_module_simulation() {
whole_module_simulation_ = false;
}
inline bool HeapSimulatorTrace::whole_module_simulation() const {
// @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.whole_module_simulation)
return whole_module_simulation_;
}
inline void HeapSimulatorTrace::set_whole_module_simulation(bool value) {
whole_module_simulation_ = value;
// @@protoc_insertion_point(field_set:xla.HeapSimulatorTrace.whole_module_simulation)
}
// -------------------------------------------------------------------
// HloModuleGroupProto
// string name = 1;
inline void HloModuleGroupProto::clear_name() {
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloModuleGroupProto::name() const {
// @@protoc_insertion_point(field_get:xla.HloModuleGroupProto.name)
return name_.Get();
}
inline void HloModuleGroupProto::set_name(const ::std::string& value) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloModuleGroupProto.name)
}
#if LANG_CXX11
inline void HloModuleGroupProto::set_name(::std::string&& value) {
name_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloModuleGroupProto.name)
}
#endif
inline void HloModuleGroupProto::set_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloModuleGroupProto.name)
}
inline void HloModuleGroupProto::set_name(const char* value,
size_t size) {
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloModuleGroupProto.name)
}
inline ::std::string* HloModuleGroupProto::mutable_name() {
// @@protoc_insertion_point(field_mutable:xla.HloModuleGroupProto.name)
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloModuleGroupProto::release_name() {
// @@protoc_insertion_point(field_release:xla.HloModuleGroupProto.name)
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloModuleGroupProto::set_allocated_name(::std::string* name) {
if (name != NULL) {
} else {
}
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloModuleGroupProto.name)
}
inline ::std::string* HloModuleGroupProto::unsafe_arena_release_name() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloModuleGroupProto.name)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloModuleGroupProto::unsafe_arena_set_allocated_name(
::std::string* name) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (name != NULL) {
} else {
}
name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloModuleGroupProto.name)
}
// repeated .xla.HloModuleProto hlo_modules = 2;
inline int HloModuleGroupProto::hlo_modules_size() const {
return hlo_modules_.size();
}
inline void HloModuleGroupProto::clear_hlo_modules() {
hlo_modules_.Clear();
}
inline ::xla::HloModuleProto* HloModuleGroupProto::mutable_hlo_modules(int index) {
// @@protoc_insertion_point(field_mutable:xla.HloModuleGroupProto.hlo_modules)
return hlo_modules_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::HloModuleProto >*
HloModuleGroupProto::mutable_hlo_modules() {
// @@protoc_insertion_point(field_mutable_list:xla.HloModuleGroupProto.hlo_modules)
return &hlo_modules_;
}
inline const ::xla::HloModuleProto& HloModuleGroupProto::hlo_modules(int index) const {
// @@protoc_insertion_point(field_get:xla.HloModuleGroupProto.hlo_modules)
return hlo_modules_.Get(index);
}
inline ::xla::HloModuleProto* HloModuleGroupProto::add_hlo_modules() {
// @@protoc_insertion_point(field_add:xla.HloModuleGroupProto.hlo_modules)
return hlo_modules_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::HloModuleProto >&
HloModuleGroupProto::hlo_modules() const {
// @@protoc_insertion_point(field_list:xla.HloModuleGroupProto.hlo_modules)
return hlo_modules_;
}
// -------------------------------------------------------------------
// BufferAssignmentProto_BufferAlias
// int64 source_buffer_id = 1;
inline void BufferAssignmentProto_BufferAlias::clear_source_buffer_id() {
source_buffer_id_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 BufferAssignmentProto_BufferAlias::source_buffer_id() const {
// @@protoc_insertion_point(field_get:xla.BufferAssignmentProto.BufferAlias.source_buffer_id)
return source_buffer_id_;
}
inline void BufferAssignmentProto_BufferAlias::set_source_buffer_id(::google::protobuf::int64 value) {
source_buffer_id_ = value;
// @@protoc_insertion_point(field_set:xla.BufferAssignmentProto.BufferAlias.source_buffer_id)
}
// .xla.LogicalBufferProto.Location location = 2;
inline bool BufferAssignmentProto_BufferAlias::has_location() const {
return this != internal_default_instance() && location_ != NULL;
}
inline void BufferAssignmentProto_BufferAlias::clear_location() {
if (GetArenaNoVirtual() == NULL && location_ != NULL) {
delete location_;
}
location_ = NULL;
}
inline const ::xla::LogicalBufferProto_Location& BufferAssignmentProto_BufferAlias::_internal_location() const {
return *location_;
}
inline const ::xla::LogicalBufferProto_Location& BufferAssignmentProto_BufferAlias::location() const {
const ::xla::LogicalBufferProto_Location* p = location_;
// @@protoc_insertion_point(field_get:xla.BufferAssignmentProto.BufferAlias.location)
return p != NULL ? *p : *reinterpret_cast<const ::xla::LogicalBufferProto_Location*>(
&::xla::_LogicalBufferProto_Location_default_instance_);
}
inline ::xla::LogicalBufferProto_Location* BufferAssignmentProto_BufferAlias::release_location() {
// @@protoc_insertion_point(field_release:xla.BufferAssignmentProto.BufferAlias.location)
::xla::LogicalBufferProto_Location* temp = location_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
location_ = NULL;
return temp;
}
inline ::xla::LogicalBufferProto_Location* BufferAssignmentProto_BufferAlias::unsafe_arena_release_location() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.BufferAssignmentProto.BufferAlias.location)
::xla::LogicalBufferProto_Location* temp = location_;
location_ = NULL;
return temp;
}
inline ::xla::LogicalBufferProto_Location* BufferAssignmentProto_BufferAlias::mutable_location() {
if (location_ == NULL) {
auto* p = CreateMaybeMessage<::xla::LogicalBufferProto_Location>(GetArenaNoVirtual());
location_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.BufferAssignmentProto.BufferAlias.location)
return location_;
}
inline void BufferAssignmentProto_BufferAlias::set_allocated_location(::xla::LogicalBufferProto_Location* location) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete location_;
}
if (location) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(location);
if (message_arena != submessage_arena) {
location = ::google::protobuf::internal::GetOwnedMessage(
message_arena, location, submessage_arena);
}
} else {
}
location_ = location;
// @@protoc_insertion_point(field_set_allocated:xla.BufferAssignmentProto.BufferAlias.location)
}
// -------------------------------------------------------------------
// BufferAssignmentProto
// repeated .xla.LogicalBufferProto logical_buffers = 1;
inline int BufferAssignmentProto::logical_buffers_size() const {
return logical_buffers_.size();
}
inline void BufferAssignmentProto::clear_logical_buffers() {
logical_buffers_.Clear();
}
inline ::xla::LogicalBufferProto* BufferAssignmentProto::mutable_logical_buffers(int index) {
// @@protoc_insertion_point(field_mutable:xla.BufferAssignmentProto.logical_buffers)
return logical_buffers_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::LogicalBufferProto >*
BufferAssignmentProto::mutable_logical_buffers() {
// @@protoc_insertion_point(field_mutable_list:xla.BufferAssignmentProto.logical_buffers)
return &logical_buffers_;
}
inline const ::xla::LogicalBufferProto& BufferAssignmentProto::logical_buffers(int index) const {
// @@protoc_insertion_point(field_get:xla.BufferAssignmentProto.logical_buffers)
return logical_buffers_.Get(index);
}
inline ::xla::LogicalBufferProto* BufferAssignmentProto::add_logical_buffers() {
// @@protoc_insertion_point(field_add:xla.BufferAssignmentProto.logical_buffers)
return logical_buffers_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::LogicalBufferProto >&
BufferAssignmentProto::logical_buffers() const {
// @@protoc_insertion_point(field_list:xla.BufferAssignmentProto.logical_buffers)
return logical_buffers_;
}
// repeated .xla.BufferAssignmentProto.BufferAlias buffer_aliases = 2;
inline int BufferAssignmentProto::buffer_aliases_size() const {
return buffer_aliases_.size();
}
inline void BufferAssignmentProto::clear_buffer_aliases() {
buffer_aliases_.Clear();
}
inline ::xla::BufferAssignmentProto_BufferAlias* BufferAssignmentProto::mutable_buffer_aliases(int index) {
// @@protoc_insertion_point(field_mutable:xla.BufferAssignmentProto.buffer_aliases)
return buffer_aliases_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::BufferAssignmentProto_BufferAlias >*
BufferAssignmentProto::mutable_buffer_aliases() {
// @@protoc_insertion_point(field_mutable_list:xla.BufferAssignmentProto.buffer_aliases)
return &buffer_aliases_;
}
inline const ::xla::BufferAssignmentProto_BufferAlias& BufferAssignmentProto::buffer_aliases(int index) const {
// @@protoc_insertion_point(field_get:xla.BufferAssignmentProto.buffer_aliases)
return buffer_aliases_.Get(index);
}
inline ::xla::BufferAssignmentProto_BufferAlias* BufferAssignmentProto::add_buffer_aliases() {
// @@protoc_insertion_point(field_add:xla.BufferAssignmentProto.buffer_aliases)
return buffer_aliases_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::BufferAssignmentProto_BufferAlias >&
BufferAssignmentProto::buffer_aliases() const {
// @@protoc_insertion_point(field_list:xla.BufferAssignmentProto.buffer_aliases)
return buffer_aliases_;
}
// repeated .xla.BufferAllocationProto buffer_allocations = 3;
inline int BufferAssignmentProto::buffer_allocations_size() const {
return buffer_allocations_.size();
}
inline void BufferAssignmentProto::clear_buffer_allocations() {
buffer_allocations_.Clear();
}
inline ::xla::BufferAllocationProto* BufferAssignmentProto::mutable_buffer_allocations(int index) {
// @@protoc_insertion_point(field_mutable:xla.BufferAssignmentProto.buffer_allocations)
return buffer_allocations_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto >*
BufferAssignmentProto::mutable_buffer_allocations() {
// @@protoc_insertion_point(field_mutable_list:xla.BufferAssignmentProto.buffer_allocations)
return &buffer_allocations_;
}
inline const ::xla::BufferAllocationProto& BufferAssignmentProto::buffer_allocations(int index) const {
// @@protoc_insertion_point(field_get:xla.BufferAssignmentProto.buffer_allocations)
return buffer_allocations_.Get(index);
}
inline ::xla::BufferAllocationProto* BufferAssignmentProto::add_buffer_allocations() {
// @@protoc_insertion_point(field_add:xla.BufferAssignmentProto.buffer_allocations)
return buffer_allocations_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto >&
BufferAssignmentProto::buffer_allocations() const {
// @@protoc_insertion_point(field_list:xla.BufferAssignmentProto.buffer_allocations)
return buffer_allocations_;
}
// repeated .xla.HeapSimulatorTrace heap_simulator_traces = 4;
inline int BufferAssignmentProto::heap_simulator_traces_size() const {
return heap_simulator_traces_.size();
}
inline void BufferAssignmentProto::clear_heap_simulator_traces() {
heap_simulator_traces_.Clear();
}
inline ::xla::HeapSimulatorTrace* BufferAssignmentProto::mutable_heap_simulator_traces(int index) {
// @@protoc_insertion_point(field_mutable:xla.BufferAssignmentProto.heap_simulator_traces)
return heap_simulator_traces_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace >*
BufferAssignmentProto::mutable_heap_simulator_traces() {
// @@protoc_insertion_point(field_mutable_list:xla.BufferAssignmentProto.heap_simulator_traces)
return &heap_simulator_traces_;
}
inline const ::xla::HeapSimulatorTrace& BufferAssignmentProto::heap_simulator_traces(int index) const {
// @@protoc_insertion_point(field_get:xla.BufferAssignmentProto.heap_simulator_traces)
return heap_simulator_traces_.Get(index);
}
inline ::xla::HeapSimulatorTrace* BufferAssignmentProto::add_heap_simulator_traces() {
// @@protoc_insertion_point(field_add:xla.BufferAssignmentProto.heap_simulator_traces)
return heap_simulator_traces_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace >&
BufferAssignmentProto::heap_simulator_traces() const {
// @@protoc_insertion_point(field_list:xla.BufferAssignmentProto.heap_simulator_traces)
return heap_simulator_traces_;
}
// -------------------------------------------------------------------
// HloProto
// .xla.HloModuleProto hlo_module = 1;
inline bool HloProto::has_hlo_module() const {
return this != internal_default_instance() && hlo_module_ != NULL;
}
inline void HloProto::clear_hlo_module() {
if (GetArenaNoVirtual() == NULL && hlo_module_ != NULL) {
delete hlo_module_;
}
hlo_module_ = NULL;
}
inline const ::xla::HloModuleProto& HloProto::_internal_hlo_module() const {
return *hlo_module_;
}
inline const ::xla::HloModuleProto& HloProto::hlo_module() const {
const ::xla::HloModuleProto* p = hlo_module_;
// @@protoc_insertion_point(field_get:xla.HloProto.hlo_module)
return p != NULL ? *p : *reinterpret_cast<const ::xla::HloModuleProto*>(
&::xla::_HloModuleProto_default_instance_);
}
inline ::xla::HloModuleProto* HloProto::release_hlo_module() {
// @@protoc_insertion_point(field_release:xla.HloProto.hlo_module)
::xla::HloModuleProto* temp = hlo_module_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
hlo_module_ = NULL;
return temp;
}
inline ::xla::HloModuleProto* HloProto::unsafe_arena_release_hlo_module() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloProto.hlo_module)
::xla::HloModuleProto* temp = hlo_module_;
hlo_module_ = NULL;
return temp;
}
inline ::xla::HloModuleProto* HloProto::mutable_hlo_module() {
if (hlo_module_ == NULL) {
auto* p = CreateMaybeMessage<::xla::HloModuleProto>(GetArenaNoVirtual());
hlo_module_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloProto.hlo_module)
return hlo_module_;
}
inline void HloProto::set_allocated_hlo_module(::xla::HloModuleProto* hlo_module) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete hlo_module_;
}
if (hlo_module) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(hlo_module);
if (message_arena != submessage_arena) {
hlo_module = ::google::protobuf::internal::GetOwnedMessage(
message_arena, hlo_module, submessage_arena);
}
} else {
}
hlo_module_ = hlo_module;
// @@protoc_insertion_point(field_set_allocated:xla.HloProto.hlo_module)
}
// .xla.BufferAssignmentProto buffer_assignment = 3;
inline bool HloProto::has_buffer_assignment() const {
return this != internal_default_instance() && buffer_assignment_ != NULL;
}
inline void HloProto::clear_buffer_assignment() {
if (GetArenaNoVirtual() == NULL && buffer_assignment_ != NULL) {
delete buffer_assignment_;
}
buffer_assignment_ = NULL;
}
inline const ::xla::BufferAssignmentProto& HloProto::_internal_buffer_assignment() const {
return *buffer_assignment_;
}
inline const ::xla::BufferAssignmentProto& HloProto::buffer_assignment() const {
const ::xla::BufferAssignmentProto* p = buffer_assignment_;
// @@protoc_insertion_point(field_get:xla.HloProto.buffer_assignment)
return p != NULL ? *p : *reinterpret_cast<const ::xla::BufferAssignmentProto*>(
&::xla::_BufferAssignmentProto_default_instance_);
}
inline ::xla::BufferAssignmentProto* HloProto::release_buffer_assignment() {
// @@protoc_insertion_point(field_release:xla.HloProto.buffer_assignment)
::xla::BufferAssignmentProto* temp = buffer_assignment_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
buffer_assignment_ = NULL;
return temp;
}
inline ::xla::BufferAssignmentProto* HloProto::unsafe_arena_release_buffer_assignment() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloProto.buffer_assignment)
::xla::BufferAssignmentProto* temp = buffer_assignment_;
buffer_assignment_ = NULL;
return temp;
}
inline ::xla::BufferAssignmentProto* HloProto::mutable_buffer_assignment() {
if (buffer_assignment_ == NULL) {
auto* p = CreateMaybeMessage<::xla::BufferAssignmentProto>(GetArenaNoVirtual());
buffer_assignment_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloProto.buffer_assignment)
return buffer_assignment_;
}
inline void HloProto::set_allocated_buffer_assignment(::xla::BufferAssignmentProto* buffer_assignment) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete buffer_assignment_;
}
if (buffer_assignment) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(buffer_assignment);
if (message_arena != submessage_arena) {
buffer_assignment = ::google::protobuf::internal::GetOwnedMessage(
message_arena, buffer_assignment, submessage_arena);
}
} else {
}
buffer_assignment_ = buffer_assignment;
// @@protoc_insertion_point(field_set_allocated:xla.HloProto.buffer_assignment)
}
// -------------------------------------------------------------------
// HloSnapshot
// .xla.HloProto hlo = 1;
inline bool HloSnapshot::has_hlo() const {
return this != internal_default_instance() && hlo_ != NULL;
}
inline void HloSnapshot::clear_hlo() {
if (GetArenaNoVirtual() == NULL && hlo_ != NULL) {
delete hlo_;
}
hlo_ = NULL;
}
inline const ::xla::HloProto& HloSnapshot::_internal_hlo() const {
return *hlo_;
}
inline const ::xla::HloProto& HloSnapshot::hlo() const {
const ::xla::HloProto* p = hlo_;
// @@protoc_insertion_point(field_get:xla.HloSnapshot.hlo)
return p != NULL ? *p : *reinterpret_cast<const ::xla::HloProto*>(
&::xla::_HloProto_default_instance_);
}
inline ::xla::HloProto* HloSnapshot::release_hlo() {
// @@protoc_insertion_point(field_release:xla.HloSnapshot.hlo)
::xla::HloProto* temp = hlo_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
hlo_ = NULL;
return temp;
}
inline ::xla::HloProto* HloSnapshot::unsafe_arena_release_hlo() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloSnapshot.hlo)
::xla::HloProto* temp = hlo_;
hlo_ = NULL;
return temp;
}
inline ::xla::HloProto* HloSnapshot::mutable_hlo() {
if (hlo_ == NULL) {
auto* p = CreateMaybeMessage<::xla::HloProto>(GetArenaNoVirtual());
hlo_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloSnapshot.hlo)
return hlo_;
}
inline void HloSnapshot::set_allocated_hlo(::xla::HloProto* hlo) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete hlo_;
}
if (hlo) {
::google::protobuf::Arena* submessage_arena =
::google::protobuf::Arena::GetArena(hlo);
if (message_arena != submessage_arena) {
hlo = ::google::protobuf::internal::GetOwnedMessage(
message_arena, hlo, submessage_arena);
}
} else {
}
hlo_ = hlo;
// @@protoc_insertion_point(field_set_allocated:xla.HloSnapshot.hlo)
}
// repeated .xla.LiteralProto arguments = 2;
inline int HloSnapshot::arguments_size() const {
return arguments_.size();
}
inline ::xla::LiteralProto* HloSnapshot::mutable_arguments(int index) {
// @@protoc_insertion_point(field_mutable:xla.HloSnapshot.arguments)
return arguments_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >*
HloSnapshot::mutable_arguments() {
// @@protoc_insertion_point(field_mutable_list:xla.HloSnapshot.arguments)
return &arguments_;
}
inline const ::xla::LiteralProto& HloSnapshot::arguments(int index) const {
// @@protoc_insertion_point(field_get:xla.HloSnapshot.arguments)
return arguments_.Get(index);
}
inline ::xla::LiteralProto* HloSnapshot::add_arguments() {
// @@protoc_insertion_point(field_add:xla.HloSnapshot.arguments)
return arguments_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >&
HloSnapshot::arguments() const {
// @@protoc_insertion_point(field_list:xla.HloSnapshot.arguments)
return arguments_;
}
// .xla.LiteralProto result = 3;
inline bool HloSnapshot::has_result() const {
return this != internal_default_instance() && result_ != NULL;
}
inline const ::xla::LiteralProto& HloSnapshot::_internal_result() const {
return *result_;
}
inline const ::xla::LiteralProto& HloSnapshot::result() const {
const ::xla::LiteralProto* p = result_;
// @@protoc_insertion_point(field_get:xla.HloSnapshot.result)
return p != NULL ? *p : *reinterpret_cast<const ::xla::LiteralProto*>(
&::xla::_LiteralProto_default_instance_);
}
inline ::xla::LiteralProto* HloSnapshot::release_result() {
// @@protoc_insertion_point(field_release:xla.HloSnapshot.result)
::xla::LiteralProto* temp = result_;
if (GetArenaNoVirtual() != NULL) {
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
}
result_ = NULL;
return temp;
}
inline ::xla::LiteralProto* HloSnapshot::unsafe_arena_release_result() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloSnapshot.result)
::xla::LiteralProto* temp = result_;
result_ = NULL;
return temp;
}
inline ::xla::LiteralProto* HloSnapshot::mutable_result() {
if (result_ == NULL) {
auto* p = CreateMaybeMessage<::xla::LiteralProto>(GetArenaNoVirtual());
result_ = p;
}
// @@protoc_insertion_point(field_mutable:xla.HloSnapshot.result)
return result_;
}
inline void HloSnapshot::set_allocated_result(::xla::LiteralProto* result) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(result_);
}
if (result) {
::google::protobuf::Arena* submessage_arena =
reinterpret_cast<::google::protobuf::MessageLite*>(result)->GetArena();
if (message_arena != submessage_arena) {
result = ::google::protobuf::internal::GetOwnedMessage(
message_arena, result, submessage_arena);
}
} else {
}
result_ = result;
// @@protoc_insertion_point(field_set_allocated:xla.HloSnapshot.result)
}
// string execution_platform = 4;
inline void HloSnapshot::clear_execution_platform() {
execution_platform_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline const ::std::string& HloSnapshot::execution_platform() const {
// @@protoc_insertion_point(field_get:xla.HloSnapshot.execution_platform)
return execution_platform_.Get();
}
inline void HloSnapshot::set_execution_platform(const ::std::string& value) {
execution_platform_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:xla.HloSnapshot.execution_platform)
}
#if LANG_CXX11
inline void HloSnapshot::set_execution_platform(::std::string&& value) {
execution_platform_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:xla.HloSnapshot.execution_platform)
}
#endif
inline void HloSnapshot::set_execution_platform(const char* value) {
GOOGLE_DCHECK(value != NULL);
execution_platform_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:xla.HloSnapshot.execution_platform)
}
inline void HloSnapshot::set_execution_platform(const char* value,
size_t size) {
execution_platform_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:xla.HloSnapshot.execution_platform)
}
inline ::std::string* HloSnapshot::mutable_execution_platform() {
// @@protoc_insertion_point(field_mutable:xla.HloSnapshot.execution_platform)
return execution_platform_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* HloSnapshot::release_execution_platform() {
// @@protoc_insertion_point(field_release:xla.HloSnapshot.execution_platform)
return execution_platform_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void HloSnapshot::set_allocated_execution_platform(::std::string* execution_platform) {
if (execution_platform != NULL) {
} else {
}
execution_platform_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), execution_platform,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:xla.HloSnapshot.execution_platform)
}
inline ::std::string* HloSnapshot::unsafe_arena_release_execution_platform() {
// @@protoc_insertion_point(field_unsafe_arena_release:xla.HloSnapshot.execution_platform)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
return execution_platform_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void HloSnapshot::unsafe_arena_set_allocated_execution_platform(
::std::string* execution_platform) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (execution_platform != NULL) {
} else {
}
execution_platform_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
execution_platform, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloSnapshot.execution_platform)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace xla
namespace google {
namespace protobuf {
template <> struct is_proto_enum< ::xla::HeapSimulatorTrace_Event_Kind> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::xla::HeapSimulatorTrace_Event_Kind>() {
return ::xla::HeapSimulatorTrace_Event_Kind_descriptor();
}
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto