mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
dnn: move module from opencv_contrib
https://github.com/opencv/opencv_contrib/tree/e6f63c7a38ca40c5dc33e38736e3027e3528d6cb/modules/dnn
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,814 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: graph.proto
|
||||
|
||||
#ifndef PROTOBUF_graph_2eproto__INCLUDED
|
||||
#define PROTOBUF_graph_2eproto__INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3001000
|
||||
#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
|
||||
#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/arena.h>
|
||||
#include <google/protobuf/arenastring.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/map_field_inl.h>
|
||||
#include <google/protobuf/unknown_field_set.h>
|
||||
#include "attr_value.pb.h"
|
||||
#include "function.pb.h"
|
||||
#include "versions.pb.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
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 NodeDef;
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GraphDef) */ {
|
||||
public:
|
||||
GraphDef();
|
||||
virtual ~GraphDef();
|
||||
|
||||
GraphDef(const GraphDef& from);
|
||||
|
||||
inline GraphDef& operator=(const GraphDef& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); }
|
||||
inline void* GetMaybeArenaPointer() const {
|
||||
return MaybeArenaPtr();
|
||||
}
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const GraphDef& default_instance();
|
||||
|
||||
static const GraphDef* internal_default_instance();
|
||||
|
||||
void UnsafeArenaSwap(GraphDef* other);
|
||||
void Swap(GraphDef* other);
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
inline GraphDef* New() const { return New(NULL); }
|
||||
|
||||
GraphDef* New(::google::protobuf::Arena* arena) const;
|
||||
void CopyFrom(const ::google::protobuf::Message& from);
|
||||
void MergeFrom(const ::google::protobuf::Message& from);
|
||||
void CopyFrom(const GraphDef& from);
|
||||
void MergeFrom(const GraphDef& from);
|
||||
void Clear();
|
||||
bool IsInitialized() const;
|
||||
|
||||
size_t ByteSizeLong() const;
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input);
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const;
|
||||
::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_; }
|
||||
private:
|
||||
void SharedCtor();
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const;
|
||||
void InternalSwap(GraphDef* other);
|
||||
void UnsafeMergeFrom(const GraphDef& from);
|
||||
protected:
|
||||
explicit GraphDef(::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;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
// repeated .tensorflow.NodeDef node = 1;
|
||||
int node_size() const;
|
||||
void clear_node();
|
||||
static const int kNodeFieldNumber = 1;
|
||||
const ::tensorflow::NodeDef& node(int index) const;
|
||||
::tensorflow::NodeDef* mutable_node(int index);
|
||||
::tensorflow::NodeDef* add_node();
|
||||
::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >*
|
||||
mutable_node();
|
||||
const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >&
|
||||
node() const;
|
||||
|
||||
// optional .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();
|
||||
void set_allocated_versions(::tensorflow::VersionDef* versions);
|
||||
::tensorflow::VersionDef* unsafe_arena_release_versions();
|
||||
void unsafe_arena_set_allocated_versions(
|
||||
::tensorflow::VersionDef* versions);
|
||||
|
||||
// optional 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;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef > node_;
|
||||
::tensorflow::VersionDef* versions_;
|
||||
::tensorflow::FunctionDefLibrary* library_;
|
||||
::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();
|
||||
|
||||
void InitAsDefaultInstance();
|
||||
};
|
||||
extern ::google::protobuf::internal::ExplicitlyConstructed<GraphDef> GraphDef_default_instance_;
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.NodeDef) */ {
|
||||
public:
|
||||
NodeDef();
|
||||
virtual ~NodeDef();
|
||||
|
||||
NodeDef(const NodeDef& from);
|
||||
|
||||
inline NodeDef& operator=(const NodeDef& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); }
|
||||
inline void* GetMaybeArenaPointer() const {
|
||||
return MaybeArenaPtr();
|
||||
}
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const NodeDef& default_instance();
|
||||
|
||||
static const NodeDef* internal_default_instance();
|
||||
|
||||
void UnsafeArenaSwap(NodeDef* other);
|
||||
void Swap(NodeDef* other);
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
inline NodeDef* New() const { return New(NULL); }
|
||||
|
||||
NodeDef* New(::google::protobuf::Arena* arena) const;
|
||||
void CopyFrom(const ::google::protobuf::Message& from);
|
||||
void MergeFrom(const ::google::protobuf::Message& from);
|
||||
void CopyFrom(const NodeDef& from);
|
||||
void MergeFrom(const NodeDef& from);
|
||||
void Clear();
|
||||
bool IsInitialized() const;
|
||||
|
||||
size_t ByteSizeLong() const;
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input);
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const;
|
||||
::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_; }
|
||||
private:
|
||||
void SharedCtor();
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const;
|
||||
void InternalSwap(NodeDef* other);
|
||||
void UnsafeMergeFrom(const NodeDef& from);
|
||||
protected:
|
||||
explicit NodeDef(::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;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
// optional string name = 1;
|
||||
void clear_name();
|
||||
static const int kNameFieldNumber = 1;
|
||||
const ::std::string& name() const;
|
||||
void set_name(const ::std::string& value);
|
||||
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);
|
||||
::std::string* unsafe_arena_release_name();
|
||||
void unsafe_arena_set_allocated_name(
|
||||
::std::string* name);
|
||||
|
||||
// optional string op = 2;
|
||||
void clear_op();
|
||||
static const int kOpFieldNumber = 2;
|
||||
const ::std::string& op() const;
|
||||
void set_op(const ::std::string& value);
|
||||
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);
|
||||
::std::string* unsafe_arena_release_op();
|
||||
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;
|
||||
void clear_device();
|
||||
static const int kDeviceFieldNumber = 4;
|
||||
const ::std::string& device() const;
|
||||
void set_device(const ::std::string& value);
|
||||
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);
|
||||
::std::string* unsafe_arena_release_device();
|
||||
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;
|
||||
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<
|
||||
::std::string, ::tensorflow::AttrValue,
|
||||
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
|
||||
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
|
||||
0 > attr_;
|
||||
::google::protobuf::internal::ArenaStringPtr name_;
|
||||
::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();
|
||||
};
|
||||
extern ::google::protobuf::internal::ExplicitlyConstructed<NodeDef> NodeDef_default_instance_;
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#if !PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
// GraphDef
|
||||
|
||||
// repeated .tensorflow.NodeDef node = 1;
|
||||
inline int GraphDef::node_size() const {
|
||||
return node_.size();
|
||||
}
|
||||
inline void GraphDef::clear_node() {
|
||||
node_.Clear();
|
||||
}
|
||||
inline const ::tensorflow::NodeDef& GraphDef::node(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.node)
|
||||
return node_.Get(index);
|
||||
}
|
||||
inline ::tensorflow::NodeDef* GraphDef::mutable_node(int index) {
|
||||
// @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.node)
|
||||
return node_.Mutable(index);
|
||||
}
|
||||
inline ::tensorflow::NodeDef* GraphDef::add_node() {
|
||||
// @@protoc_insertion_point(field_add:tensorflow.GraphDef.node)
|
||||
return node_.Add();
|
||||
}
|
||||
inline ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >*
|
||||
GraphDef::mutable_node() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.GraphDef.node)
|
||||
return &node_;
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >&
|
||||
GraphDef::node() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.GraphDef.node)
|
||||
return node_;
|
||||
}
|
||||
|
||||
// optional .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 {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.versions)
|
||||
return versions_ != NULL ? *versions_
|
||||
: *::tensorflow::VersionDef::internal_default_instance();
|
||||
}
|
||||
inline ::tensorflow::VersionDef* GraphDef::mutable_versions() {
|
||||
|
||||
if (versions_ == NULL) {
|
||||
_slow_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) {
|
||||
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
|
||||
if (message_arena == NULL) {
|
||||
delete versions_;
|
||||
}
|
||||
if (versions != NULL) {
|
||||
_slow_set_allocated_versions(message_arena, &versions);
|
||||
}
|
||||
versions_ = versions;
|
||||
if (versions) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.versions)
|
||||
}
|
||||
|
||||
// optional int32 version = 3 [deprecated = true];
|
||||
inline void GraphDef::clear_version() {
|
||||
version_ = 0;
|
||||
}
|
||||
inline ::google::protobuf::int32 GraphDef::version() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.version)
|
||||
return version_;
|
||||
}
|
||||
inline void GraphDef::set_version(::google::protobuf::int32 value) {
|
||||
|
||||
version_ = value;
|
||||
// @@protoc_insertion_point(field_set:tensorflow.GraphDef.version)
|
||||
}
|
||||
|
||||
// optional .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 {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.GraphDef.library)
|
||||
return library_ != NULL ? *library_
|
||||
: *::tensorflow::FunctionDefLibrary::internal_default_instance();
|
||||
}
|
||||
inline ::tensorflow::FunctionDefLibrary* GraphDef::mutable_library() {
|
||||
|
||||
if (library_ == NULL) {
|
||||
_slow_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) {
|
||||
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
|
||||
if (message_arena == NULL) {
|
||||
delete library_;
|
||||
}
|
||||
if (library != NULL) {
|
||||
_slow_set_allocated_library(message_arena, &library);
|
||||
}
|
||||
library_ = library;
|
||||
if (library) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@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;
|
||||
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());
|
||||
}
|
||||
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)
|
||||
}
|
||||
inline void NodeDef::set_name(const char* value) {
|
||||
|
||||
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.name)
|
||||
}
|
||||
inline void NodeDef::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:tensorflow.NodeDef.name)
|
||||
}
|
||||
inline ::std::string* NodeDef::mutable_name() {
|
||||
|
||||
// @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.name)
|
||||
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
inline ::std::string* NodeDef::release_name() {
|
||||
// @@protoc_insertion_point(field_release:tensorflow.NodeDef.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) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.name)
|
||||
}
|
||||
inline void NodeDef::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:tensorflow.NodeDef.name)
|
||||
}
|
||||
|
||||
// optional 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());
|
||||
}
|
||||
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)
|
||||
}
|
||||
inline void NodeDef::set_op(const char* value) {
|
||||
|
||||
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.op)
|
||||
}
|
||||
inline void NodeDef::set_op(const char* value,
|
||||
size_t size) {
|
||||
|
||||
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
|
||||
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.op)
|
||||
}
|
||||
inline ::std::string* NodeDef::mutable_op() {
|
||||
|
||||
// @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.op)
|
||||
return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
inline ::std::string* NodeDef::release_op() {
|
||||
// @@protoc_insertion_point(field_release:tensorflow.NodeDef.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) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op,
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.op)
|
||||
}
|
||||
inline void NodeDef::unsafe_arena_set_allocated_op(
|
||||
::std::string* op) {
|
||||
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
|
||||
if (op != NULL) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
op, GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.op)
|
||||
}
|
||||
|
||||
// repeated string input = 3;
|
||||
inline int NodeDef::input_size() const {
|
||||
return input_.size();
|
||||
}
|
||||
inline void NodeDef::clear_input() {
|
||||
input_.Clear();
|
||||
}
|
||||
inline const ::std::string& NodeDef::input(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.NodeDef.input)
|
||||
return input_.Get(index);
|
||||
}
|
||||
inline ::std::string* NodeDef::mutable_input(int index) {
|
||||
// @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.input)
|
||||
return input_.Mutable(index);
|
||||
}
|
||||
inline void NodeDef::set_input(int index, const ::std::string& value) {
|
||||
// @@protoc_insertion_point(field_set:tensorflow.NodeDef.input)
|
||||
input_.Mutable(index)->assign(value);
|
||||
}
|
||||
inline void NodeDef::set_input(int index, const char* value) {
|
||||
input_.Mutable(index)->assign(value);
|
||||
// @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.input)
|
||||
}
|
||||
inline void NodeDef::set_input(int index, const char* value, size_t size) {
|
||||
input_.Mutable(index)->assign(
|
||||
reinterpret_cast<const char*>(value), size);
|
||||
// @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.input)
|
||||
}
|
||||
inline ::std::string* NodeDef::add_input() {
|
||||
// @@protoc_insertion_point(field_add_mutable:tensorflow.NodeDef.input)
|
||||
return input_.Add();
|
||||
}
|
||||
inline void NodeDef::add_input(const ::std::string& value) {
|
||||
input_.Add()->assign(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.NodeDef.input)
|
||||
}
|
||||
inline void NodeDef::add_input(const char* value) {
|
||||
input_.Add()->assign(value);
|
||||
// @@protoc_insertion_point(field_add_char:tensorflow.NodeDef.input)
|
||||
}
|
||||
inline void NodeDef::add_input(const char* value, size_t size) {
|
||||
input_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
||||
// @@protoc_insertion_point(field_add_pointer:tensorflow.NodeDef.input)
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
|
||||
NodeDef::input() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.NodeDef.input)
|
||||
return input_;
|
||||
}
|
||||
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
|
||||
NodeDef::mutable_input() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.NodeDef.input)
|
||||
return &input_;
|
||||
}
|
||||
|
||||
// optional 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());
|
||||
}
|
||||
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)
|
||||
}
|
||||
inline void NodeDef::set_device(const char* value) {
|
||||
|
||||
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.device)
|
||||
}
|
||||
inline void NodeDef::set_device(const char* value,
|
||||
size_t size) {
|
||||
|
||||
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
|
||||
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.device)
|
||||
}
|
||||
inline ::std::string* NodeDef::mutable_device() {
|
||||
|
||||
// @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.device)
|
||||
return device_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
inline ::std::string* NodeDef::release_device() {
|
||||
// @@protoc_insertion_point(field_release:tensorflow.NodeDef.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) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
device_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device,
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.device)
|
||||
}
|
||||
inline void NodeDef::unsafe_arena_set_allocated_device(
|
||||
::std::string* device) {
|
||||
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
|
||||
if (device != NULL) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
device_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
device, GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.device)
|
||||
}
|
||||
|
||||
// map<string, .tensorflow.AttrValue> attr = 5;
|
||||
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)
|
||||
return attr_.GetMap();
|
||||
}
|
||||
inline ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >*
|
||||
NodeDef::mutable_attr() {
|
||||
// @@protoc_insertion_point(field_mutable_map:tensorflow.NodeDef.attr)
|
||||
return attr_.MutableMap();
|
||||
}
|
||||
|
||||
inline const NodeDef* NodeDef::internal_default_instance() {
|
||||
return &NodeDef_default_instance_.get();
|
||||
}
|
||||
#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace tensorflow
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#endif // PROTOBUF_graph_2eproto__INCLUDED
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,770 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: tensor.proto
|
||||
|
||||
#ifndef PROTOBUF_tensor_2eproto__INCLUDED
|
||||
#define PROTOBUF_tensor_2eproto__INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3001000
|
||||
#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
|
||||
#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/arena.h>
|
||||
#include <google/protobuf/arenastring.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/unknown_field_set.h>
|
||||
#include "tensor_shape.pb.h"
|
||||
#include "types.pb.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace tensorflow {
|
||||
|
||||
// Internal implementation detail -- do not call these.
|
||||
void protobuf_AddDesc_tensor_2eproto();
|
||||
void protobuf_InitDefaults_tensor_2eproto();
|
||||
void protobuf_AssignDesc_tensor_2eproto();
|
||||
void protobuf_ShutdownFile_tensor_2eproto();
|
||||
|
||||
class TensorProto;
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorProto) */ {
|
||||
public:
|
||||
TensorProto();
|
||||
virtual ~TensorProto();
|
||||
|
||||
TensorProto(const TensorProto& from);
|
||||
|
||||
inline TensorProto& operator=(const TensorProto& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); }
|
||||
inline void* GetMaybeArenaPointer() const {
|
||||
return MaybeArenaPtr();
|
||||
}
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const TensorProto& default_instance();
|
||||
|
||||
static const TensorProto* internal_default_instance();
|
||||
|
||||
void UnsafeArenaSwap(TensorProto* other);
|
||||
void Swap(TensorProto* other);
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
inline TensorProto* New() const { return New(NULL); }
|
||||
|
||||
TensorProto* New(::google::protobuf::Arena* arena) const;
|
||||
void CopyFrom(const ::google::protobuf::Message& from);
|
||||
void MergeFrom(const ::google::protobuf::Message& from);
|
||||
void CopyFrom(const TensorProto& from);
|
||||
void MergeFrom(const TensorProto& from);
|
||||
void Clear();
|
||||
bool IsInitialized() const;
|
||||
|
||||
size_t ByteSizeLong() const;
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input);
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const;
|
||||
::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_; }
|
||||
private:
|
||||
void SharedCtor();
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const;
|
||||
void InternalSwap(TensorProto* other);
|
||||
void UnsafeMergeFrom(const TensorProto& from);
|
||||
protected:
|
||||
explicit TensorProto(::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;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
// optional .tensorflow.DataType dtype = 1;
|
||||
void clear_dtype();
|
||||
static const int kDtypeFieldNumber = 1;
|
||||
::tensorflow::DataType dtype() const;
|
||||
void set_dtype(::tensorflow::DataType value);
|
||||
|
||||
// optional .tensorflow.TensorShapeProto tensor_shape = 2;
|
||||
bool has_tensor_shape() const;
|
||||
void clear_tensor_shape();
|
||||
static const int kTensorShapeFieldNumber = 2;
|
||||
private:
|
||||
void _slow_mutable_tensor_shape();
|
||||
void _slow_set_allocated_tensor_shape(
|
||||
::google::protobuf::Arena* message_arena, ::tensorflow::TensorShapeProto** tensor_shape);
|
||||
::tensorflow::TensorShapeProto* _slow_release_tensor_shape();
|
||||
public:
|
||||
const ::tensorflow::TensorShapeProto& tensor_shape() const;
|
||||
::tensorflow::TensorShapeProto* mutable_tensor_shape();
|
||||
::tensorflow::TensorShapeProto* release_tensor_shape();
|
||||
void set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape);
|
||||
::tensorflow::TensorShapeProto* unsafe_arena_release_tensor_shape();
|
||||
void unsafe_arena_set_allocated_tensor_shape(
|
||||
::tensorflow::TensorShapeProto* tensor_shape);
|
||||
|
||||
// optional int32 version_number = 3;
|
||||
void clear_version_number();
|
||||
static const int kVersionNumberFieldNumber = 3;
|
||||
::google::protobuf::int32 version_number() const;
|
||||
void set_version_number(::google::protobuf::int32 value);
|
||||
|
||||
// optional bytes tensor_content = 4;
|
||||
void clear_tensor_content();
|
||||
static const int kTensorContentFieldNumber = 4;
|
||||
const ::std::string& tensor_content() const;
|
||||
void set_tensor_content(const ::std::string& value);
|
||||
void set_tensor_content(const char* value);
|
||||
void set_tensor_content(const void* value, size_t size);
|
||||
::std::string* mutable_tensor_content();
|
||||
::std::string* release_tensor_content();
|
||||
void set_allocated_tensor_content(::std::string* tensor_content);
|
||||
::std::string* unsafe_arena_release_tensor_content();
|
||||
void unsafe_arena_set_allocated_tensor_content(
|
||||
::std::string* tensor_content);
|
||||
|
||||
// repeated int32 half_val = 13 [packed = true];
|
||||
int half_val_size() const;
|
||||
void clear_half_val();
|
||||
static const int kHalfValFieldNumber = 13;
|
||||
::google::protobuf::int32 half_val(int index) const;
|
||||
void set_half_val(int index, ::google::protobuf::int32 value);
|
||||
void add_half_val(::google::protobuf::int32 value);
|
||||
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
|
||||
half_val() const;
|
||||
::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
|
||||
mutable_half_val();
|
||||
|
||||
// repeated float float_val = 5 [packed = true];
|
||||
int float_val_size() const;
|
||||
void clear_float_val();
|
||||
static const int kFloatValFieldNumber = 5;
|
||||
float float_val(int index) const;
|
||||
void set_float_val(int index, float value);
|
||||
void add_float_val(float value);
|
||||
const ::google::protobuf::RepeatedField< float >&
|
||||
float_val() const;
|
||||
::google::protobuf::RepeatedField< float >*
|
||||
mutable_float_val();
|
||||
|
||||
// repeated double double_val = 6 [packed = true];
|
||||
int double_val_size() const;
|
||||
void clear_double_val();
|
||||
static const int kDoubleValFieldNumber = 6;
|
||||
double double_val(int index) const;
|
||||
void set_double_val(int index, double value);
|
||||
void add_double_val(double value);
|
||||
const ::google::protobuf::RepeatedField< double >&
|
||||
double_val() const;
|
||||
::google::protobuf::RepeatedField< double >*
|
||||
mutable_double_val();
|
||||
|
||||
// repeated int32 int_val = 7 [packed = true];
|
||||
int int_val_size() const;
|
||||
void clear_int_val();
|
||||
static const int kIntValFieldNumber = 7;
|
||||
::google::protobuf::int32 int_val(int index) const;
|
||||
void set_int_val(int index, ::google::protobuf::int32 value);
|
||||
void add_int_val(::google::protobuf::int32 value);
|
||||
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
|
||||
int_val() const;
|
||||
::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
|
||||
mutable_int_val();
|
||||
|
||||
// repeated bytes string_val = 8;
|
||||
int string_val_size() const;
|
||||
void clear_string_val();
|
||||
static const int kStringValFieldNumber = 8;
|
||||
const ::std::string& string_val(int index) const;
|
||||
::std::string* mutable_string_val(int index);
|
||||
void set_string_val(int index, const ::std::string& value);
|
||||
void set_string_val(int index, const char* value);
|
||||
void set_string_val(int index, const void* value, size_t size);
|
||||
::std::string* add_string_val();
|
||||
void add_string_val(const ::std::string& value);
|
||||
void add_string_val(const char* value);
|
||||
void add_string_val(const void* value, size_t size);
|
||||
const ::google::protobuf::RepeatedPtrField< ::std::string>& string_val() const;
|
||||
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_string_val();
|
||||
|
||||
// repeated float scomplex_val = 9 [packed = true];
|
||||
int scomplex_val_size() const;
|
||||
void clear_scomplex_val();
|
||||
static const int kScomplexValFieldNumber = 9;
|
||||
float scomplex_val(int index) const;
|
||||
void set_scomplex_val(int index, float value);
|
||||
void add_scomplex_val(float value);
|
||||
const ::google::protobuf::RepeatedField< float >&
|
||||
scomplex_val() const;
|
||||
::google::protobuf::RepeatedField< float >*
|
||||
mutable_scomplex_val();
|
||||
|
||||
// repeated int64 int64_val = 10 [packed = true];
|
||||
int int64_val_size() const;
|
||||
void clear_int64_val();
|
||||
static const int kInt64ValFieldNumber = 10;
|
||||
::google::protobuf::int64 int64_val(int index) const;
|
||||
void set_int64_val(int index, ::google::protobuf::int64 value);
|
||||
void add_int64_val(::google::protobuf::int64 value);
|
||||
const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
|
||||
int64_val() const;
|
||||
::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
|
||||
mutable_int64_val();
|
||||
|
||||
// repeated bool bool_val = 11 [packed = true];
|
||||
int bool_val_size() const;
|
||||
void clear_bool_val();
|
||||
static const int kBoolValFieldNumber = 11;
|
||||
bool bool_val(int index) const;
|
||||
void set_bool_val(int index, bool value);
|
||||
void add_bool_val(bool value);
|
||||
const ::google::protobuf::RepeatedField< bool >&
|
||||
bool_val() const;
|
||||
::google::protobuf::RepeatedField< bool >*
|
||||
mutable_bool_val();
|
||||
|
||||
// repeated double dcomplex_val = 12 [packed = true];
|
||||
int dcomplex_val_size() const;
|
||||
void clear_dcomplex_val();
|
||||
static const int kDcomplexValFieldNumber = 12;
|
||||
double dcomplex_val(int index) const;
|
||||
void set_dcomplex_val(int index, double value);
|
||||
void add_dcomplex_val(double value);
|
||||
const ::google::protobuf::RepeatedField< double >&
|
||||
dcomplex_val() const;
|
||||
::google::protobuf::RepeatedField< double >*
|
||||
mutable_dcomplex_val();
|
||||
|
||||
// @@protoc_insertion_point(class_scope:tensorflow.TensorProto)
|
||||
private:
|
||||
|
||||
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
|
||||
friend class ::google::protobuf::Arena;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
::google::protobuf::RepeatedField< ::google::protobuf::int32 > half_val_;
|
||||
mutable int _half_val_cached_byte_size_;
|
||||
::google::protobuf::RepeatedField< float > float_val_;
|
||||
mutable int _float_val_cached_byte_size_;
|
||||
::google::protobuf::RepeatedField< double > double_val_;
|
||||
mutable int _double_val_cached_byte_size_;
|
||||
::google::protobuf::RepeatedField< ::google::protobuf::int32 > int_val_;
|
||||
mutable int _int_val_cached_byte_size_;
|
||||
::google::protobuf::RepeatedPtrField< ::std::string> string_val_;
|
||||
::google::protobuf::RepeatedField< float > scomplex_val_;
|
||||
mutable int _scomplex_val_cached_byte_size_;
|
||||
::google::protobuf::RepeatedField< ::google::protobuf::int64 > int64_val_;
|
||||
mutable int _int64_val_cached_byte_size_;
|
||||
::google::protobuf::RepeatedField< bool > bool_val_;
|
||||
mutable int _bool_val_cached_byte_size_;
|
||||
::google::protobuf::RepeatedField< double > dcomplex_val_;
|
||||
mutable int _dcomplex_val_cached_byte_size_;
|
||||
::google::protobuf::internal::ArenaStringPtr tensor_content_;
|
||||
::tensorflow::TensorShapeProto* tensor_shape_;
|
||||
int dtype_;
|
||||
::google::protobuf::int32 version_number_;
|
||||
mutable int _cached_size_;
|
||||
friend void protobuf_InitDefaults_tensor_2eproto_impl();
|
||||
friend void protobuf_AddDesc_tensor_2eproto_impl();
|
||||
friend void protobuf_AssignDesc_tensor_2eproto();
|
||||
friend void protobuf_ShutdownFile_tensor_2eproto();
|
||||
|
||||
void InitAsDefaultInstance();
|
||||
};
|
||||
extern ::google::protobuf::internal::ExplicitlyConstructed<TensorProto> TensorProto_default_instance_;
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#if !PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
// TensorProto
|
||||
|
||||
// optional .tensorflow.DataType dtype = 1;
|
||||
inline void TensorProto::clear_dtype() {
|
||||
dtype_ = 0;
|
||||
}
|
||||
inline ::tensorflow::DataType TensorProto::dtype() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.dtype)
|
||||
return static_cast< ::tensorflow::DataType >(dtype_);
|
||||
}
|
||||
inline void TensorProto::set_dtype(::tensorflow::DataType value) {
|
||||
|
||||
dtype_ = value;
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.dtype)
|
||||
}
|
||||
|
||||
// optional .tensorflow.TensorShapeProto tensor_shape = 2;
|
||||
inline bool TensorProto::has_tensor_shape() const {
|
||||
return this != internal_default_instance() && tensor_shape_ != NULL;
|
||||
}
|
||||
inline void TensorProto::clear_tensor_shape() {
|
||||
if (GetArenaNoVirtual() == NULL && tensor_shape_ != NULL) delete tensor_shape_;
|
||||
tensor_shape_ = NULL;
|
||||
}
|
||||
inline const ::tensorflow::TensorShapeProto& TensorProto::tensor_shape() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.tensor_shape)
|
||||
return tensor_shape_ != NULL ? *tensor_shape_
|
||||
: *::tensorflow::TensorShapeProto::internal_default_instance();
|
||||
}
|
||||
inline ::tensorflow::TensorShapeProto* TensorProto::mutable_tensor_shape() {
|
||||
|
||||
if (tensor_shape_ == NULL) {
|
||||
_slow_mutable_tensor_shape();
|
||||
}
|
||||
// @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.tensor_shape)
|
||||
return tensor_shape_;
|
||||
}
|
||||
inline ::tensorflow::TensorShapeProto* TensorProto::release_tensor_shape() {
|
||||
// @@protoc_insertion_point(field_release:tensorflow.TensorProto.tensor_shape)
|
||||
|
||||
if (GetArenaNoVirtual() != NULL) {
|
||||
return _slow_release_tensor_shape();
|
||||
} else {
|
||||
::tensorflow::TensorShapeProto* temp = tensor_shape_;
|
||||
tensor_shape_ = NULL;
|
||||
return temp;
|
||||
}
|
||||
}
|
||||
inline void TensorProto::set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape) {
|
||||
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
|
||||
if (message_arena == NULL) {
|
||||
delete tensor_shape_;
|
||||
}
|
||||
if (tensor_shape != NULL) {
|
||||
_slow_set_allocated_tensor_shape(message_arena, &tensor_shape);
|
||||
}
|
||||
tensor_shape_ = tensor_shape;
|
||||
if (tensor_shape) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:tensorflow.TensorProto.tensor_shape)
|
||||
}
|
||||
|
||||
// optional int32 version_number = 3;
|
||||
inline void TensorProto::clear_version_number() {
|
||||
version_number_ = 0;
|
||||
}
|
||||
inline ::google::protobuf::int32 TensorProto::version_number() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.version_number)
|
||||
return version_number_;
|
||||
}
|
||||
inline void TensorProto::set_version_number(::google::protobuf::int32 value) {
|
||||
|
||||
version_number_ = value;
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.version_number)
|
||||
}
|
||||
|
||||
// optional bytes tensor_content = 4;
|
||||
inline void TensorProto::clear_tensor_content() {
|
||||
tensor_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
inline const ::std::string& TensorProto::tensor_content() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.tensor_content)
|
||||
return tensor_content_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline void TensorProto::set_tensor_content(const ::std::string& value) {
|
||||
|
||||
tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.tensor_content)
|
||||
}
|
||||
inline void TensorProto::set_tensor_content(const char* value) {
|
||||
|
||||
tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_char:tensorflow.TensorProto.tensor_content)
|
||||
}
|
||||
inline void TensorProto::set_tensor_content(const void* value,
|
||||
size_t size) {
|
||||
|
||||
tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
|
||||
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_pointer:tensorflow.TensorProto.tensor_content)
|
||||
}
|
||||
inline ::std::string* TensorProto::mutable_tensor_content() {
|
||||
|
||||
// @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.tensor_content)
|
||||
return tensor_content_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
inline ::std::string* TensorProto::release_tensor_content() {
|
||||
// @@protoc_insertion_point(field_release:tensorflow.TensorProto.tensor_content)
|
||||
|
||||
return tensor_content_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
inline ::std::string* TensorProto::unsafe_arena_release_tensor_content() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorProto.tensor_content)
|
||||
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
|
||||
|
||||
return tensor_content_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
GetArenaNoVirtual());
|
||||
}
|
||||
inline void TensorProto::set_allocated_tensor_content(::std::string* tensor_content) {
|
||||
if (tensor_content != NULL) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
tensor_content_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tensor_content,
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_allocated:tensorflow.TensorProto.tensor_content)
|
||||
}
|
||||
inline void TensorProto::unsafe_arena_set_allocated_tensor_content(
|
||||
::std::string* tensor_content) {
|
||||
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
|
||||
if (tensor_content != NULL) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
tensor_content_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
tensor_content, GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorProto.tensor_content)
|
||||
}
|
||||
|
||||
// repeated int32 half_val = 13 [packed = true];
|
||||
inline int TensorProto::half_val_size() const {
|
||||
return half_val_.size();
|
||||
}
|
||||
inline void TensorProto::clear_half_val() {
|
||||
half_val_.Clear();
|
||||
}
|
||||
inline ::google::protobuf::int32 TensorProto::half_val(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.half_val)
|
||||
return half_val_.Get(index);
|
||||
}
|
||||
inline void TensorProto::set_half_val(int index, ::google::protobuf::int32 value) {
|
||||
half_val_.Set(index, value);
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.half_val)
|
||||
}
|
||||
inline void TensorProto::add_half_val(::google::protobuf::int32 value) {
|
||||
half_val_.Add(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.half_val)
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
|
||||
TensorProto::half_val() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.half_val)
|
||||
return half_val_;
|
||||
}
|
||||
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
|
||||
TensorProto::mutable_half_val() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.half_val)
|
||||
return &half_val_;
|
||||
}
|
||||
|
||||
// repeated float float_val = 5 [packed = true];
|
||||
inline int TensorProto::float_val_size() const {
|
||||
return float_val_.size();
|
||||
}
|
||||
inline void TensorProto::clear_float_val() {
|
||||
float_val_.Clear();
|
||||
}
|
||||
inline float TensorProto::float_val(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.float_val)
|
||||
return float_val_.Get(index);
|
||||
}
|
||||
inline void TensorProto::set_float_val(int index, float value) {
|
||||
float_val_.Set(index, value);
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.float_val)
|
||||
}
|
||||
inline void TensorProto::add_float_val(float value) {
|
||||
float_val_.Add(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.float_val)
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedField< float >&
|
||||
TensorProto::float_val() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.float_val)
|
||||
return float_val_;
|
||||
}
|
||||
inline ::google::protobuf::RepeatedField< float >*
|
||||
TensorProto::mutable_float_val() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.float_val)
|
||||
return &float_val_;
|
||||
}
|
||||
|
||||
// repeated double double_val = 6 [packed = true];
|
||||
inline int TensorProto::double_val_size() const {
|
||||
return double_val_.size();
|
||||
}
|
||||
inline void TensorProto::clear_double_val() {
|
||||
double_val_.Clear();
|
||||
}
|
||||
inline double TensorProto::double_val(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.double_val)
|
||||
return double_val_.Get(index);
|
||||
}
|
||||
inline void TensorProto::set_double_val(int index, double value) {
|
||||
double_val_.Set(index, value);
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.double_val)
|
||||
}
|
||||
inline void TensorProto::add_double_val(double value) {
|
||||
double_val_.Add(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.double_val)
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedField< double >&
|
||||
TensorProto::double_val() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.double_val)
|
||||
return double_val_;
|
||||
}
|
||||
inline ::google::protobuf::RepeatedField< double >*
|
||||
TensorProto::mutable_double_val() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.double_val)
|
||||
return &double_val_;
|
||||
}
|
||||
|
||||
// repeated int32 int_val = 7 [packed = true];
|
||||
inline int TensorProto::int_val_size() const {
|
||||
return int_val_.size();
|
||||
}
|
||||
inline void TensorProto::clear_int_val() {
|
||||
int_val_.Clear();
|
||||
}
|
||||
inline ::google::protobuf::int32 TensorProto::int_val(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.int_val)
|
||||
return int_val_.Get(index);
|
||||
}
|
||||
inline void TensorProto::set_int_val(int index, ::google::protobuf::int32 value) {
|
||||
int_val_.Set(index, value);
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.int_val)
|
||||
}
|
||||
inline void TensorProto::add_int_val(::google::protobuf::int32 value) {
|
||||
int_val_.Add(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.int_val)
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
|
||||
TensorProto::int_val() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.int_val)
|
||||
return int_val_;
|
||||
}
|
||||
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
|
||||
TensorProto::mutable_int_val() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.int_val)
|
||||
return &int_val_;
|
||||
}
|
||||
|
||||
// repeated bytes string_val = 8;
|
||||
inline int TensorProto::string_val_size() const {
|
||||
return string_val_.size();
|
||||
}
|
||||
inline void TensorProto::clear_string_val() {
|
||||
string_val_.Clear();
|
||||
}
|
||||
inline const ::std::string& TensorProto::string_val(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.string_val)
|
||||
return string_val_.Get(index);
|
||||
}
|
||||
inline ::std::string* TensorProto::mutable_string_val(int index) {
|
||||
// @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.string_val)
|
||||
return string_val_.Mutable(index);
|
||||
}
|
||||
inline void TensorProto::set_string_val(int index, const ::std::string& value) {
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.string_val)
|
||||
string_val_.Mutable(index)->assign(value);
|
||||
}
|
||||
inline void TensorProto::set_string_val(int index, const char* value) {
|
||||
string_val_.Mutable(index)->assign(value);
|
||||
// @@protoc_insertion_point(field_set_char:tensorflow.TensorProto.string_val)
|
||||
}
|
||||
inline void TensorProto::set_string_val(int index, const void* value, size_t size) {
|
||||
string_val_.Mutable(index)->assign(
|
||||
reinterpret_cast<const char*>(value), size);
|
||||
// @@protoc_insertion_point(field_set_pointer:tensorflow.TensorProto.string_val)
|
||||
}
|
||||
inline ::std::string* TensorProto::add_string_val() {
|
||||
// @@protoc_insertion_point(field_add_mutable:tensorflow.TensorProto.string_val)
|
||||
return string_val_.Add();
|
||||
}
|
||||
inline void TensorProto::add_string_val(const ::std::string& value) {
|
||||
string_val_.Add()->assign(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.string_val)
|
||||
}
|
||||
inline void TensorProto::add_string_val(const char* value) {
|
||||
string_val_.Add()->assign(value);
|
||||
// @@protoc_insertion_point(field_add_char:tensorflow.TensorProto.string_val)
|
||||
}
|
||||
inline void TensorProto::add_string_val(const void* value, size_t size) {
|
||||
string_val_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
||||
// @@protoc_insertion_point(field_add_pointer:tensorflow.TensorProto.string_val)
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
|
||||
TensorProto::string_val() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.string_val)
|
||||
return string_val_;
|
||||
}
|
||||
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
|
||||
TensorProto::mutable_string_val() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.string_val)
|
||||
return &string_val_;
|
||||
}
|
||||
|
||||
// repeated float scomplex_val = 9 [packed = true];
|
||||
inline int TensorProto::scomplex_val_size() const {
|
||||
return scomplex_val_.size();
|
||||
}
|
||||
inline void TensorProto::clear_scomplex_val() {
|
||||
scomplex_val_.Clear();
|
||||
}
|
||||
inline float TensorProto::scomplex_val(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.scomplex_val)
|
||||
return scomplex_val_.Get(index);
|
||||
}
|
||||
inline void TensorProto::set_scomplex_val(int index, float value) {
|
||||
scomplex_val_.Set(index, value);
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.scomplex_val)
|
||||
}
|
||||
inline void TensorProto::add_scomplex_val(float value) {
|
||||
scomplex_val_.Add(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.scomplex_val)
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedField< float >&
|
||||
TensorProto::scomplex_val() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.scomplex_val)
|
||||
return scomplex_val_;
|
||||
}
|
||||
inline ::google::protobuf::RepeatedField< float >*
|
||||
TensorProto::mutable_scomplex_val() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.scomplex_val)
|
||||
return &scomplex_val_;
|
||||
}
|
||||
|
||||
// repeated int64 int64_val = 10 [packed = true];
|
||||
inline int TensorProto::int64_val_size() const {
|
||||
return int64_val_.size();
|
||||
}
|
||||
inline void TensorProto::clear_int64_val() {
|
||||
int64_val_.Clear();
|
||||
}
|
||||
inline ::google::protobuf::int64 TensorProto::int64_val(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.int64_val)
|
||||
return int64_val_.Get(index);
|
||||
}
|
||||
inline void TensorProto::set_int64_val(int index, ::google::protobuf::int64 value) {
|
||||
int64_val_.Set(index, value);
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.int64_val)
|
||||
}
|
||||
inline void TensorProto::add_int64_val(::google::protobuf::int64 value) {
|
||||
int64_val_.Add(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.int64_val)
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
|
||||
TensorProto::int64_val() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.int64_val)
|
||||
return int64_val_;
|
||||
}
|
||||
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
|
||||
TensorProto::mutable_int64_val() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.int64_val)
|
||||
return &int64_val_;
|
||||
}
|
||||
|
||||
// repeated bool bool_val = 11 [packed = true];
|
||||
inline int TensorProto::bool_val_size() const {
|
||||
return bool_val_.size();
|
||||
}
|
||||
inline void TensorProto::clear_bool_val() {
|
||||
bool_val_.Clear();
|
||||
}
|
||||
inline bool TensorProto::bool_val(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.bool_val)
|
||||
return bool_val_.Get(index);
|
||||
}
|
||||
inline void TensorProto::set_bool_val(int index, bool value) {
|
||||
bool_val_.Set(index, value);
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.bool_val)
|
||||
}
|
||||
inline void TensorProto::add_bool_val(bool value) {
|
||||
bool_val_.Add(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.bool_val)
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedField< bool >&
|
||||
TensorProto::bool_val() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.bool_val)
|
||||
return bool_val_;
|
||||
}
|
||||
inline ::google::protobuf::RepeatedField< bool >*
|
||||
TensorProto::mutable_bool_val() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.bool_val)
|
||||
return &bool_val_;
|
||||
}
|
||||
|
||||
// repeated double dcomplex_val = 12 [packed = true];
|
||||
inline int TensorProto::dcomplex_val_size() const {
|
||||
return dcomplex_val_.size();
|
||||
}
|
||||
inline void TensorProto::clear_dcomplex_val() {
|
||||
dcomplex_val_.Clear();
|
||||
}
|
||||
inline double TensorProto::dcomplex_val(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.dcomplex_val)
|
||||
return dcomplex_val_.Get(index);
|
||||
}
|
||||
inline void TensorProto::set_dcomplex_val(int index, double value) {
|
||||
dcomplex_val_.Set(index, value);
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.dcomplex_val)
|
||||
}
|
||||
inline void TensorProto::add_dcomplex_val(double value) {
|
||||
dcomplex_val_.Add(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.dcomplex_val)
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedField< double >&
|
||||
TensorProto::dcomplex_val() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.TensorProto.dcomplex_val)
|
||||
return dcomplex_val_;
|
||||
}
|
||||
inline ::google::protobuf::RepeatedField< double >*
|
||||
TensorProto::mutable_dcomplex_val() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.dcomplex_val)
|
||||
return &dcomplex_val_;
|
||||
}
|
||||
|
||||
inline const TensorProto* TensorProto::internal_default_instance() {
|
||||
return &TensorProto_default_instance_.get();
|
||||
}
|
||||
#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace tensorflow
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#endif // PROTOBUF_tensor_2eproto__INCLUDED
|
||||
@@ -0,0 +1,895 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: tensor_shape.proto
|
||||
|
||||
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
|
||||
#include "tensor_shape.pb.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/stubs/port.h>
|
||||
#include <google/protobuf/stubs/once.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace tensorflow {
|
||||
|
||||
namespace {
|
||||
|
||||
const ::google::protobuf::Descriptor* TensorShapeProto_descriptor_ = NULL;
|
||||
const ::google::protobuf::internal::GeneratedMessageReflection*
|
||||
TensorShapeProto_reflection_ = NULL;
|
||||
const ::google::protobuf::Descriptor* TensorShapeProto_Dim_descriptor_ = NULL;
|
||||
const ::google::protobuf::internal::GeneratedMessageReflection*
|
||||
TensorShapeProto_Dim_reflection_ = NULL;
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
void protobuf_AssignDesc_tensor_5fshape_2eproto() GOOGLE_ATTRIBUTE_COLD;
|
||||
void protobuf_AssignDesc_tensor_5fshape_2eproto() {
|
||||
protobuf_AddDesc_tensor_5fshape_2eproto();
|
||||
const ::google::protobuf::FileDescriptor* file =
|
||||
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
|
||||
"tensor_shape.proto");
|
||||
GOOGLE_CHECK(file != NULL);
|
||||
TensorShapeProto_descriptor_ = file->message_type(0);
|
||||
static const int TensorShapeProto_offsets_[2] = {
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorShapeProto, dim_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorShapeProto, unknown_rank_),
|
||||
};
|
||||
TensorShapeProto_reflection_ =
|
||||
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
|
||||
TensorShapeProto_descriptor_,
|
||||
TensorShapeProto::internal_default_instance(),
|
||||
TensorShapeProto_offsets_,
|
||||
-1,
|
||||
-1,
|
||||
-1,
|
||||
sizeof(TensorShapeProto),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorShapeProto, _internal_metadata_));
|
||||
TensorShapeProto_Dim_descriptor_ = TensorShapeProto_descriptor_->nested_type(0);
|
||||
static const int TensorShapeProto_Dim_offsets_[2] = {
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorShapeProto_Dim, size_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorShapeProto_Dim, name_),
|
||||
};
|
||||
TensorShapeProto_Dim_reflection_ =
|
||||
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
|
||||
TensorShapeProto_Dim_descriptor_,
|
||||
TensorShapeProto_Dim::internal_default_instance(),
|
||||
TensorShapeProto_Dim_offsets_,
|
||||
-1,
|
||||
-1,
|
||||
-1,
|
||||
sizeof(TensorShapeProto_Dim),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorShapeProto_Dim, _internal_metadata_));
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
|
||||
void protobuf_AssignDescriptorsOnce() {
|
||||
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
|
||||
&protobuf_AssignDesc_tensor_5fshape_2eproto);
|
||||
}
|
||||
|
||||
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
|
||||
void protobuf_RegisterTypes(const ::std::string&) {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
||||
TensorShapeProto_descriptor_, TensorShapeProto::internal_default_instance());
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
||||
TensorShapeProto_Dim_descriptor_, TensorShapeProto_Dim::internal_default_instance());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
void protobuf_ShutdownFile_tensor_5fshape_2eproto() {
|
||||
TensorShapeProto_default_instance_.Shutdown();
|
||||
delete TensorShapeProto_reflection_;
|
||||
TensorShapeProto_Dim_default_instance_.Shutdown();
|
||||
delete TensorShapeProto_Dim_reflection_;
|
||||
}
|
||||
|
||||
void protobuf_InitDefaults_tensor_5fshape_2eproto_impl() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
TensorShapeProto_default_instance_.DefaultConstruct();
|
||||
::google::protobuf::internal::GetEmptyString();
|
||||
TensorShapeProto_Dim_default_instance_.DefaultConstruct();
|
||||
TensorShapeProto_default_instance_.get_mutable()->InitAsDefaultInstance();
|
||||
TensorShapeProto_Dim_default_instance_.get_mutable()->InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_tensor_5fshape_2eproto_once_);
|
||||
void protobuf_InitDefaults_tensor_5fshape_2eproto() {
|
||||
::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_tensor_5fshape_2eproto_once_,
|
||||
&protobuf_InitDefaults_tensor_5fshape_2eproto_impl);
|
||||
}
|
||||
void protobuf_AddDesc_tensor_5fshape_2eproto_impl() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
protobuf_InitDefaults_tensor_5fshape_2eproto();
|
||||
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
||||
"\n\022tensor_shape.proto\022\ntensorflow\"z\n\020Tens"
|
||||
"orShapeProto\022-\n\003dim\030\002 \003(\0132 .tensorflow.T"
|
||||
"ensorShapeProto.Dim\022\024\n\014unknown_rank\030\003 \001("
|
||||
"\010\032!\n\003Dim\022\014\n\004size\030\001 \001(\003\022\014\n\004name\030\002 \001(\tB2\n\030"
|
||||
"org.tensorflow.frameworkB\021TensorShapePro"
|
||||
"tosP\001\370\001\001b\006proto3", 216);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"tensor_shape.proto", &protobuf_RegisterTypes);
|
||||
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_tensor_5fshape_2eproto);
|
||||
}
|
||||
|
||||
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_tensor_5fshape_2eproto_once_);
|
||||
void protobuf_AddDesc_tensor_5fshape_2eproto() {
|
||||
::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_tensor_5fshape_2eproto_once_,
|
||||
&protobuf_AddDesc_tensor_5fshape_2eproto_impl);
|
||||
}
|
||||
// Force AddDescriptors() to be called at static initialization time.
|
||||
struct StaticDescriptorInitializer_tensor_5fshape_2eproto {
|
||||
StaticDescriptorInitializer_tensor_5fshape_2eproto() {
|
||||
protobuf_AddDesc_tensor_5fshape_2eproto();
|
||||
}
|
||||
} static_descriptor_initializer_tensor_5fshape_2eproto_;
|
||||
|
||||
namespace {
|
||||
|
||||
static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN;
|
||||
static void MergeFromFail(int line) {
|
||||
::google::protobuf::internal::MergeFromFail(__FILE__, line);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const int TensorShapeProto_Dim::kSizeFieldNumber;
|
||||
const int TensorShapeProto_Dim::kNameFieldNumber;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
TensorShapeProto_Dim::TensorShapeProto_Dim()
|
||||
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
||||
if (this != internal_default_instance()) protobuf_InitDefaults_tensor_5fshape_2eproto();
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:tensorflow.TensorShapeProto.Dim)
|
||||
}
|
||||
TensorShapeProto_Dim::TensorShapeProto_Dim(::google::protobuf::Arena* arena)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(arena) {
|
||||
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
||||
protobuf_InitDefaults_tensor_5fshape_2eproto();
|
||||
#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
||||
SharedCtor();
|
||||
RegisterArenaDtor(arena);
|
||||
// @@protoc_insertion_point(arena_constructor:tensorflow.TensorShapeProto.Dim)
|
||||
}
|
||||
|
||||
void TensorShapeProto_Dim::InitAsDefaultInstance() {
|
||||
}
|
||||
|
||||
TensorShapeProto_Dim::TensorShapeProto_Dim(const TensorShapeProto_Dim& from)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(NULL) {
|
||||
SharedCtor();
|
||||
UnsafeMergeFrom(from);
|
||||
// @@protoc_insertion_point(copy_constructor:tensorflow.TensorShapeProto.Dim)
|
||||
}
|
||||
|
||||
void TensorShapeProto_Dim::SharedCtor() {
|
||||
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
size_ = GOOGLE_LONGLONG(0);
|
||||
_cached_size_ = 0;
|
||||
}
|
||||
|
||||
TensorShapeProto_Dim::~TensorShapeProto_Dim() {
|
||||
// @@protoc_insertion_point(destructor:tensorflow.TensorShapeProto.Dim)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
void TensorShapeProto_Dim::SharedDtor() {
|
||||
::google::protobuf::Arena* arena = GetArenaNoVirtual();
|
||||
if (arena != NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena);
|
||||
}
|
||||
|
||||
void TensorShapeProto_Dim::ArenaDtor(void* object) {
|
||||
TensorShapeProto_Dim* _this = reinterpret_cast< TensorShapeProto_Dim* >(object);
|
||||
(void)_this;
|
||||
}
|
||||
void TensorShapeProto_Dim::RegisterArenaDtor(::google::protobuf::Arena* arena) {
|
||||
}
|
||||
void TensorShapeProto_Dim::SetCachedSize(int size) const {
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
||||
_cached_size_ = size;
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
||||
}
|
||||
const ::google::protobuf::Descriptor* TensorShapeProto_Dim::descriptor() {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
return TensorShapeProto_Dim_descriptor_;
|
||||
}
|
||||
|
||||
const TensorShapeProto_Dim& TensorShapeProto_Dim::default_instance() {
|
||||
protobuf_InitDefaults_tensor_5fshape_2eproto();
|
||||
return *internal_default_instance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::ExplicitlyConstructed<TensorShapeProto_Dim> TensorShapeProto_Dim_default_instance_;
|
||||
|
||||
TensorShapeProto_Dim* TensorShapeProto_Dim::New(::google::protobuf::Arena* arena) const {
|
||||
return ::google::protobuf::Arena::CreateMessage<TensorShapeProto_Dim>(arena);
|
||||
}
|
||||
|
||||
void TensorShapeProto_Dim::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:tensorflow.TensorShapeProto.Dim)
|
||||
size_ = GOOGLE_LONGLONG(0);
|
||||
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
|
||||
bool TensorShapeProto_Dim::MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) {
|
||||
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
::google::protobuf::uint32 tag;
|
||||
// @@protoc_insertion_point(parse_start:tensorflow.TensorShapeProto.Dim)
|
||||
for (;;) {
|
||||
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
||||
tag = p.first;
|
||||
if (!p.second) goto handle_unusual;
|
||||
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
||||
// optional int64 size = 1;
|
||||
case 1: {
|
||||
if (tag == 8) {
|
||||
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
||||
input, &size_)));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
if (input->ExpectTag(18)) goto parse_name;
|
||||
break;
|
||||
}
|
||||
|
||||
// optional string name = 2;
|
||||
case 2: {
|
||||
if (tag == 18) {
|
||||
parse_name:
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
||||
input, this->mutable_name()));
|
||||
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
||||
this->name().data(), this->name().length(),
|
||||
::google::protobuf::internal::WireFormatLite::PARSE,
|
||||
"tensorflow.TensorShapeProto.Dim.name"));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
if (input->ExpectAtEnd()) goto success;
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
handle_unusual:
|
||||
if (tag == 0 ||
|
||||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
||||
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
||||
goto success;
|
||||
}
|
||||
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:tensorflow.TensorShapeProto.Dim)
|
||||
return true;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:tensorflow.TensorShapeProto.Dim)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
|
||||
void TensorShapeProto_Dim::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:tensorflow.TensorShapeProto.Dim)
|
||||
// optional int64 size = 1;
|
||||
if (this->size() != 0) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->size(), output);
|
||||
}
|
||||
|
||||
// optional string name = 2;
|
||||
if (this->name().size() > 0) {
|
||||
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
||||
this->name().data(), this->name().length(),
|
||||
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
||||
"tensorflow.TensorShapeProto.Dim.name");
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
||||
2, this->name(), output);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(serialize_end:tensorflow.TensorShapeProto.Dim)
|
||||
}
|
||||
|
||||
::google::protobuf::uint8* TensorShapeProto_Dim::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorShapeProto.Dim)
|
||||
// optional int64 size = 1;
|
||||
if (this->size() != 0) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->size(), target);
|
||||
}
|
||||
|
||||
// optional string name = 2;
|
||||
if (this->name().size() > 0) {
|
||||
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
||||
this->name().data(), this->name().length(),
|
||||
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
||||
"tensorflow.TensorShapeProto.Dim.name");
|
||||
target =
|
||||
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
||||
2, this->name(), target);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorShapeProto.Dim)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t TensorShapeProto_Dim::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorShapeProto.Dim)
|
||||
size_t total_size = 0;
|
||||
|
||||
// optional int64 size = 1;
|
||||
if (this->size() != 0) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::Int64Size(
|
||||
this->size());
|
||||
}
|
||||
|
||||
// optional string name = 2;
|
||||
if (this->name().size() > 0) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::StringSize(
|
||||
this->name());
|
||||
}
|
||||
|
||||
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
||||
_cached_size_ = cached_size;
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void TensorShapeProto_Dim::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorShapeProto.Dim)
|
||||
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
|
||||
const TensorShapeProto_Dim* source =
|
||||
::google::protobuf::internal::DynamicCastToGenerated<const TensorShapeProto_Dim>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TensorShapeProto.Dim)
|
||||
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorShapeProto.Dim)
|
||||
UnsafeMergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void TensorShapeProto_Dim::MergeFrom(const TensorShapeProto_Dim& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorShapeProto.Dim)
|
||||
if (GOOGLE_PREDICT_TRUE(&from != this)) {
|
||||
UnsafeMergeFrom(from);
|
||||
} else {
|
||||
MergeFromFail(__LINE__);
|
||||
}
|
||||
}
|
||||
|
||||
void TensorShapeProto_Dim::UnsafeMergeFrom(const TensorShapeProto_Dim& from) {
|
||||
GOOGLE_DCHECK(&from != this);
|
||||
if (from.size() != 0) {
|
||||
set_size(from.size());
|
||||
}
|
||||
if (from.name().size() > 0) {
|
||||
set_name(from.name());
|
||||
}
|
||||
}
|
||||
|
||||
void TensorShapeProto_Dim::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TensorShapeProto.Dim)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void TensorShapeProto_Dim::CopyFrom(const TensorShapeProto_Dim& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorShapeProto.Dim)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
UnsafeMergeFrom(from);
|
||||
}
|
||||
|
||||
bool TensorShapeProto_Dim::IsInitialized() const {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void TensorShapeProto_Dim::Swap(TensorShapeProto_Dim* other) {
|
||||
if (other == this) return;
|
||||
if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
|
||||
InternalSwap(other);
|
||||
} else {
|
||||
TensorShapeProto_Dim temp;
|
||||
temp.UnsafeMergeFrom(*this);
|
||||
CopyFrom(*other);
|
||||
other->CopyFrom(temp);
|
||||
}
|
||||
}
|
||||
void TensorShapeProto_Dim::UnsafeArenaSwap(TensorShapeProto_Dim* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
|
||||
InternalSwap(other);
|
||||
}
|
||||
void TensorShapeProto_Dim::InternalSwap(TensorShapeProto_Dim* other) {
|
||||
std::swap(size_, other->size_);
|
||||
name_.Swap(&other->name_);
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
std::swap(_cached_size_, other->_cached_size_);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata TensorShapeProto_Dim::GetMetadata() const {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
::google::protobuf::Metadata metadata;
|
||||
metadata.descriptor = TensorShapeProto_Dim_descriptor_;
|
||||
metadata.reflection = TensorShapeProto_Dim_reflection_;
|
||||
return metadata;
|
||||
}
|
||||
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const int TensorShapeProto::kDimFieldNumber;
|
||||
const int TensorShapeProto::kUnknownRankFieldNumber;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
TensorShapeProto::TensorShapeProto()
|
||||
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
||||
if (this != internal_default_instance()) protobuf_InitDefaults_tensor_5fshape_2eproto();
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:tensorflow.TensorShapeProto)
|
||||
}
|
||||
TensorShapeProto::TensorShapeProto(::google::protobuf::Arena* arena)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(arena),
|
||||
dim_(arena) {
|
||||
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
||||
protobuf_InitDefaults_tensor_5fshape_2eproto();
|
||||
#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
||||
SharedCtor();
|
||||
RegisterArenaDtor(arena);
|
||||
// @@protoc_insertion_point(arena_constructor:tensorflow.TensorShapeProto)
|
||||
}
|
||||
|
||||
void TensorShapeProto::InitAsDefaultInstance() {
|
||||
}
|
||||
|
||||
TensorShapeProto::TensorShapeProto(const TensorShapeProto& from)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(NULL) {
|
||||
SharedCtor();
|
||||
UnsafeMergeFrom(from);
|
||||
// @@protoc_insertion_point(copy_constructor:tensorflow.TensorShapeProto)
|
||||
}
|
||||
|
||||
void TensorShapeProto::SharedCtor() {
|
||||
unknown_rank_ = false;
|
||||
_cached_size_ = 0;
|
||||
}
|
||||
|
||||
TensorShapeProto::~TensorShapeProto() {
|
||||
// @@protoc_insertion_point(destructor:tensorflow.TensorShapeProto)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
void TensorShapeProto::SharedDtor() {
|
||||
::google::protobuf::Arena* arena = GetArenaNoVirtual();
|
||||
if (arena != NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void TensorShapeProto::ArenaDtor(void* object) {
|
||||
TensorShapeProto* _this = reinterpret_cast< TensorShapeProto* >(object);
|
||||
(void)_this;
|
||||
}
|
||||
void TensorShapeProto::RegisterArenaDtor(::google::protobuf::Arena* arena) {
|
||||
}
|
||||
void TensorShapeProto::SetCachedSize(int size) const {
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
||||
_cached_size_ = size;
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
||||
}
|
||||
const ::google::protobuf::Descriptor* TensorShapeProto::descriptor() {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
return TensorShapeProto_descriptor_;
|
||||
}
|
||||
|
||||
const TensorShapeProto& TensorShapeProto::default_instance() {
|
||||
protobuf_InitDefaults_tensor_5fshape_2eproto();
|
||||
return *internal_default_instance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::ExplicitlyConstructed<TensorShapeProto> TensorShapeProto_default_instance_;
|
||||
|
||||
TensorShapeProto* TensorShapeProto::New(::google::protobuf::Arena* arena) const {
|
||||
return ::google::protobuf::Arena::CreateMessage<TensorShapeProto>(arena);
|
||||
}
|
||||
|
||||
void TensorShapeProto::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:tensorflow.TensorShapeProto)
|
||||
unknown_rank_ = false;
|
||||
dim_.Clear();
|
||||
}
|
||||
|
||||
bool TensorShapeProto::MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) {
|
||||
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
::google::protobuf::uint32 tag;
|
||||
// @@protoc_insertion_point(parse_start:tensorflow.TensorShapeProto)
|
||||
for (;;) {
|
||||
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
||||
tag = p.first;
|
||||
if (!p.second) goto handle_unusual;
|
||||
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
||||
// repeated .tensorflow.TensorShapeProto.Dim dim = 2;
|
||||
case 2: {
|
||||
if (tag == 18) {
|
||||
DO_(input->IncrementRecursionDepth());
|
||||
parse_loop_dim:
|
||||
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
|
||||
input, add_dim()));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
if (input->ExpectTag(18)) goto parse_loop_dim;
|
||||
input->UnsafeDecrementRecursionDepth();
|
||||
if (input->ExpectTag(24)) goto parse_unknown_rank;
|
||||
break;
|
||||
}
|
||||
|
||||
// optional bool unknown_rank = 3;
|
||||
case 3: {
|
||||
if (tag == 24) {
|
||||
parse_unknown_rank:
|
||||
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
||||
input, &unknown_rank_)));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
if (input->ExpectAtEnd()) goto success;
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
handle_unusual:
|
||||
if (tag == 0 ||
|
||||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
||||
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
||||
goto success;
|
||||
}
|
||||
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:tensorflow.TensorShapeProto)
|
||||
return true;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:tensorflow.TensorShapeProto)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
|
||||
void TensorShapeProto::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:tensorflow.TensorShapeProto)
|
||||
// repeated .tensorflow.TensorShapeProto.Dim dim = 2;
|
||||
for (unsigned int i = 0, n = this->dim_size(); i < n; i++) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
||||
2, this->dim(i), output);
|
||||
}
|
||||
|
||||
// optional bool unknown_rank = 3;
|
||||
if (this->unknown_rank() != 0) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->unknown_rank(), output);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(serialize_end:tensorflow.TensorShapeProto)
|
||||
}
|
||||
|
||||
::google::protobuf::uint8* TensorShapeProto::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorShapeProto)
|
||||
// repeated .tensorflow.TensorShapeProto.Dim dim = 2;
|
||||
for (unsigned int i = 0, n = this->dim_size(); i < n; i++) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
InternalWriteMessageNoVirtualToArray(
|
||||
2, this->dim(i), false, target);
|
||||
}
|
||||
|
||||
// optional bool unknown_rank = 3;
|
||||
if (this->unknown_rank() != 0) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->unknown_rank(), target);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorShapeProto)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t TensorShapeProto::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorShapeProto)
|
||||
size_t total_size = 0;
|
||||
|
||||
// optional bool unknown_rank = 3;
|
||||
if (this->unknown_rank() != 0) {
|
||||
total_size += 1 + 1;
|
||||
}
|
||||
|
||||
// repeated .tensorflow.TensorShapeProto.Dim dim = 2;
|
||||
{
|
||||
unsigned int count = this->dim_size();
|
||||
total_size += 1UL * count;
|
||||
for (unsigned int i = 0; i < count; i++) {
|
||||
total_size +=
|
||||
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
||||
this->dim(i));
|
||||
}
|
||||
}
|
||||
|
||||
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
||||
_cached_size_ = cached_size;
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void TensorShapeProto::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorShapeProto)
|
||||
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
|
||||
const TensorShapeProto* source =
|
||||
::google::protobuf::internal::DynamicCastToGenerated<const TensorShapeProto>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TensorShapeProto)
|
||||
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorShapeProto)
|
||||
UnsafeMergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void TensorShapeProto::MergeFrom(const TensorShapeProto& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorShapeProto)
|
||||
if (GOOGLE_PREDICT_TRUE(&from != this)) {
|
||||
UnsafeMergeFrom(from);
|
||||
} else {
|
||||
MergeFromFail(__LINE__);
|
||||
}
|
||||
}
|
||||
|
||||
void TensorShapeProto::UnsafeMergeFrom(const TensorShapeProto& from) {
|
||||
GOOGLE_DCHECK(&from != this);
|
||||
dim_.MergeFrom(from.dim_);
|
||||
if (from.unknown_rank() != 0) {
|
||||
set_unknown_rank(from.unknown_rank());
|
||||
}
|
||||
}
|
||||
|
||||
void TensorShapeProto::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TensorShapeProto)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void TensorShapeProto::CopyFrom(const TensorShapeProto& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorShapeProto)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
UnsafeMergeFrom(from);
|
||||
}
|
||||
|
||||
bool TensorShapeProto::IsInitialized() const {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void TensorShapeProto::Swap(TensorShapeProto* other) {
|
||||
if (other == this) return;
|
||||
if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
|
||||
InternalSwap(other);
|
||||
} else {
|
||||
TensorShapeProto temp;
|
||||
temp.UnsafeMergeFrom(*this);
|
||||
CopyFrom(*other);
|
||||
other->CopyFrom(temp);
|
||||
}
|
||||
}
|
||||
void TensorShapeProto::UnsafeArenaSwap(TensorShapeProto* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
|
||||
InternalSwap(other);
|
||||
}
|
||||
void TensorShapeProto::InternalSwap(TensorShapeProto* other) {
|
||||
dim_.UnsafeArenaSwap(&other->dim_);
|
||||
std::swap(unknown_rank_, other->unknown_rank_);
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
std::swap(_cached_size_, other->_cached_size_);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata TensorShapeProto::GetMetadata() const {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
::google::protobuf::Metadata metadata;
|
||||
metadata.descriptor = TensorShapeProto_descriptor_;
|
||||
metadata.reflection = TensorShapeProto_reflection_;
|
||||
return metadata;
|
||||
}
|
||||
|
||||
#if PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
// TensorShapeProto_Dim
|
||||
|
||||
// optional int64 size = 1;
|
||||
void TensorShapeProto_Dim::clear_size() {
|
||||
size_ = GOOGLE_LONGLONG(0);
|
||||
}
|
||||
::google::protobuf::int64 TensorShapeProto_Dim::size() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.size)
|
||||
return size_;
|
||||
}
|
||||
void TensorShapeProto_Dim::set_size(::google::protobuf::int64 value) {
|
||||
|
||||
size_ = value;
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.size)
|
||||
}
|
||||
|
||||
// optional string name = 2;
|
||||
void TensorShapeProto_Dim::clear_name() {
|
||||
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
const ::std::string& TensorShapeProto_Dim::name() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.name)
|
||||
return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
void TensorShapeProto_Dim::set_name(const ::std::string& value) {
|
||||
|
||||
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.name)
|
||||
}
|
||||
void TensorShapeProto_Dim::set_name(const char* value) {
|
||||
|
||||
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_char:tensorflow.TensorShapeProto.Dim.name)
|
||||
}
|
||||
void TensorShapeProto_Dim::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:tensorflow.TensorShapeProto.Dim.name)
|
||||
}
|
||||
::std::string* TensorShapeProto_Dim::mutable_name() {
|
||||
|
||||
// @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.Dim.name)
|
||||
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
::std::string* TensorShapeProto_Dim::release_name() {
|
||||
// @@protoc_insertion_point(field_release:tensorflow.TensorShapeProto.Dim.name)
|
||||
|
||||
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
::std::string* TensorShapeProto_Dim::unsafe_arena_release_name() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorShapeProto.Dim.name)
|
||||
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
|
||||
|
||||
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
GetArenaNoVirtual());
|
||||
}
|
||||
void TensorShapeProto_Dim::set_allocated_name(::std::string* name) {
|
||||
if (name != NULL) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_allocated:tensorflow.TensorShapeProto.Dim.name)
|
||||
}
|
||||
void TensorShapeProto_Dim::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:tensorflow.TensorShapeProto.Dim.name)
|
||||
}
|
||||
|
||||
inline const TensorShapeProto_Dim* TensorShapeProto_Dim::internal_default_instance() {
|
||||
return &TensorShapeProto_Dim_default_instance_.get();
|
||||
}
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// TensorShapeProto
|
||||
|
||||
// repeated .tensorflow.TensorShapeProto.Dim dim = 2;
|
||||
int TensorShapeProto::dim_size() const {
|
||||
return dim_.size();
|
||||
}
|
||||
void TensorShapeProto::clear_dim() {
|
||||
dim_.Clear();
|
||||
}
|
||||
const ::tensorflow::TensorShapeProto_Dim& TensorShapeProto::dim(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.dim)
|
||||
return dim_.Get(index);
|
||||
}
|
||||
::tensorflow::TensorShapeProto_Dim* TensorShapeProto::mutable_dim(int index) {
|
||||
// @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.dim)
|
||||
return dim_.Mutable(index);
|
||||
}
|
||||
::tensorflow::TensorShapeProto_Dim* TensorShapeProto::add_dim() {
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorShapeProto.dim)
|
||||
return dim_.Add();
|
||||
}
|
||||
::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >*
|
||||
TensorShapeProto::mutable_dim() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorShapeProto.dim)
|
||||
return &dim_;
|
||||
}
|
||||
const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >&
|
||||
TensorShapeProto::dim() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.TensorShapeProto.dim)
|
||||
return dim_;
|
||||
}
|
||||
|
||||
// optional bool unknown_rank = 3;
|
||||
void TensorShapeProto::clear_unknown_rank() {
|
||||
unknown_rank_ = false;
|
||||
}
|
||||
bool TensorShapeProto::unknown_rank() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.unknown_rank)
|
||||
return unknown_rank_;
|
||||
}
|
||||
void TensorShapeProto::set_unknown_rank(bool value) {
|
||||
|
||||
unknown_rank_ = value;
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.unknown_rank)
|
||||
}
|
||||
|
||||
inline const TensorShapeProto* TensorShapeProto::internal_default_instance() {
|
||||
return &TensorShapeProto_default_instance_.get();
|
||||
}
|
||||
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace tensorflow
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
@@ -0,0 +1,423 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: tensor_shape.proto
|
||||
|
||||
#ifndef PROTOBUF_tensor_5fshape_2eproto__INCLUDED
|
||||
#define PROTOBUF_tensor_5fshape_2eproto__INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3001000
|
||||
#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
|
||||
#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/arena.h>
|
||||
#include <google/protobuf/arenastring.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/unknown_field_set.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace tensorflow {
|
||||
|
||||
// Internal implementation detail -- do not call these.
|
||||
void protobuf_AddDesc_tensor_5fshape_2eproto();
|
||||
void protobuf_InitDefaults_tensor_5fshape_2eproto();
|
||||
void protobuf_AssignDesc_tensor_5fshape_2eproto();
|
||||
void protobuf_ShutdownFile_tensor_5fshape_2eproto();
|
||||
|
||||
class TensorShapeProto;
|
||||
class TensorShapeProto_Dim;
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class TensorShapeProto_Dim : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorShapeProto.Dim) */ {
|
||||
public:
|
||||
TensorShapeProto_Dim();
|
||||
virtual ~TensorShapeProto_Dim();
|
||||
|
||||
TensorShapeProto_Dim(const TensorShapeProto_Dim& from);
|
||||
|
||||
inline TensorShapeProto_Dim& operator=(const TensorShapeProto_Dim& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); }
|
||||
inline void* GetMaybeArenaPointer() const {
|
||||
return MaybeArenaPtr();
|
||||
}
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const TensorShapeProto_Dim& default_instance();
|
||||
|
||||
static const TensorShapeProto_Dim* internal_default_instance();
|
||||
|
||||
void UnsafeArenaSwap(TensorShapeProto_Dim* other);
|
||||
void Swap(TensorShapeProto_Dim* other);
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
inline TensorShapeProto_Dim* New() const { return New(NULL); }
|
||||
|
||||
TensorShapeProto_Dim* New(::google::protobuf::Arena* arena) const;
|
||||
void CopyFrom(const ::google::protobuf::Message& from);
|
||||
void MergeFrom(const ::google::protobuf::Message& from);
|
||||
void CopyFrom(const TensorShapeProto_Dim& from);
|
||||
void MergeFrom(const TensorShapeProto_Dim& from);
|
||||
void Clear();
|
||||
bool IsInitialized() const;
|
||||
|
||||
size_t ByteSizeLong() const;
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input);
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const;
|
||||
::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_; }
|
||||
private:
|
||||
void SharedCtor();
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const;
|
||||
void InternalSwap(TensorShapeProto_Dim* other);
|
||||
void UnsafeMergeFrom(const TensorShapeProto_Dim& from);
|
||||
protected:
|
||||
explicit TensorShapeProto_Dim(::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;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
// optional int64 size = 1;
|
||||
void clear_size();
|
||||
static const int kSizeFieldNumber = 1;
|
||||
::google::protobuf::int64 size() const;
|
||||
void set_size(::google::protobuf::int64 value);
|
||||
|
||||
// optional string name = 2;
|
||||
void clear_name();
|
||||
static const int kNameFieldNumber = 2;
|
||||
const ::std::string& name() const;
|
||||
void set_name(const ::std::string& value);
|
||||
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);
|
||||
::std::string* unsafe_arena_release_name();
|
||||
void unsafe_arena_set_allocated_name(
|
||||
::std::string* name);
|
||||
|
||||
// @@protoc_insertion_point(class_scope:tensorflow.TensorShapeProto.Dim)
|
||||
private:
|
||||
|
||||
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
|
||||
friend class ::google::protobuf::Arena;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
::google::protobuf::internal::ArenaStringPtr name_;
|
||||
::google::protobuf::int64 size_;
|
||||
mutable int _cached_size_;
|
||||
friend void protobuf_InitDefaults_tensor_5fshape_2eproto_impl();
|
||||
friend void protobuf_AddDesc_tensor_5fshape_2eproto_impl();
|
||||
friend void protobuf_AssignDesc_tensor_5fshape_2eproto();
|
||||
friend void protobuf_ShutdownFile_tensor_5fshape_2eproto();
|
||||
|
||||
void InitAsDefaultInstance();
|
||||
};
|
||||
extern ::google::protobuf::internal::ExplicitlyConstructed<TensorShapeProto_Dim> TensorShapeProto_Dim_default_instance_;
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorShapeProto) */ {
|
||||
public:
|
||||
TensorShapeProto();
|
||||
virtual ~TensorShapeProto();
|
||||
|
||||
TensorShapeProto(const TensorShapeProto& from);
|
||||
|
||||
inline TensorShapeProto& operator=(const TensorShapeProto& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); }
|
||||
inline void* GetMaybeArenaPointer() const {
|
||||
return MaybeArenaPtr();
|
||||
}
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const TensorShapeProto& default_instance();
|
||||
|
||||
static const TensorShapeProto* internal_default_instance();
|
||||
|
||||
void UnsafeArenaSwap(TensorShapeProto* other);
|
||||
void Swap(TensorShapeProto* other);
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
inline TensorShapeProto* New() const { return New(NULL); }
|
||||
|
||||
TensorShapeProto* New(::google::protobuf::Arena* arena) const;
|
||||
void CopyFrom(const ::google::protobuf::Message& from);
|
||||
void MergeFrom(const ::google::protobuf::Message& from);
|
||||
void CopyFrom(const TensorShapeProto& from);
|
||||
void MergeFrom(const TensorShapeProto& from);
|
||||
void Clear();
|
||||
bool IsInitialized() const;
|
||||
|
||||
size_t ByteSizeLong() const;
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input);
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const;
|
||||
::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_; }
|
||||
private:
|
||||
void SharedCtor();
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const;
|
||||
void InternalSwap(TensorShapeProto* other);
|
||||
void UnsafeMergeFrom(const TensorShapeProto& from);
|
||||
protected:
|
||||
explicit TensorShapeProto(::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;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
typedef TensorShapeProto_Dim Dim;
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
// repeated .tensorflow.TensorShapeProto.Dim dim = 2;
|
||||
int dim_size() const;
|
||||
void clear_dim();
|
||||
static const int kDimFieldNumber = 2;
|
||||
const ::tensorflow::TensorShapeProto_Dim& dim(int index) const;
|
||||
::tensorflow::TensorShapeProto_Dim* mutable_dim(int index);
|
||||
::tensorflow::TensorShapeProto_Dim* add_dim();
|
||||
::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >*
|
||||
mutable_dim();
|
||||
const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >&
|
||||
dim() const;
|
||||
|
||||
// optional bool unknown_rank = 3;
|
||||
void clear_unknown_rank();
|
||||
static const int kUnknownRankFieldNumber = 3;
|
||||
bool unknown_rank() const;
|
||||
void set_unknown_rank(bool value);
|
||||
|
||||
// @@protoc_insertion_point(class_scope:tensorflow.TensorShapeProto)
|
||||
private:
|
||||
|
||||
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
|
||||
friend class ::google::protobuf::Arena;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim > dim_;
|
||||
bool unknown_rank_;
|
||||
mutable int _cached_size_;
|
||||
friend void protobuf_InitDefaults_tensor_5fshape_2eproto_impl();
|
||||
friend void protobuf_AddDesc_tensor_5fshape_2eproto_impl();
|
||||
friend void protobuf_AssignDesc_tensor_5fshape_2eproto();
|
||||
friend void protobuf_ShutdownFile_tensor_5fshape_2eproto();
|
||||
|
||||
void InitAsDefaultInstance();
|
||||
};
|
||||
extern ::google::protobuf::internal::ExplicitlyConstructed<TensorShapeProto> TensorShapeProto_default_instance_;
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#if !PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
// TensorShapeProto_Dim
|
||||
|
||||
// optional int64 size = 1;
|
||||
inline void TensorShapeProto_Dim::clear_size() {
|
||||
size_ = GOOGLE_LONGLONG(0);
|
||||
}
|
||||
inline ::google::protobuf::int64 TensorShapeProto_Dim::size() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.size)
|
||||
return size_;
|
||||
}
|
||||
inline void TensorShapeProto_Dim::set_size(::google::protobuf::int64 value) {
|
||||
|
||||
size_ = value;
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.size)
|
||||
}
|
||||
|
||||
// optional string name = 2;
|
||||
inline void TensorShapeProto_Dim::clear_name() {
|
||||
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
inline const ::std::string& TensorShapeProto_Dim::name() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.name)
|
||||
return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
inline void TensorShapeProto_Dim::set_name(const ::std::string& value) {
|
||||
|
||||
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.name)
|
||||
}
|
||||
inline void TensorShapeProto_Dim::set_name(const char* value) {
|
||||
|
||||
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_char:tensorflow.TensorShapeProto.Dim.name)
|
||||
}
|
||||
inline void TensorShapeProto_Dim::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:tensorflow.TensorShapeProto.Dim.name)
|
||||
}
|
||||
inline ::std::string* TensorShapeProto_Dim::mutable_name() {
|
||||
|
||||
// @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.Dim.name)
|
||||
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
inline ::std::string* TensorShapeProto_Dim::release_name() {
|
||||
// @@protoc_insertion_point(field_release:tensorflow.TensorShapeProto.Dim.name)
|
||||
|
||||
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
|
||||
}
|
||||
inline ::std::string* TensorShapeProto_Dim::unsafe_arena_release_name() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorShapeProto.Dim.name)
|
||||
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
|
||||
|
||||
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
||||
GetArenaNoVirtual());
|
||||
}
|
||||
inline void TensorShapeProto_Dim::set_allocated_name(::std::string* name) {
|
||||
if (name != NULL) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_allocated:tensorflow.TensorShapeProto.Dim.name)
|
||||
}
|
||||
inline void TensorShapeProto_Dim::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:tensorflow.TensorShapeProto.Dim.name)
|
||||
}
|
||||
|
||||
inline const TensorShapeProto_Dim* TensorShapeProto_Dim::internal_default_instance() {
|
||||
return &TensorShapeProto_Dim_default_instance_.get();
|
||||
}
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// TensorShapeProto
|
||||
|
||||
// repeated .tensorflow.TensorShapeProto.Dim dim = 2;
|
||||
inline int TensorShapeProto::dim_size() const {
|
||||
return dim_.size();
|
||||
}
|
||||
inline void TensorShapeProto::clear_dim() {
|
||||
dim_.Clear();
|
||||
}
|
||||
inline const ::tensorflow::TensorShapeProto_Dim& TensorShapeProto::dim(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.dim)
|
||||
return dim_.Get(index);
|
||||
}
|
||||
inline ::tensorflow::TensorShapeProto_Dim* TensorShapeProto::mutable_dim(int index) {
|
||||
// @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.dim)
|
||||
return dim_.Mutable(index);
|
||||
}
|
||||
inline ::tensorflow::TensorShapeProto_Dim* TensorShapeProto::add_dim() {
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorShapeProto.dim)
|
||||
return dim_.Add();
|
||||
}
|
||||
inline ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >*
|
||||
TensorShapeProto::mutable_dim() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.TensorShapeProto.dim)
|
||||
return &dim_;
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >&
|
||||
TensorShapeProto::dim() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.TensorShapeProto.dim)
|
||||
return dim_;
|
||||
}
|
||||
|
||||
// optional bool unknown_rank = 3;
|
||||
inline void TensorShapeProto::clear_unknown_rank() {
|
||||
unknown_rank_ = false;
|
||||
}
|
||||
inline bool TensorShapeProto::unknown_rank() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.unknown_rank)
|
||||
return unknown_rank_;
|
||||
}
|
||||
inline void TensorShapeProto::set_unknown_rank(bool value) {
|
||||
|
||||
unknown_rank_ = value;
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.unknown_rank)
|
||||
}
|
||||
|
||||
inline const TensorShapeProto* TensorShapeProto::internal_default_instance() {
|
||||
return &TensorShapeProto_default_instance_.get();
|
||||
}
|
||||
#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace tensorflow
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#endif // PROTOBUF_tensor_5fshape_2eproto__INCLUDED
|
||||
@@ -0,0 +1,163 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: types.proto
|
||||
|
||||
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
|
||||
#include "types.pb.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/stubs/port.h>
|
||||
#include <google/protobuf/stubs/once.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace tensorflow {
|
||||
|
||||
namespace {
|
||||
|
||||
const ::google::protobuf::EnumDescriptor* DataType_descriptor_ = NULL;
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
void protobuf_AssignDesc_types_2eproto() GOOGLE_ATTRIBUTE_COLD;
|
||||
void protobuf_AssignDesc_types_2eproto() {
|
||||
protobuf_AddDesc_types_2eproto();
|
||||
const ::google::protobuf::FileDescriptor* file =
|
||||
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
|
||||
"types.proto");
|
||||
GOOGLE_CHECK(file != NULL);
|
||||
DataType_descriptor_ = file->enum_type(0);
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
|
||||
void protobuf_AssignDescriptorsOnce() {
|
||||
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
|
||||
&protobuf_AssignDesc_types_2eproto);
|
||||
}
|
||||
|
||||
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
|
||||
void protobuf_RegisterTypes(const ::std::string&) {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
void protobuf_ShutdownFile_types_2eproto() {
|
||||
}
|
||||
|
||||
void protobuf_InitDefaults_types_2eproto_impl() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
}
|
||||
|
||||
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_types_2eproto_once_);
|
||||
void protobuf_InitDefaults_types_2eproto() {
|
||||
::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_types_2eproto_once_,
|
||||
&protobuf_InitDefaults_types_2eproto_impl);
|
||||
}
|
||||
void protobuf_AddDesc_types_2eproto_impl() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
protobuf_InitDefaults_types_2eproto();
|
||||
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
||||
"\n\013types.proto\022\ntensorflow*\234\005\n\010DataType\022\016"
|
||||
"\n\nDT_INVALID\020\000\022\014\n\010DT_FLOAT\020\001\022\r\n\tDT_DOUBL"
|
||||
"E\020\002\022\014\n\010DT_INT32\020\003\022\014\n\010DT_UINT8\020\004\022\014\n\010DT_IN"
|
||||
"T16\020\005\022\013\n\007DT_INT8\020\006\022\r\n\tDT_STRING\020\007\022\020\n\014DT_"
|
||||
"COMPLEX64\020\010\022\014\n\010DT_INT64\020\t\022\013\n\007DT_BOOL\020\n\022\014"
|
||||
"\n\010DT_QINT8\020\013\022\r\n\tDT_QUINT8\020\014\022\r\n\tDT_QINT32"
|
||||
"\020\r\022\017\n\013DT_BFLOAT16\020\016\022\r\n\tDT_QINT16\020\017\022\016\n\nDT"
|
||||
"_QUINT16\020\020\022\r\n\tDT_UINT16\020\021\022\021\n\rDT_COMPLEX1"
|
||||
"28\020\022\022\013\n\007DT_HALF\020\023\022\020\n\014DT_FLOAT_REF\020e\022\021\n\rD"
|
||||
"T_DOUBLE_REF\020f\022\020\n\014DT_INT32_REF\020g\022\020\n\014DT_U"
|
||||
"INT8_REF\020h\022\020\n\014DT_INT16_REF\020i\022\017\n\013DT_INT8_"
|
||||
"REF\020j\022\021\n\rDT_STRING_REF\020k\022\024\n\020DT_COMPLEX64"
|
||||
"_REF\020l\022\020\n\014DT_INT64_REF\020m\022\017\n\013DT_BOOL_REF\020"
|
||||
"n\022\020\n\014DT_QINT8_REF\020o\022\021\n\rDT_QUINT8_REF\020p\022\021"
|
||||
"\n\rDT_QINT32_REF\020q\022\023\n\017DT_BFLOAT16_REF\020r\022\021"
|
||||
"\n\rDT_QINT16_REF\020s\022\022\n\016DT_QUINT16_REF\020t\022\021\n"
|
||||
"\rDT_UINT16_REF\020u\022\025\n\021DT_COMPLEX128_REF\020v\022"
|
||||
"\017\n\013DT_HALF_REF\020wB,\n\030org.tensorflow.frame"
|
||||
"workB\013TypesProtosP\001\370\001\001b\006proto3", 750);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"types.proto", &protobuf_RegisterTypes);
|
||||
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_types_2eproto);
|
||||
}
|
||||
|
||||
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_types_2eproto_once_);
|
||||
void protobuf_AddDesc_types_2eproto() {
|
||||
::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_types_2eproto_once_,
|
||||
&protobuf_AddDesc_types_2eproto_impl);
|
||||
}
|
||||
// Force AddDescriptors() to be called at static initialization time.
|
||||
struct StaticDescriptorInitializer_types_2eproto {
|
||||
StaticDescriptorInitializer_types_2eproto() {
|
||||
protobuf_AddDesc_types_2eproto();
|
||||
}
|
||||
} static_descriptor_initializer_types_2eproto_;
|
||||
const ::google::protobuf::EnumDescriptor* DataType_descriptor() {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
return DataType_descriptor_;
|
||||
}
|
||||
bool DataType_IsValid(int value) {
|
||||
switch (value) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
case 8:
|
||||
case 9:
|
||||
case 10:
|
||||
case 11:
|
||||
case 12:
|
||||
case 13:
|
||||
case 14:
|
||||
case 15:
|
||||
case 16:
|
||||
case 17:
|
||||
case 18:
|
||||
case 19:
|
||||
case 101:
|
||||
case 102:
|
||||
case 103:
|
||||
case 104:
|
||||
case 105:
|
||||
case 106:
|
||||
case 107:
|
||||
case 108:
|
||||
case 109:
|
||||
case 110:
|
||||
case 111:
|
||||
case 112:
|
||||
case 113:
|
||||
case 114:
|
||||
case 115:
|
||||
case 116:
|
||||
case 117:
|
||||
case 118:
|
||||
case 119:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace tensorflow
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
@@ -0,0 +1,129 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: types.proto
|
||||
|
||||
#ifndef PROTOBUF_types_2eproto__INCLUDED
|
||||
#define PROTOBUF_types_2eproto__INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3001000
|
||||
#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
|
||||
#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/arena.h>
|
||||
#include <google/protobuf/arenastring.h>
|
||||
#include <google/protobuf/generated_message_util.h>
|
||||
#include <google/protobuf/metadata.h>
|
||||
#include <google/protobuf/repeated_field.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/generated_enum_reflection.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace tensorflow {
|
||||
|
||||
// Internal implementation detail -- do not call these.
|
||||
void protobuf_AddDesc_types_2eproto();
|
||||
void protobuf_InitDefaults_types_2eproto();
|
||||
void protobuf_AssignDesc_types_2eproto();
|
||||
void protobuf_ShutdownFile_types_2eproto();
|
||||
|
||||
|
||||
enum DataType {
|
||||
DT_INVALID = 0,
|
||||
DT_FLOAT = 1,
|
||||
DT_DOUBLE = 2,
|
||||
DT_INT32 = 3,
|
||||
DT_UINT8 = 4,
|
||||
DT_INT16 = 5,
|
||||
DT_INT8 = 6,
|
||||
DT_STRING = 7,
|
||||
DT_COMPLEX64 = 8,
|
||||
DT_INT64 = 9,
|
||||
DT_BOOL = 10,
|
||||
DT_QINT8 = 11,
|
||||
DT_QUINT8 = 12,
|
||||
DT_QINT32 = 13,
|
||||
DT_BFLOAT16 = 14,
|
||||
DT_QINT16 = 15,
|
||||
DT_QUINT16 = 16,
|
||||
DT_UINT16 = 17,
|
||||
DT_COMPLEX128 = 18,
|
||||
DT_HALF = 19,
|
||||
DT_FLOAT_REF = 101,
|
||||
DT_DOUBLE_REF = 102,
|
||||
DT_INT32_REF = 103,
|
||||
DT_UINT8_REF = 104,
|
||||
DT_INT16_REF = 105,
|
||||
DT_INT8_REF = 106,
|
||||
DT_STRING_REF = 107,
|
||||
DT_COMPLEX64_REF = 108,
|
||||
DT_INT64_REF = 109,
|
||||
DT_BOOL_REF = 110,
|
||||
DT_QINT8_REF = 111,
|
||||
DT_QUINT8_REF = 112,
|
||||
DT_QINT32_REF = 113,
|
||||
DT_BFLOAT16_REF = 114,
|
||||
DT_QINT16_REF = 115,
|
||||
DT_QUINT16_REF = 116,
|
||||
DT_UINT16_REF = 117,
|
||||
DT_COMPLEX128_REF = 118,
|
||||
DT_HALF_REF = 119,
|
||||
DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
|
||||
DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
|
||||
};
|
||||
bool DataType_IsValid(int value);
|
||||
const DataType DataType_MIN = DT_INVALID;
|
||||
const DataType DataType_MAX = DT_HALF_REF;
|
||||
const int DataType_ARRAYSIZE = DataType_MAX + 1;
|
||||
|
||||
const ::google::protobuf::EnumDescriptor* DataType_descriptor();
|
||||
inline const ::std::string& DataType_Name(DataType value) {
|
||||
return ::google::protobuf::internal::NameOfEnum(
|
||||
DataType_descriptor(), value);
|
||||
}
|
||||
inline bool DataType_Parse(
|
||||
const ::std::string& name, DataType* value) {
|
||||
return ::google::protobuf::internal::ParseNamedEnum<DataType>(
|
||||
DataType_descriptor(), name, value);
|
||||
}
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#if !PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace tensorflow
|
||||
|
||||
#ifndef SWIG
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
|
||||
template <> struct is_proto_enum< ::tensorflow::DataType> : ::google::protobuf::internal::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::DataType>() {
|
||||
return ::tensorflow::DataType_descriptor();
|
||||
}
|
||||
|
||||
} // namespace protobuf
|
||||
} // namespace google
|
||||
#endif // SWIG
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#endif // PROTOBUF_types_2eproto__INCLUDED
|
||||
@@ -0,0 +1,572 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: versions.proto
|
||||
|
||||
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
|
||||
#include "versions.pb.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/stubs/port.h>
|
||||
#include <google/protobuf/stubs/once.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace tensorflow {
|
||||
|
||||
namespace {
|
||||
|
||||
const ::google::protobuf::Descriptor* VersionDef_descriptor_ = NULL;
|
||||
const ::google::protobuf::internal::GeneratedMessageReflection*
|
||||
VersionDef_reflection_ = NULL;
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
void protobuf_AssignDesc_versions_2eproto() GOOGLE_ATTRIBUTE_COLD;
|
||||
void protobuf_AssignDesc_versions_2eproto() {
|
||||
protobuf_AddDesc_versions_2eproto();
|
||||
const ::google::protobuf::FileDescriptor* file =
|
||||
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
|
||||
"versions.proto");
|
||||
GOOGLE_CHECK(file != NULL);
|
||||
VersionDef_descriptor_ = file->message_type(0);
|
||||
static const int VersionDef_offsets_[3] = {
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionDef, producer_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionDef, min_consumer_),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionDef, bad_consumers_),
|
||||
};
|
||||
VersionDef_reflection_ =
|
||||
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
|
||||
VersionDef_descriptor_,
|
||||
VersionDef::internal_default_instance(),
|
||||
VersionDef_offsets_,
|
||||
-1,
|
||||
-1,
|
||||
-1,
|
||||
sizeof(VersionDef),
|
||||
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionDef, _internal_metadata_));
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
|
||||
void protobuf_AssignDescriptorsOnce() {
|
||||
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
|
||||
&protobuf_AssignDesc_versions_2eproto);
|
||||
}
|
||||
|
||||
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
|
||||
void protobuf_RegisterTypes(const ::std::string&) {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
||||
VersionDef_descriptor_, VersionDef::internal_default_instance());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
void protobuf_ShutdownFile_versions_2eproto() {
|
||||
VersionDef_default_instance_.Shutdown();
|
||||
delete VersionDef_reflection_;
|
||||
}
|
||||
|
||||
void protobuf_InitDefaults_versions_2eproto_impl() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
VersionDef_default_instance_.DefaultConstruct();
|
||||
VersionDef_default_instance_.get_mutable()->InitAsDefaultInstance();
|
||||
}
|
||||
|
||||
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_versions_2eproto_once_);
|
||||
void protobuf_InitDefaults_versions_2eproto() {
|
||||
::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_versions_2eproto_once_,
|
||||
&protobuf_InitDefaults_versions_2eproto_impl);
|
||||
}
|
||||
void protobuf_AddDesc_versions_2eproto_impl() {
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
protobuf_InitDefaults_versions_2eproto();
|
||||
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
||||
"\n\016versions.proto\022\ntensorflow\"K\n\nVersionD"
|
||||
"ef\022\020\n\010producer\030\001 \001(\005\022\024\n\014min_consumer\030\002 \001"
|
||||
"(\005\022\025\n\rbad_consumers\030\003 \003(\005B/\n\030org.tensorf"
|
||||
"low.frameworkB\016VersionsProtosP\001\370\001\001b\006prot"
|
||||
"o3", 162);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"versions.proto", &protobuf_RegisterTypes);
|
||||
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_versions_2eproto);
|
||||
}
|
||||
|
||||
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_versions_2eproto_once_);
|
||||
void protobuf_AddDesc_versions_2eproto() {
|
||||
::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_versions_2eproto_once_,
|
||||
&protobuf_AddDesc_versions_2eproto_impl);
|
||||
}
|
||||
// Force AddDescriptors() to be called at static initialization time.
|
||||
struct StaticDescriptorInitializer_versions_2eproto {
|
||||
StaticDescriptorInitializer_versions_2eproto() {
|
||||
protobuf_AddDesc_versions_2eproto();
|
||||
}
|
||||
} static_descriptor_initializer_versions_2eproto_;
|
||||
|
||||
namespace {
|
||||
|
||||
static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN;
|
||||
static void MergeFromFail(int line) {
|
||||
::google::protobuf::internal::MergeFromFail(__FILE__, line);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
const int VersionDef::kProducerFieldNumber;
|
||||
const int VersionDef::kMinConsumerFieldNumber;
|
||||
const int VersionDef::kBadConsumersFieldNumber;
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
||||
VersionDef::VersionDef()
|
||||
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
||||
if (this != internal_default_instance()) protobuf_InitDefaults_versions_2eproto();
|
||||
SharedCtor();
|
||||
// @@protoc_insertion_point(constructor:tensorflow.VersionDef)
|
||||
}
|
||||
VersionDef::VersionDef(::google::protobuf::Arena* arena)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(arena),
|
||||
bad_consumers_(arena) {
|
||||
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
||||
protobuf_InitDefaults_versions_2eproto();
|
||||
#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
||||
SharedCtor();
|
||||
RegisterArenaDtor(arena);
|
||||
// @@protoc_insertion_point(arena_constructor:tensorflow.VersionDef)
|
||||
}
|
||||
|
||||
void VersionDef::InitAsDefaultInstance() {
|
||||
}
|
||||
|
||||
VersionDef::VersionDef(const VersionDef& from)
|
||||
: ::google::protobuf::Message(),
|
||||
_internal_metadata_(NULL) {
|
||||
SharedCtor();
|
||||
UnsafeMergeFrom(from);
|
||||
// @@protoc_insertion_point(copy_constructor:tensorflow.VersionDef)
|
||||
}
|
||||
|
||||
void VersionDef::SharedCtor() {
|
||||
::memset(&producer_, 0, reinterpret_cast<char*>(&min_consumer_) -
|
||||
reinterpret_cast<char*>(&producer_) + sizeof(min_consumer_));
|
||||
_cached_size_ = 0;
|
||||
}
|
||||
|
||||
VersionDef::~VersionDef() {
|
||||
// @@protoc_insertion_point(destructor:tensorflow.VersionDef)
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
void VersionDef::SharedDtor() {
|
||||
::google::protobuf::Arena* arena = GetArenaNoVirtual();
|
||||
if (arena != NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void VersionDef::ArenaDtor(void* object) {
|
||||
VersionDef* _this = reinterpret_cast< VersionDef* >(object);
|
||||
(void)_this;
|
||||
}
|
||||
void VersionDef::RegisterArenaDtor(::google::protobuf::Arena* arena) {
|
||||
}
|
||||
void VersionDef::SetCachedSize(int size) const {
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
||||
_cached_size_ = size;
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
||||
}
|
||||
const ::google::protobuf::Descriptor* VersionDef::descriptor() {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
return VersionDef_descriptor_;
|
||||
}
|
||||
|
||||
const VersionDef& VersionDef::default_instance() {
|
||||
protobuf_InitDefaults_versions_2eproto();
|
||||
return *internal_default_instance();
|
||||
}
|
||||
|
||||
::google::protobuf::internal::ExplicitlyConstructed<VersionDef> VersionDef_default_instance_;
|
||||
|
||||
VersionDef* VersionDef::New(::google::protobuf::Arena* arena) const {
|
||||
return ::google::protobuf::Arena::CreateMessage<VersionDef>(arena);
|
||||
}
|
||||
|
||||
void VersionDef::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:tensorflow.VersionDef)
|
||||
#if defined(__clang__)
|
||||
#define ZR_HELPER_(f) \
|
||||
_Pragma("clang diagnostic push") \
|
||||
_Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
|
||||
__builtin_offsetof(VersionDef, f) \
|
||||
_Pragma("clang diagnostic pop")
|
||||
#else
|
||||
#define ZR_HELPER_(f) reinterpret_cast<char*>(\
|
||||
&reinterpret_cast<VersionDef*>(16)->f)
|
||||
#endif
|
||||
|
||||
#define ZR_(first, last) do {\
|
||||
::memset(&(first), 0,\
|
||||
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
|
||||
} while (0)
|
||||
|
||||
ZR_(producer_, min_consumer_);
|
||||
|
||||
#undef ZR_HELPER_
|
||||
#undef ZR_
|
||||
|
||||
bad_consumers_.Clear();
|
||||
}
|
||||
|
||||
bool VersionDef::MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input) {
|
||||
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
||||
::google::protobuf::uint32 tag;
|
||||
// @@protoc_insertion_point(parse_start:tensorflow.VersionDef)
|
||||
for (;;) {
|
||||
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
||||
tag = p.first;
|
||||
if (!p.second) goto handle_unusual;
|
||||
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
||||
// optional int32 producer = 1;
|
||||
case 1: {
|
||||
if (tag == 8) {
|
||||
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
||||
input, &producer_)));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
if (input->ExpectTag(16)) goto parse_min_consumer;
|
||||
break;
|
||||
}
|
||||
|
||||
// optional int32 min_consumer = 2;
|
||||
case 2: {
|
||||
if (tag == 16) {
|
||||
parse_min_consumer:
|
||||
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
||||
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
||||
input, &min_consumer_)));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
if (input->ExpectTag(26)) goto parse_bad_consumers;
|
||||
break;
|
||||
}
|
||||
|
||||
// repeated int32 bad_consumers = 3;
|
||||
case 3: {
|
||||
if (tag == 26) {
|
||||
parse_bad_consumers:
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
|
||||
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
||||
input, this->mutable_bad_consumers())));
|
||||
} else if (tag == 24) {
|
||||
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
||||
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
||||
1, 26, input, this->mutable_bad_consumers())));
|
||||
} else {
|
||||
goto handle_unusual;
|
||||
}
|
||||
if (input->ExpectAtEnd()) goto success;
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
handle_unusual:
|
||||
if (tag == 0 ||
|
||||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
||||
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
||||
goto success;
|
||||
}
|
||||
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
success:
|
||||
// @@protoc_insertion_point(parse_success:tensorflow.VersionDef)
|
||||
return true;
|
||||
failure:
|
||||
// @@protoc_insertion_point(parse_failure:tensorflow.VersionDef)
|
||||
return false;
|
||||
#undef DO_
|
||||
}
|
||||
|
||||
void VersionDef::SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const {
|
||||
// @@protoc_insertion_point(serialize_start:tensorflow.VersionDef)
|
||||
// optional int32 producer = 1;
|
||||
if (this->producer() != 0) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->producer(), output);
|
||||
}
|
||||
|
||||
// optional int32 min_consumer = 2;
|
||||
if (this->min_consumer() != 0) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->min_consumer(), output);
|
||||
}
|
||||
|
||||
// repeated int32 bad_consumers = 3;
|
||||
if (this->bad_consumers_size() > 0) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
|
||||
output->WriteVarint32(_bad_consumers_cached_byte_size_);
|
||||
}
|
||||
for (int i = 0; i < this->bad_consumers_size(); i++) {
|
||||
::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
|
||||
this->bad_consumers(i), output);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(serialize_end:tensorflow.VersionDef)
|
||||
}
|
||||
|
||||
::google::protobuf::uint8* VersionDef::InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* target) const {
|
||||
(void)deterministic; // Unused
|
||||
// @@protoc_insertion_point(serialize_to_array_start:tensorflow.VersionDef)
|
||||
// optional int32 producer = 1;
|
||||
if (this->producer() != 0) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->producer(), target);
|
||||
}
|
||||
|
||||
// optional int32 min_consumer = 2;
|
||||
if (this->min_consumer() != 0) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->min_consumer(), target);
|
||||
}
|
||||
|
||||
// repeated int32 bad_consumers = 3;
|
||||
if (this->bad_consumers_size() > 0) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
|
||||
3,
|
||||
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
||||
target);
|
||||
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
|
||||
_bad_consumers_cached_byte_size_, target);
|
||||
}
|
||||
for (int i = 0; i < this->bad_consumers_size(); i++) {
|
||||
target = ::google::protobuf::internal::WireFormatLite::
|
||||
WriteInt32NoTagToArray(this->bad_consumers(i), target);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(serialize_to_array_end:tensorflow.VersionDef)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t VersionDef::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:tensorflow.VersionDef)
|
||||
size_t total_size = 0;
|
||||
|
||||
// optional int32 producer = 1;
|
||||
if (this->producer() != 0) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::Int32Size(
|
||||
this->producer());
|
||||
}
|
||||
|
||||
// optional int32 min_consumer = 2;
|
||||
if (this->min_consumer() != 0) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::Int32Size(
|
||||
this->min_consumer());
|
||||
}
|
||||
|
||||
// repeated int32 bad_consumers = 3;
|
||||
{
|
||||
size_t data_size = 0;
|
||||
unsigned int count = this->bad_consumers_size();
|
||||
for (unsigned int i = 0; i < count; i++) {
|
||||
data_size += ::google::protobuf::internal::WireFormatLite::
|
||||
Int32Size(this->bad_consumers(i));
|
||||
}
|
||||
if (data_size > 0) {
|
||||
total_size += 1 +
|
||||
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
|
||||
}
|
||||
int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
||||
_bad_consumers_cached_byte_size_ = cached_size;
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
||||
total_size += data_size;
|
||||
}
|
||||
|
||||
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
||||
_cached_size_ = cached_size;
|
||||
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void VersionDef::MergeFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.VersionDef)
|
||||
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
|
||||
const VersionDef* source =
|
||||
::google::protobuf::internal::DynamicCastToGenerated<const VersionDef>(
|
||||
&from);
|
||||
if (source == NULL) {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.VersionDef)
|
||||
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
||||
} else {
|
||||
// @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.VersionDef)
|
||||
UnsafeMergeFrom(*source);
|
||||
}
|
||||
}
|
||||
|
||||
void VersionDef::MergeFrom(const VersionDef& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.VersionDef)
|
||||
if (GOOGLE_PREDICT_TRUE(&from != this)) {
|
||||
UnsafeMergeFrom(from);
|
||||
} else {
|
||||
MergeFromFail(__LINE__);
|
||||
}
|
||||
}
|
||||
|
||||
void VersionDef::UnsafeMergeFrom(const VersionDef& from) {
|
||||
GOOGLE_DCHECK(&from != this);
|
||||
bad_consumers_.UnsafeMergeFrom(from.bad_consumers_);
|
||||
if (from.producer() != 0) {
|
||||
set_producer(from.producer());
|
||||
}
|
||||
if (from.min_consumer() != 0) {
|
||||
set_min_consumer(from.min_consumer());
|
||||
}
|
||||
}
|
||||
|
||||
void VersionDef::CopyFrom(const ::google::protobuf::Message& from) {
|
||||
// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.VersionDef)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
void VersionDef::CopyFrom(const VersionDef& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.VersionDef)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
UnsafeMergeFrom(from);
|
||||
}
|
||||
|
||||
bool VersionDef::IsInitialized() const {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void VersionDef::Swap(VersionDef* other) {
|
||||
if (other == this) return;
|
||||
if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
|
||||
InternalSwap(other);
|
||||
} else {
|
||||
VersionDef temp;
|
||||
temp.UnsafeMergeFrom(*this);
|
||||
CopyFrom(*other);
|
||||
other->CopyFrom(temp);
|
||||
}
|
||||
}
|
||||
void VersionDef::UnsafeArenaSwap(VersionDef* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
|
||||
InternalSwap(other);
|
||||
}
|
||||
void VersionDef::InternalSwap(VersionDef* other) {
|
||||
std::swap(producer_, other->producer_);
|
||||
std::swap(min_consumer_, other->min_consumer_);
|
||||
bad_consumers_.UnsafeArenaSwap(&other->bad_consumers_);
|
||||
_internal_metadata_.Swap(&other->_internal_metadata_);
|
||||
std::swap(_cached_size_, other->_cached_size_);
|
||||
}
|
||||
|
||||
::google::protobuf::Metadata VersionDef::GetMetadata() const {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
::google::protobuf::Metadata metadata;
|
||||
metadata.descriptor = VersionDef_descriptor_;
|
||||
metadata.reflection = VersionDef_reflection_;
|
||||
return metadata;
|
||||
}
|
||||
|
||||
#if PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
// VersionDef
|
||||
|
||||
// optional int32 producer = 1;
|
||||
void VersionDef::clear_producer() {
|
||||
producer_ = 0;
|
||||
}
|
||||
::google::protobuf::int32 VersionDef::producer() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.VersionDef.producer)
|
||||
return producer_;
|
||||
}
|
||||
void VersionDef::set_producer(::google::protobuf::int32 value) {
|
||||
|
||||
producer_ = value;
|
||||
// @@protoc_insertion_point(field_set:tensorflow.VersionDef.producer)
|
||||
}
|
||||
|
||||
// optional int32 min_consumer = 2;
|
||||
void VersionDef::clear_min_consumer() {
|
||||
min_consumer_ = 0;
|
||||
}
|
||||
::google::protobuf::int32 VersionDef::min_consumer() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.VersionDef.min_consumer)
|
||||
return min_consumer_;
|
||||
}
|
||||
void VersionDef::set_min_consumer(::google::protobuf::int32 value) {
|
||||
|
||||
min_consumer_ = value;
|
||||
// @@protoc_insertion_point(field_set:tensorflow.VersionDef.min_consumer)
|
||||
}
|
||||
|
||||
// repeated int32 bad_consumers = 3;
|
||||
int VersionDef::bad_consumers_size() const {
|
||||
return bad_consumers_.size();
|
||||
}
|
||||
void VersionDef::clear_bad_consumers() {
|
||||
bad_consumers_.Clear();
|
||||
}
|
||||
::google::protobuf::int32 VersionDef::bad_consumers(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.VersionDef.bad_consumers)
|
||||
return bad_consumers_.Get(index);
|
||||
}
|
||||
void VersionDef::set_bad_consumers(int index, ::google::protobuf::int32 value) {
|
||||
bad_consumers_.Set(index, value);
|
||||
// @@protoc_insertion_point(field_set:tensorflow.VersionDef.bad_consumers)
|
||||
}
|
||||
void VersionDef::add_bad_consumers(::google::protobuf::int32 value) {
|
||||
bad_consumers_.Add(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.VersionDef.bad_consumers)
|
||||
}
|
||||
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
|
||||
VersionDef::bad_consumers() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.VersionDef.bad_consumers)
|
||||
return bad_consumers_;
|
||||
}
|
||||
::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
|
||||
VersionDef::mutable_bad_consumers() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.VersionDef.bad_consumers)
|
||||
return &bad_consumers_;
|
||||
}
|
||||
|
||||
inline const VersionDef* VersionDef::internal_default_instance() {
|
||||
return &VersionDef_default_instance_.get();
|
||||
}
|
||||
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace tensorflow
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
@@ -0,0 +1,239 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: versions.proto
|
||||
|
||||
#ifndef PROTOBUF_versions_2eproto__INCLUDED
|
||||
#define PROTOBUF_versions_2eproto__INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3001000
|
||||
#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
|
||||
#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/arena.h>
|
||||
#include <google/protobuf/arenastring.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/unknown_field_set.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace tensorflow {
|
||||
|
||||
// Internal implementation detail -- do not call these.
|
||||
void protobuf_AddDesc_versions_2eproto();
|
||||
void protobuf_InitDefaults_versions_2eproto();
|
||||
void protobuf_AssignDesc_versions_2eproto();
|
||||
void protobuf_ShutdownFile_versions_2eproto();
|
||||
|
||||
class VersionDef;
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class VersionDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.VersionDef) */ {
|
||||
public:
|
||||
VersionDef();
|
||||
virtual ~VersionDef();
|
||||
|
||||
VersionDef(const VersionDef& from);
|
||||
|
||||
inline VersionDef& operator=(const VersionDef& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); }
|
||||
inline void* GetMaybeArenaPointer() const {
|
||||
return MaybeArenaPtr();
|
||||
}
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const VersionDef& default_instance();
|
||||
|
||||
static const VersionDef* internal_default_instance();
|
||||
|
||||
void UnsafeArenaSwap(VersionDef* other);
|
||||
void Swap(VersionDef* other);
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
inline VersionDef* New() const { return New(NULL); }
|
||||
|
||||
VersionDef* New(::google::protobuf::Arena* arena) const;
|
||||
void CopyFrom(const ::google::protobuf::Message& from);
|
||||
void MergeFrom(const ::google::protobuf::Message& from);
|
||||
void CopyFrom(const VersionDef& from);
|
||||
void MergeFrom(const VersionDef& from);
|
||||
void Clear();
|
||||
bool IsInitialized() const;
|
||||
|
||||
size_t ByteSizeLong() const;
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input);
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const;
|
||||
::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_; }
|
||||
private:
|
||||
void SharedCtor();
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const;
|
||||
void InternalSwap(VersionDef* other);
|
||||
void UnsafeMergeFrom(const VersionDef& from);
|
||||
protected:
|
||||
explicit VersionDef(::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;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
// optional int32 producer = 1;
|
||||
void clear_producer();
|
||||
static const int kProducerFieldNumber = 1;
|
||||
::google::protobuf::int32 producer() const;
|
||||
void set_producer(::google::protobuf::int32 value);
|
||||
|
||||
// optional int32 min_consumer = 2;
|
||||
void clear_min_consumer();
|
||||
static const int kMinConsumerFieldNumber = 2;
|
||||
::google::protobuf::int32 min_consumer() const;
|
||||
void set_min_consumer(::google::protobuf::int32 value);
|
||||
|
||||
// repeated int32 bad_consumers = 3;
|
||||
int bad_consumers_size() const;
|
||||
void clear_bad_consumers();
|
||||
static const int kBadConsumersFieldNumber = 3;
|
||||
::google::protobuf::int32 bad_consumers(int index) const;
|
||||
void set_bad_consumers(int index, ::google::protobuf::int32 value);
|
||||
void add_bad_consumers(::google::protobuf::int32 value);
|
||||
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
|
||||
bad_consumers() const;
|
||||
::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
|
||||
mutable_bad_consumers();
|
||||
|
||||
// @@protoc_insertion_point(class_scope:tensorflow.VersionDef)
|
||||
private:
|
||||
|
||||
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
|
||||
friend class ::google::protobuf::Arena;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
::google::protobuf::RepeatedField< ::google::protobuf::int32 > bad_consumers_;
|
||||
mutable int _bad_consumers_cached_byte_size_;
|
||||
::google::protobuf::int32 producer_;
|
||||
::google::protobuf::int32 min_consumer_;
|
||||
mutable int _cached_size_;
|
||||
friend void protobuf_InitDefaults_versions_2eproto_impl();
|
||||
friend void protobuf_AddDesc_versions_2eproto_impl();
|
||||
friend void protobuf_AssignDesc_versions_2eproto();
|
||||
friend void protobuf_ShutdownFile_versions_2eproto();
|
||||
|
||||
void InitAsDefaultInstance();
|
||||
};
|
||||
extern ::google::protobuf::internal::ExplicitlyConstructed<VersionDef> VersionDef_default_instance_;
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#if !PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
// VersionDef
|
||||
|
||||
// optional int32 producer = 1;
|
||||
inline void VersionDef::clear_producer() {
|
||||
producer_ = 0;
|
||||
}
|
||||
inline ::google::protobuf::int32 VersionDef::producer() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.VersionDef.producer)
|
||||
return producer_;
|
||||
}
|
||||
inline void VersionDef::set_producer(::google::protobuf::int32 value) {
|
||||
|
||||
producer_ = value;
|
||||
// @@protoc_insertion_point(field_set:tensorflow.VersionDef.producer)
|
||||
}
|
||||
|
||||
// optional int32 min_consumer = 2;
|
||||
inline void VersionDef::clear_min_consumer() {
|
||||
min_consumer_ = 0;
|
||||
}
|
||||
inline ::google::protobuf::int32 VersionDef::min_consumer() const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.VersionDef.min_consumer)
|
||||
return min_consumer_;
|
||||
}
|
||||
inline void VersionDef::set_min_consumer(::google::protobuf::int32 value) {
|
||||
|
||||
min_consumer_ = value;
|
||||
// @@protoc_insertion_point(field_set:tensorflow.VersionDef.min_consumer)
|
||||
}
|
||||
|
||||
// repeated int32 bad_consumers = 3;
|
||||
inline int VersionDef::bad_consumers_size() const {
|
||||
return bad_consumers_.size();
|
||||
}
|
||||
inline void VersionDef::clear_bad_consumers() {
|
||||
bad_consumers_.Clear();
|
||||
}
|
||||
inline ::google::protobuf::int32 VersionDef::bad_consumers(int index) const {
|
||||
// @@protoc_insertion_point(field_get:tensorflow.VersionDef.bad_consumers)
|
||||
return bad_consumers_.Get(index);
|
||||
}
|
||||
inline void VersionDef::set_bad_consumers(int index, ::google::protobuf::int32 value) {
|
||||
bad_consumers_.Set(index, value);
|
||||
// @@protoc_insertion_point(field_set:tensorflow.VersionDef.bad_consumers)
|
||||
}
|
||||
inline void VersionDef::add_bad_consumers(::google::protobuf::int32 value) {
|
||||
bad_consumers_.Add(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.VersionDef.bad_consumers)
|
||||
}
|
||||
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
|
||||
VersionDef::bad_consumers() const {
|
||||
// @@protoc_insertion_point(field_list:tensorflow.VersionDef.bad_consumers)
|
||||
return bad_consumers_;
|
||||
}
|
||||
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
|
||||
VersionDef::mutable_bad_consumers() {
|
||||
// @@protoc_insertion_point(field_mutable_list:tensorflow.VersionDef.bad_consumers)
|
||||
return &bad_consumers_;
|
||||
}
|
||||
|
||||
inline const VersionDef* VersionDef::internal_default_instance() {
|
||||
return &VersionDef_default_instance_.get();
|
||||
}
|
||||
#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace tensorflow
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#endif // PROTOBUF_versions_2eproto__INCLUDED
|
||||
Reference in New Issue
Block a user