|
|
|
@ -8,25 +8,28 @@ |
|
|
|
|
|
|
|
|
|
#include <google/protobuf/stubs/common.h> |
|
|
|
|
|
|
|
|
|
#if GOOGLE_PROTOBUF_VERSION < 3001000 |
|
|
|
|
#if GOOGLE_PROTOBUF_VERSION < 3005000 |
|
|
|
|
#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 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
|
|
|
|
#if 3005001 < 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/metadata.h> |
|
|
|
|
#include <google/protobuf/message.h> |
|
|
|
|
#include <google/protobuf/repeated_field.h> |
|
|
|
|
#include <google/protobuf/extension_set.h> |
|
|
|
|
#include <google/protobuf/map.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/unknown_field_set.h> |
|
|
|
|
#include "attr_value.pb.h" |
|
|
|
@ -34,16 +37,41 @@ |
|
|
|
|
#include "versions.pb.h" |
|
|
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
|
|
|
|
|
|
namespace protobuf_graph_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[3]; |
|
|
|
|
static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
|
|
|
|
static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
|
|
|
|
static const ::google::protobuf::uint32 offsets[]; |
|
|
|
|
}; |
|
|
|
|
void AddDescriptors(); |
|
|
|
|
void InitDefaultsGraphDefImpl(); |
|
|
|
|
void InitDefaultsGraphDef(); |
|
|
|
|
void InitDefaultsNodeDef_AttrEntry_DoNotUseImpl(); |
|
|
|
|
void InitDefaultsNodeDef_AttrEntry_DoNotUse(); |
|
|
|
|
void InitDefaultsNodeDefImpl(); |
|
|
|
|
void InitDefaultsNodeDef(); |
|
|
|
|
inline void InitDefaults() { |
|
|
|
|
InitDefaultsGraphDef(); |
|
|
|
|
InitDefaultsNodeDef_AttrEntry_DoNotUse(); |
|
|
|
|
InitDefaultsNodeDef(); |
|
|
|
|
} |
|
|
|
|
} // namespace protobuf_graph_2eproto
|
|
|
|
|
namespace tensorflow { |
|
|
|
|
|
|
|
|
|
// Internal implementation detail -- do not call these.
|
|
|
|
|
void protobuf_AddDesc_graph_2eproto(); |
|
|
|
|
void protobuf_InitDefaults_graph_2eproto(); |
|
|
|
|
void protobuf_AssignDesc_graph_2eproto(); |
|
|
|
|
void protobuf_ShutdownFile_graph_2eproto(); |
|
|
|
|
|
|
|
|
|
class GraphDef; |
|
|
|
|
class GraphDefDefaultTypeInternal; |
|
|
|
|
extern GraphDefDefaultTypeInternal _GraphDef_default_instance_; |
|
|
|
|
class NodeDef; |
|
|
|
|
class NodeDefDefaultTypeInternal; |
|
|
|
|
extern NodeDefDefaultTypeInternal _NodeDef_default_instance_; |
|
|
|
|
class NodeDef_AttrEntry_DoNotUse; |
|
|
|
|
class NodeDef_AttrEntry_DoNotUseDefaultTypeInternal; |
|
|
|
|
extern NodeDef_AttrEntry_DoNotUseDefaultTypeInternal _NodeDef_AttrEntry_DoNotUse_default_instance_; |
|
|
|
|
} // namespace tensorflow
|
|
|
|
|
namespace tensorflow { |
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
|
|
|
|
@ -58,48 +86,69 @@ class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point( |
|
|
|
|
CopyFrom(from); |
|
|
|
|
return *this; |
|
|
|
|
} |
|
|
|
|
#if LANG_CXX11 |
|
|
|
|
GraphDef(GraphDef&& from) noexcept |
|
|
|
|
: GraphDef() { |
|
|
|
|
*this = ::std::move(from); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } |
|
|
|
|
inline void* GetMaybeArenaPointer() const { |
|
|
|
|
inline GraphDef& operator=(GraphDef&& from) noexcept { |
|
|
|
|
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
|
|
|
|
if (this != &from) InternalSwap(&from); |
|
|
|
|
} else { |
|
|
|
|
CopyFrom(from); |
|
|
|
|
} |
|
|
|
|
return *this; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
|
|
|
|
return GetArenaNoVirtual(); |
|
|
|
|
} |
|
|
|
|
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
|
|
|
|
return MaybeArenaPtr(); |
|
|
|
|
} |
|
|
|
|
static const ::google::protobuf::Descriptor* descriptor(); |
|
|
|
|
static const GraphDef& default_instance(); |
|
|
|
|
|
|
|
|
|
static const GraphDef* internal_default_instance(); |
|
|
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
|
|
|
|
static inline const GraphDef* internal_default_instance() { |
|
|
|
|
return reinterpret_cast<const GraphDef*>( |
|
|
|
|
&_GraphDef_default_instance_); |
|
|
|
|
} |
|
|
|
|
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
|
|
|
|
0; |
|
|
|
|
|
|
|
|
|
void UnsafeArenaSwap(GraphDef* other); |
|
|
|
|
void Swap(GraphDef* other); |
|
|
|
|
friend void swap(GraphDef& a, GraphDef& b) { |
|
|
|
|
a.Swap(&b); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
|
|
|
|
|
inline GraphDef* New() const { return New(NULL); } |
|
|
|
|
inline GraphDef* New() const PROTOBUF_FINAL { return New(NULL); } |
|
|
|
|
|
|
|
|
|
GraphDef* New(::google::protobuf::Arena* arena) const; |
|
|
|
|
void CopyFrom(const ::google::protobuf::Message& from); |
|
|
|
|
void MergeFrom(const ::google::protobuf::Message& from); |
|
|
|
|
GraphDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
|
|
|
|
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
|
|
|
|
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
|
|
|
|
void CopyFrom(const GraphDef& from); |
|
|
|
|
void MergeFrom(const GraphDef& from); |
|
|
|
|
void Clear(); |
|
|
|
|
bool IsInitialized() const; |
|
|
|
|
void Clear() PROTOBUF_FINAL; |
|
|
|
|
bool IsInitialized() const PROTOBUF_FINAL; |
|
|
|
|
|
|
|
|
|
size_t ByteSizeLong() const; |
|
|
|
|
size_t ByteSizeLong() const PROTOBUF_FINAL; |
|
|
|
|
bool MergePartialFromCodedStream( |
|
|
|
|
::google::protobuf::io::CodedInputStream* input); |
|
|
|
|
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
|
|
|
|
void SerializeWithCachedSizes( |
|
|
|
|
::google::protobuf::io::CodedOutputStream* output) const; |
|
|
|
|
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
|
|
|
|
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
|
|
|
|
bool deterministic, ::google::protobuf::uint8* output) const; |
|
|
|
|
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { |
|
|
|
|
return InternalSerializeWithCachedSizesToArray(false, output); |
|
|
|
|
} |
|
|
|
|
int GetCachedSize() const { return _cached_size_; } |
|
|
|
|
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
|
|
|
|
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
|
|
|
|
private: |
|
|
|
|
void SharedCtor(); |
|
|
|
|
void SharedDtor(); |
|
|
|
|
void SetCachedSize(int size) const; |
|
|
|
|
void SetCachedSize(int size) const PROTOBUF_FINAL; |
|
|
|
|
void InternalSwap(GraphDef* other); |
|
|
|
|
void UnsafeMergeFrom(const GraphDef& from); |
|
|
|
|
protected: |
|
|
|
|
explicit GraphDef(::google::protobuf::Arena* arena); |
|
|
|
|
private: |
|
|
|
@ -114,7 +163,7 @@ class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point( |
|
|
|
|
} |
|
|
|
|
public: |
|
|
|
|
|
|
|
|
|
::google::protobuf::Metadata GetMetadata() const; |
|
|
|
|
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
|
|
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
|
@ -132,68 +181,77 @@ class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point( |
|
|
|
|
const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >& |
|
|
|
|
node() const; |
|
|
|
|
|
|
|
|
|
// optional .tensorflow.VersionDef versions = 4;
|
|
|
|
|
// .tensorflow.FunctionDefLibrary library = 2;
|
|
|
|
|
bool has_library() const; |
|
|
|
|
void clear_library(); |
|
|
|
|
static const int kLibraryFieldNumber = 2; |
|
|
|
|
private: |
|
|
|
|
void _slow_mutable_library(); |
|
|
|
|
public: |
|
|
|
|
const ::tensorflow::FunctionDefLibrary& library() const; |
|
|
|
|
::tensorflow::FunctionDefLibrary* release_library(); |
|
|
|
|
::tensorflow::FunctionDefLibrary* mutable_library(); |
|
|
|
|
void set_allocated_library(::tensorflow::FunctionDefLibrary* library); |
|
|
|
|
void unsafe_arena_set_allocated_library( |
|
|
|
|
::tensorflow::FunctionDefLibrary* library); |
|
|
|
|
::tensorflow::FunctionDefLibrary* unsafe_arena_release_library(); |
|
|
|
|
|
|
|
|
|
// .tensorflow.VersionDef versions = 4;
|
|
|
|
|
bool has_versions() const; |
|
|
|
|
void clear_versions(); |
|
|
|
|
static const int kVersionsFieldNumber = 4; |
|
|
|
|
private: |
|
|
|
|
void _slow_mutable_versions(); |
|
|
|
|
void _slow_set_allocated_versions( |
|
|
|
|
::google::protobuf::Arena* message_arena, ::tensorflow::VersionDef** versions); |
|
|
|
|
::tensorflow::VersionDef* _slow_release_versions(); |
|
|
|
|
public: |
|
|
|
|
const ::tensorflow::VersionDef& versions() const; |
|
|
|
|
::tensorflow::VersionDef* mutable_versions(); |
|
|
|
|
::tensorflow::VersionDef* release_versions(); |
|
|
|
|
::tensorflow::VersionDef* mutable_versions(); |
|
|
|
|
void set_allocated_versions(::tensorflow::VersionDef* versions); |
|
|
|
|
::tensorflow::VersionDef* unsafe_arena_release_versions(); |
|
|
|
|
void unsafe_arena_set_allocated_versions( |
|
|
|
|
::tensorflow::VersionDef* versions); |
|
|
|
|
::tensorflow::VersionDef* unsafe_arena_release_versions(); |
|
|
|
|
|
|
|
|
|
// optional int32 version = 3 [deprecated = true];
|
|
|
|
|
// int32 version = 3 [deprecated = true];
|
|
|
|
|
GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_version(); |
|
|
|
|
GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kVersionFieldNumber = 3; |
|
|
|
|
GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 version() const; |
|
|
|
|
GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_version(::google::protobuf::int32 value); |
|
|
|
|
|
|
|
|
|
// optional .tensorflow.FunctionDefLibrary library = 2;
|
|
|
|
|
bool has_library() const; |
|
|
|
|
void clear_library(); |
|
|
|
|
static const int kLibraryFieldNumber = 2; |
|
|
|
|
private: |
|
|
|
|
void _slow_mutable_library(); |
|
|
|
|
void _slow_set_allocated_library( |
|
|
|
|
::google::protobuf::Arena* message_arena, ::tensorflow::FunctionDefLibrary** library); |
|
|
|
|
::tensorflow::FunctionDefLibrary* _slow_release_library(); |
|
|
|
|
public: |
|
|
|
|
const ::tensorflow::FunctionDefLibrary& library() const; |
|
|
|
|
::tensorflow::FunctionDefLibrary* mutable_library(); |
|
|
|
|
::tensorflow::FunctionDefLibrary* release_library(); |
|
|
|
|
void set_allocated_library(::tensorflow::FunctionDefLibrary* library); |
|
|
|
|
::tensorflow::FunctionDefLibrary* unsafe_arena_release_library(); |
|
|
|
|
void unsafe_arena_set_allocated_library( |
|
|
|
|
::tensorflow::FunctionDefLibrary* library); |
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:tensorflow.GraphDef)
|
|
|
|
|
private: |
|
|
|
|
|
|
|
|
|
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
|
|
|
|
friend class ::google::protobuf::Arena; |
|
|
|
|
template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
|
|
|
|
typedef void InternalArenaConstructable_; |
|
|
|
|
typedef void DestructorSkippable_; |
|
|
|
|
::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef > node_; |
|
|
|
|
::tensorflow::VersionDef* versions_; |
|
|
|
|
::tensorflow::FunctionDefLibrary* library_; |
|
|
|
|
::tensorflow::VersionDef* versions_; |
|
|
|
|
::google::protobuf::int32 version_; |
|
|
|
|
mutable int _cached_size_; |
|
|
|
|
friend void protobuf_InitDefaults_graph_2eproto_impl(); |
|
|
|
|
friend void protobuf_AddDesc_graph_2eproto_impl(); |
|
|
|
|
friend void protobuf_AssignDesc_graph_2eproto(); |
|
|
|
|
friend void protobuf_ShutdownFile_graph_2eproto(); |
|
|
|
|
friend struct ::protobuf_graph_2eproto::TableStruct; |
|
|
|
|
friend void ::protobuf_graph_2eproto::InitDefaultsGraphDefImpl(); |
|
|
|
|
}; |
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
void InitAsDefaultInstance(); |
|
|
|
|
class NodeDef_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<NodeDef_AttrEntry_DoNotUse, |
|
|
|
|
::std::string, ::tensorflow::AttrValue, |
|
|
|
|
::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
|
|
|
|
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, |
|
|
|
|
0 > { |
|
|
|
|
public: |
|
|
|
|
typedef ::google::protobuf::internal::MapEntry<NodeDef_AttrEntry_DoNotUse, |
|
|
|
|
::std::string, ::tensorflow::AttrValue, |
|
|
|
|
::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
|
|
|
|
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, |
|
|
|
|
0 > SuperType; |
|
|
|
|
NodeDef_AttrEntry_DoNotUse(); |
|
|
|
|
NodeDef_AttrEntry_DoNotUse(::google::protobuf::Arena* arena); |
|
|
|
|
void MergeFrom(const NodeDef_AttrEntry_DoNotUse& other); |
|
|
|
|
static const NodeDef_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const NodeDef_AttrEntry_DoNotUse*>(&_NodeDef_AttrEntry_DoNotUse_default_instance_); } |
|
|
|
|
void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; |
|
|
|
|
::google::protobuf::Metadata GetMetadata() const; |
|
|
|
|
}; |
|
|
|
|
extern ::google::protobuf::internal::ExplicitlyConstructed<GraphDef> GraphDef_default_instance_; |
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
@ -208,48 +266,69 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c |
|
|
|
|
CopyFrom(from); |
|
|
|
|
return *this; |
|
|
|
|
} |
|
|
|
|
#if LANG_CXX11 |
|
|
|
|
NodeDef(NodeDef&& from) noexcept |
|
|
|
|
: NodeDef() { |
|
|
|
|
*this = ::std::move(from); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } |
|
|
|
|
inline void* GetMaybeArenaPointer() const { |
|
|
|
|
inline NodeDef& operator=(NodeDef&& from) noexcept { |
|
|
|
|
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
|
|
|
|
if (this != &from) InternalSwap(&from); |
|
|
|
|
} else { |
|
|
|
|
CopyFrom(from); |
|
|
|
|
} |
|
|
|
|
return *this; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
|
|
|
|
return GetArenaNoVirtual(); |
|
|
|
|
} |
|
|
|
|
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
|
|
|
|
return MaybeArenaPtr(); |
|
|
|
|
} |
|
|
|
|
static const ::google::protobuf::Descriptor* descriptor(); |
|
|
|
|
static const NodeDef& default_instance(); |
|
|
|
|
|
|
|
|
|
static const NodeDef* internal_default_instance(); |
|
|
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
|
|
|
|
static inline const NodeDef* internal_default_instance() { |
|
|
|
|
return reinterpret_cast<const NodeDef*>( |
|
|
|
|
&_NodeDef_default_instance_); |
|
|
|
|
} |
|
|
|
|
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
|
|
|
|
2; |
|
|
|
|
|
|
|
|
|
void UnsafeArenaSwap(NodeDef* other); |
|
|
|
|
void Swap(NodeDef* other); |
|
|
|
|
friend void swap(NodeDef& a, NodeDef& b) { |
|
|
|
|
a.Swap(&b); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
|
|
|
|
|
inline NodeDef* New() const { return New(NULL); } |
|
|
|
|
inline NodeDef* New() const PROTOBUF_FINAL { return New(NULL); } |
|
|
|
|
|
|
|
|
|
NodeDef* New(::google::protobuf::Arena* arena) const; |
|
|
|
|
void CopyFrom(const ::google::protobuf::Message& from); |
|
|
|
|
void MergeFrom(const ::google::protobuf::Message& from); |
|
|
|
|
NodeDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
|
|
|
|
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
|
|
|
|
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
|
|
|
|
void CopyFrom(const NodeDef& from); |
|
|
|
|
void MergeFrom(const NodeDef& from); |
|
|
|
|
void Clear(); |
|
|
|
|
bool IsInitialized() const; |
|
|
|
|
void Clear() PROTOBUF_FINAL; |
|
|
|
|
bool IsInitialized() const PROTOBUF_FINAL; |
|
|
|
|
|
|
|
|
|
size_t ByteSizeLong() const; |
|
|
|
|
size_t ByteSizeLong() const PROTOBUF_FINAL; |
|
|
|
|
bool MergePartialFromCodedStream( |
|
|
|
|
::google::protobuf::io::CodedInputStream* input); |
|
|
|
|
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
|
|
|
|
void SerializeWithCachedSizes( |
|
|
|
|
::google::protobuf::io::CodedOutputStream* output) const; |
|
|
|
|
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
|
|
|
|
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
|
|
|
|
bool deterministic, ::google::protobuf::uint8* output) const; |
|
|
|
|
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { |
|
|
|
|
return InternalSerializeWithCachedSizesToArray(false, output); |
|
|
|
|
} |
|
|
|
|
int GetCachedSize() const { return _cached_size_; } |
|
|
|
|
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
|
|
|
|
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
|
|
|
|
private: |
|
|
|
|
void SharedCtor(); |
|
|
|
|
void SharedDtor(); |
|
|
|
|
void SetCachedSize(int size) const; |
|
|
|
|
void SetCachedSize(int size) const PROTOBUF_FINAL; |
|
|
|
|
void InternalSwap(NodeDef* other); |
|
|
|
|
void UnsafeMergeFrom(const NodeDef& from); |
|
|
|
|
protected: |
|
|
|
|
explicit NodeDef(::google::protobuf::Arena* arena); |
|
|
|
|
private: |
|
|
|
@ -264,95 +343,123 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c |
|
|
|
|
} |
|
|
|
|
public: |
|
|
|
|
|
|
|
|
|
::google::protobuf::Metadata GetMetadata() const; |
|
|
|
|
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
|
|
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
// optional string name = 1;
|
|
|
|
|
// repeated string input = 3;
|
|
|
|
|
int input_size() const; |
|
|
|
|
void clear_input(); |
|
|
|
|
static const int kInputFieldNumber = 3; |
|
|
|
|
const ::std::string& input(int index) const; |
|
|
|
|
::std::string* mutable_input(int index); |
|
|
|
|
void set_input(int index, const ::std::string& value); |
|
|
|
|
#if LANG_CXX11 |
|
|
|
|
void set_input(int index, ::std::string&& value); |
|
|
|
|
#endif |
|
|
|
|
void set_input(int index, const char* value); |
|
|
|
|
void set_input(int index, const char* value, size_t size); |
|
|
|
|
::std::string* add_input(); |
|
|
|
|
void add_input(const ::std::string& value); |
|
|
|
|
#if LANG_CXX11 |
|
|
|
|
void add_input(::std::string&& value); |
|
|
|
|
#endif |
|
|
|
|
void add_input(const char* value); |
|
|
|
|
void add_input(const char* value, size_t size); |
|
|
|
|
const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const; |
|
|
|
|
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input(); |
|
|
|
|
|
|
|
|
|
// map<string, .tensorflow.AttrValue> attr = 5;
|
|
|
|
|
int attr_size() const; |
|
|
|
|
void clear_attr(); |
|
|
|
|
static const int kAttrFieldNumber = 5; |
|
|
|
|
const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& |
|
|
|
|
attr() const; |
|
|
|
|
::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* |
|
|
|
|
mutable_attr(); |
|
|
|
|
|
|
|
|
|
// 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); |
|
|
|
|
|
|
|
|
|
// optional string op = 2;
|
|
|
|
|
// string op = 2;
|
|
|
|
|
void clear_op(); |
|
|
|
|
static const int kOpFieldNumber = 2; |
|
|
|
|
const ::std::string& op() const; |
|
|
|
|
void set_op(const ::std::string& value); |
|
|
|
|
#if LANG_CXX11 |
|
|
|
|
void set_op(::std::string&& value); |
|
|
|
|
#endif |
|
|
|
|
void set_op(const char* value); |
|
|
|
|
void set_op(const char* value, size_t size); |
|
|
|
|
::std::string* mutable_op(); |
|
|
|
|
::std::string* release_op(); |
|
|
|
|
void set_allocated_op(::std::string* op); |
|
|
|
|
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_op(); |
|
|
|
|
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_op( |
|
|
|
|
::std::string* op); |
|
|
|
|
|
|
|
|
|
// repeated string input = 3;
|
|
|
|
|
int input_size() const; |
|
|
|
|
void clear_input(); |
|
|
|
|
static const int kInputFieldNumber = 3; |
|
|
|
|
const ::std::string& input(int index) const; |
|
|
|
|
::std::string* mutable_input(int index); |
|
|
|
|
void set_input(int index, const ::std::string& value); |
|
|
|
|
void set_input(int index, const char* value); |
|
|
|
|
void set_input(int index, const char* value, size_t size); |
|
|
|
|
::std::string* add_input(); |
|
|
|
|
void add_input(const ::std::string& value); |
|
|
|
|
void add_input(const char* value); |
|
|
|
|
void add_input(const char* value, size_t size); |
|
|
|
|
const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const; |
|
|
|
|
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input(); |
|
|
|
|
|
|
|
|
|
// optional string device = 4;
|
|
|
|
|
// string device = 4;
|
|
|
|
|
void clear_device(); |
|
|
|
|
static const int kDeviceFieldNumber = 4; |
|
|
|
|
const ::std::string& device() const; |
|
|
|
|
void set_device(const ::std::string& value); |
|
|
|
|
#if LANG_CXX11 |
|
|
|
|
void set_device(::std::string&& value); |
|
|
|
|
#endif |
|
|
|
|
void set_device(const char* value); |
|
|
|
|
void set_device(const char* value, size_t size); |
|
|
|
|
::std::string* mutable_device(); |
|
|
|
|
::std::string* release_device(); |
|
|
|
|
void set_allocated_device(::std::string* device); |
|
|
|
|
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_device(); |
|
|
|
|
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_device( |
|
|
|
|
::std::string* device); |
|
|
|
|
|
|
|
|
|
// map<string, .tensorflow.AttrValue> attr = 5;
|
|
|
|
|
int attr_size() const; |
|
|
|
|
void clear_attr(); |
|
|
|
|
static const int kAttrFieldNumber = 5; |
|
|
|
|
const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& |
|
|
|
|
attr() const; |
|
|
|
|
::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* |
|
|
|
|
mutable_attr(); |
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:tensorflow.NodeDef)
|
|
|
|
|
private: |
|
|
|
|
|
|
|
|
|
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
|
|
|
|
friend class ::google::protobuf::Arena; |
|
|
|
|
template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
|
|
|
|
typedef void InternalArenaConstructable_; |
|
|
|
|
typedef void DestructorSkippable_; |
|
|
|
|
::google::protobuf::RepeatedPtrField< ::std::string> input_; |
|
|
|
|
typedef ::google::protobuf::internal::MapEntryLite< |
|
|
|
|
::std::string, ::tensorflow::AttrValue, |
|
|
|
|
::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
|
|
|
|
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, |
|
|
|
|
0 > |
|
|
|
|
NodeDef_AttrEntry; |
|
|
|
|
::google::protobuf::internal::MapField< |
|
|
|
|
NodeDef_AttrEntry_DoNotUse, |
|
|
|
|
::std::string, ::tensorflow::AttrValue, |
|
|
|
|
::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
|
|
|
|
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, |
|
|
|
@ -361,21 +468,18 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c |
|
|
|
|
::google::protobuf::internal::ArenaStringPtr op_; |
|
|
|
|
::google::protobuf::internal::ArenaStringPtr device_; |
|
|
|
|
mutable int _cached_size_; |
|
|
|
|
friend void protobuf_InitDefaults_graph_2eproto_impl(); |
|
|
|
|
friend void protobuf_AddDesc_graph_2eproto_impl(); |
|
|
|
|
friend void protobuf_AssignDesc_graph_2eproto(); |
|
|
|
|
friend void protobuf_ShutdownFile_graph_2eproto(); |
|
|
|
|
|
|
|
|
|
void InitAsDefaultInstance(); |
|
|
|
|
friend struct ::protobuf_graph_2eproto::TableStruct; |
|
|
|
|
friend void ::protobuf_graph_2eproto::InitDefaultsNodeDefImpl(); |
|
|
|
|
}; |
|
|
|
|
extern ::google::protobuf::internal::ExplicitlyConstructed<NodeDef> NodeDef_default_instance_; |
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
|
|
|
|
|
#if !PROTOBUF_INLINE_NOT_IN_HEADERS |
|
|
|
|
#ifdef __GNUC__ |
|
|
|
|
#pragma GCC diagnostic push |
|
|
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing" |
|
|
|
|
#endif // __GNUC__
|
|
|
|
|
// GraphDef
|
|
|
|
|
|
|
|
|
|
// repeated .tensorflow.NodeDef node = 1;
|
|
|
|
@ -408,18 +512,32 @@ GraphDef::node() const { |
|
|
|
|
return node_; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// optional .tensorflow.VersionDef versions = 4;
|
|
|
|
|
// .tensorflow.VersionDef versions = 4;
|
|
|
|
|
inline bool GraphDef::has_versions() const { |
|
|
|
|
return this != internal_default_instance() && versions_ != NULL; |
|
|
|
|
} |
|
|
|
|
inline void GraphDef::clear_versions() { |
|
|
|
|
if (GetArenaNoVirtual() == NULL && versions_ != NULL) delete versions_; |
|
|
|
|
versions_ = NULL; |
|
|
|
|
} |
|
|
|
|
inline const ::tensorflow::VersionDef& GraphDef::versions() const { |
|
|
|
|
const ::tensorflow::VersionDef* p = versions_; |
|
|
|
|
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.versions)
|
|
|
|
|
return versions_ != NULL ? *versions_ |
|
|
|
|
: *::tensorflow::VersionDef::internal_default_instance(); |
|
|
|
|
return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::VersionDef*>( |
|
|
|
|
&::tensorflow::_VersionDef_default_instance_); |
|
|
|
|
} |
|
|
|
|
inline ::tensorflow::VersionDef* GraphDef::release_versions() { |
|
|
|
|
// @@protoc_insertion_point(field_release:tensorflow.GraphDef.versions)
|
|
|
|
|
|
|
|
|
|
::tensorflow::VersionDef* temp = versions_; |
|
|
|
|
if (GetArenaNoVirtual() != NULL) { |
|
|
|
|
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
|
|
|
|
} |
|
|
|
|
versions_ = NULL; |
|
|
|
|
return temp; |
|
|
|
|
} |
|
|
|
|
inline ::tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() { |
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.versions)
|
|
|
|
|
|
|
|
|
|
::tensorflow::VersionDef* temp = versions_; |
|
|
|
|
versions_ = NULL; |
|
|
|
|
return temp; |
|
|
|
|
} |
|
|
|
|
inline ::tensorflow::VersionDef* GraphDef::mutable_versions() { |
|
|
|
|
|
|
|
|
@ -429,35 +547,27 @@ inline ::tensorflow::VersionDef* GraphDef::mutable_versions() { |
|
|
|
|
// @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.versions)
|
|
|
|
|
return versions_; |
|
|
|
|
} |
|
|
|
|
inline ::tensorflow::VersionDef* GraphDef::release_versions() { |
|
|
|
|
// @@protoc_insertion_point(field_release:tensorflow.GraphDef.versions)
|
|
|
|
|
|
|
|
|
|
if (GetArenaNoVirtual() != NULL) { |
|
|
|
|
return _slow_release_versions(); |
|
|
|
|
} else { |
|
|
|
|
::tensorflow::VersionDef* temp = versions_; |
|
|
|
|
versions_ = NULL; |
|
|
|
|
return temp; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
inline void GraphDef::set_allocated_versions(::tensorflow::VersionDef* versions) { |
|
|
|
|
inline void GraphDef::set_allocated_versions(::tensorflow::VersionDef* versions) { |
|
|
|
|
::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
|
|
|
|
if (message_arena == NULL) { |
|
|
|
|
delete versions_; |
|
|
|
|
delete reinterpret_cast< ::google::protobuf::MessageLite*>(versions_); |
|
|
|
|
} |
|
|
|
|
if (versions != NULL) { |
|
|
|
|
_slow_set_allocated_versions(message_arena, &versions); |
|
|
|
|
} |
|
|
|
|
versions_ = versions; |
|
|
|
|
if (versions) { |
|
|
|
|
::google::protobuf::Arena* submessage_arena = |
|
|
|
|
reinterpret_cast< ::google::protobuf::MessageLite*>(versions)->GetArena(); |
|
|
|
|
if (message_arena != submessage_arena) { |
|
|
|
|
versions = ::google::protobuf::internal::GetOwnedMessage( |
|
|
|
|
message_arena, versions, submessage_arena); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
versions_ = versions; |
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.versions)
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// optional int32 version = 3 [deprecated = true];
|
|
|
|
|
// int32 version = 3 [deprecated = true];
|
|
|
|
|
inline void GraphDef::clear_version() { |
|
|
|
|
version_ = 0; |
|
|
|
|
} |
|
|
|
@ -471,18 +581,32 @@ inline void GraphDef::set_version(::google::protobuf::int32 value) { |
|
|
|
|
// @@protoc_insertion_point(field_set:tensorflow.GraphDef.version)
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// optional .tensorflow.FunctionDefLibrary library = 2;
|
|
|
|
|
// .tensorflow.FunctionDefLibrary library = 2;
|
|
|
|
|
inline bool GraphDef::has_library() const { |
|
|
|
|
return this != internal_default_instance() && library_ != NULL; |
|
|
|
|
} |
|
|
|
|
inline void GraphDef::clear_library() { |
|
|
|
|
if (GetArenaNoVirtual() == NULL && library_ != NULL) delete library_; |
|
|
|
|
library_ = NULL; |
|
|
|
|
} |
|
|
|
|
inline const ::tensorflow::FunctionDefLibrary& GraphDef::library() const { |
|
|
|
|
const ::tensorflow::FunctionDefLibrary* p = library_; |
|
|
|
|
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.library)
|
|
|
|
|
return library_ != NULL ? *library_ |
|
|
|
|
: *::tensorflow::FunctionDefLibrary::internal_default_instance(); |
|
|
|
|
return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::FunctionDefLibrary*>( |
|
|
|
|
&::tensorflow::_FunctionDefLibrary_default_instance_); |
|
|
|
|
} |
|
|
|
|
inline ::tensorflow::FunctionDefLibrary* GraphDef::release_library() { |
|
|
|
|
// @@protoc_insertion_point(field_release:tensorflow.GraphDef.library)
|
|
|
|
|
|
|
|
|
|
::tensorflow::FunctionDefLibrary* temp = library_; |
|
|
|
|
if (GetArenaNoVirtual() != NULL) { |
|
|
|
|
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
|
|
|
|
} |
|
|
|
|
library_ = NULL; |
|
|
|
|
return temp; |
|
|
|
|
} |
|
|
|
|
inline ::tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() { |
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.library)
|
|
|
|
|
|
|
|
|
|
::tensorflow::FunctionDefLibrary* temp = library_; |
|
|
|
|
library_ = NULL; |
|
|
|
|
return temp; |
|
|
|
|
} |
|
|
|
|
inline ::tensorflow::FunctionDefLibrary* GraphDef::mutable_library() { |
|
|
|
|
|
|
|
|
@ -492,55 +616,55 @@ inline ::tensorflow::FunctionDefLibrary* GraphDef::mutable_library() { |
|
|
|
|
// @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.library)
|
|
|
|
|
return library_; |
|
|
|
|
} |
|
|
|
|
inline ::tensorflow::FunctionDefLibrary* GraphDef::release_library() { |
|
|
|
|
// @@protoc_insertion_point(field_release:tensorflow.GraphDef.library)
|
|
|
|
|
|
|
|
|
|
if (GetArenaNoVirtual() != NULL) { |
|
|
|
|
return _slow_release_library(); |
|
|
|
|
} else { |
|
|
|
|
::tensorflow::FunctionDefLibrary* temp = library_; |
|
|
|
|
library_ = NULL; |
|
|
|
|
return temp; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
inline void GraphDef::set_allocated_library(::tensorflow::FunctionDefLibrary* library) { |
|
|
|
|
inline void GraphDef::set_allocated_library(::tensorflow::FunctionDefLibrary* library) { |
|
|
|
|
::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
|
|
|
|
if (message_arena == NULL) { |
|
|
|
|
delete library_; |
|
|
|
|
} |
|
|
|
|
if (library != NULL) { |
|
|
|
|
_slow_set_allocated_library(message_arena, &library); |
|
|
|
|
delete reinterpret_cast< ::google::protobuf::MessageLite*>(library_); |
|
|
|
|
} |
|
|
|
|
library_ = library; |
|
|
|
|
if (library) { |
|
|
|
|
::google::protobuf::Arena* submessage_arena = |
|
|
|
|
reinterpret_cast< ::google::protobuf::MessageLite*>(library)->GetArena(); |
|
|
|
|
if (message_arena != submessage_arena) { |
|
|
|
|
library = ::google::protobuf::internal::GetOwnedMessage( |
|
|
|
|
message_arena, library, submessage_arena); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
library_ = library; |
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.library)
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
inline const GraphDef* GraphDef::internal_default_instance() { |
|
|
|
|
return &GraphDef_default_instance_.get(); |
|
|
|
|
} |
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
// NodeDef
|
|
|
|
|
|
|
|
|
|
// optional string name = 1;
|
|
|
|
|
// string name = 1;
|
|
|
|
|
inline void NodeDef::clear_name() { |
|
|
|
|
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
|
|
|
|
} |
|
|
|
|
inline const ::std::string& NodeDef::name() const { |
|
|
|
|
// @@protoc_insertion_point(field_get:tensorflow.NodeDef.name)
|
|
|
|
|
return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
return name_.Get(); |
|
|
|
|
} |
|
|
|
|
inline void NodeDef::set_name(const ::std::string& value) { |
|
|
|
|
|
|
|
|
|
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
|
|
|
|
// @@protoc_insertion_point(field_set:tensorflow.NodeDef.name)
|
|
|
|
|
} |
|
|
|
|
#if LANG_CXX11 |
|
|
|
|
inline void NodeDef::set_name(::std::string&& value) { |
|
|
|
|
|
|
|
|
|
name_.Set( |
|
|
|
|
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
|
|
|
|
// @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.name)
|
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
inline void NodeDef::set_name(const char* value) { |
|
|
|
|
GOOGLE_DCHECK(value != NULL); |
|
|
|
|
|
|
|
|
|
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
|
|
|
|
GetArenaNoVirtual()); |
|
|
|
@ -563,13 +687,6 @@ inline ::std::string* NodeDef::release_name() { |
|
|
|
|
|
|
|
|
|
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
|
|
|
|
} |
|
|
|
|
inline ::std::string* NodeDef::unsafe_arena_release_name() { |
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.name)
|
|
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
|
|
|
|
|
|
|
|
|
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
GetArenaNoVirtual()); |
|
|
|
|
} |
|
|
|
|
inline void NodeDef::set_allocated_name(::std::string* name) { |
|
|
|
|
if (name != NULL) { |
|
|
|
|
|
|
|
|
@ -580,6 +697,13 @@ inline void NodeDef::set_allocated_name(::std::string* name) { |
|
|
|
|
GetArenaNoVirtual()); |
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.name)
|
|
|
|
|
} |
|
|
|
|
inline ::std::string* NodeDef::unsafe_arena_release_name() { |
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.name)
|
|
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
|
|
|
|
|
|
|
|
|
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
GetArenaNoVirtual()); |
|
|
|
|
} |
|
|
|
|
inline void NodeDef::unsafe_arena_set_allocated_name( |
|
|
|
|
::std::string* name) { |
|
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
|
|
|
@ -593,20 +717,29 @@ inline void NodeDef::unsafe_arena_set_allocated_name( |
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.name)
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// optional string op = 2;
|
|
|
|
|
// string op = 2;
|
|
|
|
|
inline void NodeDef::clear_op() { |
|
|
|
|
op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
|
|
|
|
} |
|
|
|
|
inline const ::std::string& NodeDef::op() const { |
|
|
|
|
// @@protoc_insertion_point(field_get:tensorflow.NodeDef.op)
|
|
|
|
|
return op_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
return op_.Get(); |
|
|
|
|
} |
|
|
|
|
inline void NodeDef::set_op(const ::std::string& value) { |
|
|
|
|
|
|
|
|
|
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
|
|
|
|
// @@protoc_insertion_point(field_set:tensorflow.NodeDef.op)
|
|
|
|
|
} |
|
|
|
|
#if LANG_CXX11 |
|
|
|
|
inline void NodeDef::set_op(::std::string&& value) { |
|
|
|
|
|
|
|
|
|
op_.Set( |
|
|
|
|
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
|
|
|
|
// @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.op)
|
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
inline void NodeDef::set_op(const char* value) { |
|
|
|
|
GOOGLE_DCHECK(value != NULL); |
|
|
|
|
|
|
|
|
|
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
|
|
|
|
GetArenaNoVirtual()); |
|
|
|
@ -629,13 +762,6 @@ inline ::std::string* NodeDef::release_op() { |
|
|
|
|
|
|
|
|
|
return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
|
|
|
|
} |
|
|
|
|
inline ::std::string* NodeDef::unsafe_arena_release_op() { |
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.op)
|
|
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
|
|
|
|
|
|
|
|
|
return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
GetArenaNoVirtual()); |
|
|
|
|
} |
|
|
|
|
inline void NodeDef::set_allocated_op(::std::string* op) { |
|
|
|
|
if (op != NULL) { |
|
|
|
|
|
|
|
|
@ -646,6 +772,13 @@ inline void NodeDef::set_allocated_op(::std::string* op) { |
|
|
|
|
GetArenaNoVirtual()); |
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.op)
|
|
|
|
|
} |
|
|
|
|
inline ::std::string* NodeDef::unsafe_arena_release_op() { |
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.op)
|
|
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
|
|
|
|
|
|
|
|
|
return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
GetArenaNoVirtual()); |
|
|
|
|
} |
|
|
|
|
inline void NodeDef::unsafe_arena_set_allocated_op( |
|
|
|
|
::std::string* op) { |
|
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
|
|
|
@ -678,7 +811,14 @@ inline void NodeDef::set_input(int index, const ::std::string& value) { |
|
|
|
|
// @@protoc_insertion_point(field_set:tensorflow.NodeDef.input)
|
|
|
|
|
input_.Mutable(index)->assign(value); |
|
|
|
|
} |
|
|
|
|
#if LANG_CXX11 |
|
|
|
|
inline void NodeDef::set_input(int index, ::std::string&& value) { |
|
|
|
|
// @@protoc_insertion_point(field_set:tensorflow.NodeDef.input)
|
|
|
|
|
input_.Mutable(index)->assign(std::move(value)); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
inline void NodeDef::set_input(int index, const char* value) { |
|
|
|
|
GOOGLE_DCHECK(value != NULL); |
|
|
|
|
input_.Mutable(index)->assign(value); |
|
|
|
|
// @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.input)
|
|
|
|
|
} |
|
|
|
@ -695,7 +835,14 @@ inline void NodeDef::add_input(const ::std::string& value) { |
|
|
|
|
input_.Add()->assign(value); |
|
|
|
|
// @@protoc_insertion_point(field_add:tensorflow.NodeDef.input)
|
|
|
|
|
} |
|
|
|
|
#if LANG_CXX11 |
|
|
|
|
inline void NodeDef::add_input(::std::string&& value) { |
|
|
|
|
input_.Add(std::move(value)); |
|
|
|
|
// @@protoc_insertion_point(field_add:tensorflow.NodeDef.input)
|
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
inline void NodeDef::add_input(const char* value) { |
|
|
|
|
GOOGLE_DCHECK(value != NULL); |
|
|
|
|
input_.Add()->assign(value); |
|
|
|
|
// @@protoc_insertion_point(field_add_char:tensorflow.NodeDef.input)
|
|
|
|
|
} |
|
|
|
@ -714,20 +861,29 @@ NodeDef::mutable_input() { |
|
|
|
|
return &input_; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// optional string device = 4;
|
|
|
|
|
// string device = 4;
|
|
|
|
|
inline void NodeDef::clear_device() { |
|
|
|
|
device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
|
|
|
|
} |
|
|
|
|
inline const ::std::string& NodeDef::device() const { |
|
|
|
|
// @@protoc_insertion_point(field_get:tensorflow.NodeDef.device)
|
|
|
|
|
return device_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
return device_.Get(); |
|
|
|
|
} |
|
|
|
|
inline void NodeDef::set_device(const ::std::string& value) { |
|
|
|
|
|
|
|
|
|
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
|
|
|
|
// @@protoc_insertion_point(field_set:tensorflow.NodeDef.device)
|
|
|
|
|
} |
|
|
|
|
#if LANG_CXX11 |
|
|
|
|
inline void NodeDef::set_device(::std::string&& value) { |
|
|
|
|
|
|
|
|
|
device_.Set( |
|
|
|
|
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
|
|
|
|
// @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.device)
|
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
inline void NodeDef::set_device(const char* value) { |
|
|
|
|
GOOGLE_DCHECK(value != NULL); |
|
|
|
|
|
|
|
|
|
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
|
|
|
|
GetArenaNoVirtual()); |
|
|
|
@ -750,13 +906,6 @@ inline ::std::string* NodeDef::release_device() { |
|
|
|
|
|
|
|
|
|
return device_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
|
|
|
|
} |
|
|
|
|
inline ::std::string* NodeDef::unsafe_arena_release_device() { |
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.device)
|
|
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
|
|
|
|
|
|
|
|
|
return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
GetArenaNoVirtual()); |
|
|
|
|
} |
|
|
|
|
inline void NodeDef::set_allocated_device(::std::string* device) { |
|
|
|
|
if (device != NULL) { |
|
|
|
|
|
|
|
|
@ -767,6 +916,13 @@ inline void NodeDef::set_allocated_device(::std::string* device) { |
|
|
|
|
GetArenaNoVirtual()); |
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.device)
|
|
|
|
|
} |
|
|
|
|
inline ::std::string* NodeDef::unsafe_arena_release_device() { |
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.device)
|
|
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
|
|
|
|
|
|
|
|
|
return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
|
|
|
|
GetArenaNoVirtual()); |
|
|
|
|
} |
|
|
|
|
inline void NodeDef::unsafe_arena_set_allocated_device( |
|
|
|
|
::std::string* device) { |
|
|
|
|
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
|
|
|
@ -784,9 +940,6 @@ inline void NodeDef::unsafe_arena_set_allocated_device( |
|
|
|
|
inline int NodeDef::attr_size() const { |
|
|
|
|
return attr_.size(); |
|
|
|
|
} |
|
|
|
|
inline void NodeDef::clear_attr() { |
|
|
|
|
attr_.Clear(); |
|
|
|
|
} |
|
|
|
|
inline const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& |
|
|
|
|
NodeDef::attr() const { |
|
|
|
|
// @@protoc_insertion_point(field_map:tensorflow.NodeDef.attr)
|
|
|
|
@ -798,10 +951,11 @@ NodeDef::mutable_attr() { |
|
|
|
|
return attr_.MutableMap(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
inline const NodeDef* NodeDef::internal_default_instance() { |
|
|
|
|
return &NodeDef_default_instance_.get(); |
|
|
|
|
} |
|
|
|
|
#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
|
|
|
|
|
#ifdef __GNUC__ |
|
|
|
|
#pragma GCC diagnostic pop |
|
|
|
|
#endif // __GNUC__
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|