mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
dnn: Updated protobuf files (3.5.1)
This commit is contained in:
@@ -8,38 +8,54 @@
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3001000
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3005000
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
#endif
|
||||
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/arena.h>
|
||||
#include <google/protobuf/arenastring.h>
|
||||
#include <google/protobuf/generated_message_table_driven.h>
|
||||
#include <google/protobuf/generated_message_util.h>
|
||||
#include <google/protobuf/metadata.h>
|
||||
#include <google/protobuf/message.h>
|
||||
#include <google/protobuf/repeated_field.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||
#include <google/protobuf/unknown_field_set.h>
|
||||
#include "tensor_shape.pb.h"
|
||||
#include "types.pb.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace protobuf_tensor_2eproto {
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct {
|
||||
static const ::google::protobuf::internal::ParseTableField entries[];
|
||||
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
|
||||
static const ::google::protobuf::internal::ParseTable schema[1];
|
||||
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
|
||||
static const ::google::protobuf::internal::SerializationTable serialization_table[];
|
||||
static const ::google::protobuf::uint32 offsets[];
|
||||
};
|
||||
void AddDescriptors();
|
||||
void InitDefaultsTensorProtoImpl();
|
||||
void InitDefaultsTensorProto();
|
||||
inline void InitDefaults() {
|
||||
InitDefaultsTensorProto();
|
||||
}
|
||||
} // namespace protobuf_tensor_2eproto
|
||||
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 TensorProtoDefaultTypeInternal;
|
||||
extern TensorProtoDefaultTypeInternal _TensorProto_default_instance_;
|
||||
} // namespace tensorflow
|
||||
namespace tensorflow {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
@@ -54,48 +70,69 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
#if LANG_CXX11
|
||||
TensorProto(TensorProto&& from) noexcept
|
||||
: TensorProto() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); }
|
||||
inline void* GetMaybeArenaPointer() const {
|
||||
inline TensorProto& operator=(TensorProto&& from) noexcept {
|
||||
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
||||
if (this != &from) InternalSwap(&from);
|
||||
} else {
|
||||
CopyFrom(from);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
|
||||
return GetArenaNoVirtual();
|
||||
}
|
||||
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
|
||||
return MaybeArenaPtr();
|
||||
}
|
||||
static const ::google::protobuf::Descriptor* descriptor();
|
||||
static const TensorProto& default_instance();
|
||||
|
||||
static const TensorProto* internal_default_instance();
|
||||
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
||||
static inline const TensorProto* internal_default_instance() {
|
||||
return reinterpret_cast<const TensorProto*>(
|
||||
&_TensorProto_default_instance_);
|
||||
}
|
||||
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
void UnsafeArenaSwap(TensorProto* other);
|
||||
void Swap(TensorProto* other);
|
||||
friend void swap(TensorProto& a, TensorProto& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
inline TensorProto* New() const { return New(NULL); }
|
||||
inline TensorProto* New() const PROTOBUF_FINAL { return New(NULL); }
|
||||
|
||||
TensorProto* New(::google::protobuf::Arena* arena) const;
|
||||
void CopyFrom(const ::google::protobuf::Message& from);
|
||||
void MergeFrom(const ::google::protobuf::Message& from);
|
||||
TensorProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
|
||||
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
|
||||
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
|
||||
void CopyFrom(const TensorProto& from);
|
||||
void MergeFrom(const TensorProto& from);
|
||||
void Clear();
|
||||
bool IsInitialized() const;
|
||||
void Clear() PROTOBUF_FINAL;
|
||||
bool IsInitialized() const PROTOBUF_FINAL;
|
||||
|
||||
size_t ByteSizeLong() const;
|
||||
size_t ByteSizeLong() const PROTOBUF_FINAL;
|
||||
bool MergePartialFromCodedStream(
|
||||
::google::protobuf::io::CodedInputStream* input);
|
||||
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
|
||||
void SerializeWithCachedSizes(
|
||||
::google::protobuf::io::CodedOutputStream* output) const;
|
||||
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
|
||||
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
|
||||
bool deterministic, ::google::protobuf::uint8* output) const;
|
||||
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
|
||||
return InternalSerializeWithCachedSizesToArray(false, output);
|
||||
}
|
||||
int GetCachedSize() const { return _cached_size_; }
|
||||
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
|
||||
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
|
||||
private:
|
||||
void SharedCtor();
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const;
|
||||
void SetCachedSize(int size) const PROTOBUF_FINAL;
|
||||
void InternalSwap(TensorProto* other);
|
||||
void UnsafeMergeFrom(const TensorProto& from);
|
||||
protected:
|
||||
explicit TensorProto(::google::protobuf::Arena* arena);
|
||||
private:
|
||||
@@ -110,68 +147,12 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi
|
||||
}
|
||||
public:
|
||||
|
||||
::google::protobuf::Metadata GetMetadata() const;
|
||||
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
|
||||
|
||||
// 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();
|
||||
@@ -215,10 +196,16 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi
|
||||
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);
|
||||
#if LANG_CXX11
|
||||
void set_string_val(int index, ::std::string&& value);
|
||||
#endif
|
||||
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);
|
||||
#if LANG_CXX11
|
||||
void add_string_val(::std::string&& value);
|
||||
#endif
|
||||
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;
|
||||
@@ -272,15 +259,75 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi
|
||||
::google::protobuf::RepeatedField< double >*
|
||||
mutable_dcomplex_val();
|
||||
|
||||
// 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();
|
||||
|
||||
// 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);
|
||||
#if LANG_CXX11
|
||||
void set_tensor_content(::std::string&& value);
|
||||
#endif
|
||||
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);
|
||||
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
|
||||
" string fields are deprecated and will be removed in a"
|
||||
" future release.")
|
||||
::std::string* unsafe_arena_release_tensor_content();
|
||||
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
|
||||
" string fields are deprecated and will be removed in a"
|
||||
" future release.")
|
||||
void unsafe_arena_set_allocated_tensor_content(
|
||||
::std::string* tensor_content);
|
||||
|
||||
// .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();
|
||||
public:
|
||||
const ::tensorflow::TensorShapeProto& tensor_shape() const;
|
||||
::tensorflow::TensorShapeProto* release_tensor_shape();
|
||||
::tensorflow::TensorShapeProto* mutable_tensor_shape();
|
||||
void set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape);
|
||||
void unsafe_arena_set_allocated_tensor_shape(
|
||||
::tensorflow::TensorShapeProto* tensor_shape);
|
||||
::tensorflow::TensorShapeProto* unsafe_arena_release_tensor_shape();
|
||||
|
||||
// .tensorflow.DataType dtype = 1;
|
||||
void clear_dtype();
|
||||
static const int kDtypeFieldNumber = 1;
|
||||
::tensorflow::DataType dtype() const;
|
||||
void set_dtype(::tensorflow::DataType value);
|
||||
|
||||
// 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);
|
||||
|
||||
// @@protoc_insertion_point(class_scope:tensorflow.TensorProto)
|
||||
private:
|
||||
|
||||
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
|
||||
friend class ::google::protobuf::Arena;
|
||||
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
::google::protobuf::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_;
|
||||
@@ -296,29 +343,28 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi
|
||||
mutable int _bool_val_cached_byte_size_;
|
||||
::google::protobuf::RepeatedField< double > dcomplex_val_;
|
||||
mutable int _dcomplex_val_cached_byte_size_;
|
||||
::google::protobuf::RepeatedField< ::google::protobuf::int32 > half_val_;
|
||||
mutable int _half_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();
|
||||
friend struct ::protobuf_tensor_2eproto::TableStruct;
|
||||
friend void ::protobuf_tensor_2eproto::InitDefaultsTensorProtoImpl();
|
||||
};
|
||||
extern ::google::protobuf::internal::ExplicitlyConstructed<TensorProto> TensorProto_default_instance_;
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#if !PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// TensorProto
|
||||
|
||||
// optional .tensorflow.DataType dtype = 1;
|
||||
// .tensorflow.DataType dtype = 1;
|
||||
inline void TensorProto::clear_dtype() {
|
||||
dtype_ = 0;
|
||||
}
|
||||
@@ -332,18 +378,32 @@ inline void TensorProto::set_dtype(::tensorflow::DataType value) {
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.dtype)
|
||||
}
|
||||
|
||||
// optional .tensorflow.TensorShapeProto tensor_shape = 2;
|
||||
// .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 {
|
||||
const ::tensorflow::TensorShapeProto* p = tensor_shape_;
|
||||
// @@protoc_insertion_point(field_get:tensorflow.TensorProto.tensor_shape)
|
||||
return tensor_shape_ != NULL ? *tensor_shape_
|
||||
: *::tensorflow::TensorShapeProto::internal_default_instance();
|
||||
return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::TensorShapeProto*>(
|
||||
&::tensorflow::_TensorShapeProto_default_instance_);
|
||||
}
|
||||
inline ::tensorflow::TensorShapeProto* TensorProto::release_tensor_shape() {
|
||||
// @@protoc_insertion_point(field_release:tensorflow.TensorProto.tensor_shape)
|
||||
|
||||
::tensorflow::TensorShapeProto* temp = tensor_shape_;
|
||||
if (GetArenaNoVirtual() != NULL) {
|
||||
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
|
||||
}
|
||||
tensor_shape_ = NULL;
|
||||
return temp;
|
||||
}
|
||||
inline ::tensorflow::TensorShapeProto* TensorProto::unsafe_arena_release_tensor_shape() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorProto.tensor_shape)
|
||||
|
||||
::tensorflow::TensorShapeProto* temp = tensor_shape_;
|
||||
tensor_shape_ = NULL;
|
||||
return temp;
|
||||
}
|
||||
inline ::tensorflow::TensorShapeProto* TensorProto::mutable_tensor_shape() {
|
||||
|
||||
@@ -353,35 +413,27 @@ inline ::tensorflow::TensorShapeProto* TensorProto::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) {
|
||||
inline void TensorProto::set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape) {
|
||||
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
|
||||
if (message_arena == NULL) {
|
||||
delete tensor_shape_;
|
||||
delete reinterpret_cast< ::google::protobuf::MessageLite*>(tensor_shape_);
|
||||
}
|
||||
if (tensor_shape != NULL) {
|
||||
_slow_set_allocated_tensor_shape(message_arena, &tensor_shape);
|
||||
}
|
||||
tensor_shape_ = tensor_shape;
|
||||
if (tensor_shape) {
|
||||
::google::protobuf::Arena* submessage_arena =
|
||||
reinterpret_cast< ::google::protobuf::MessageLite*>(tensor_shape)->GetArena();
|
||||
if (message_arena != submessage_arena) {
|
||||
tensor_shape = ::google::protobuf::internal::GetOwnedMessage(
|
||||
message_arena, tensor_shape, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
tensor_shape_ = tensor_shape;
|
||||
// @@protoc_insertion_point(field_set_allocated:tensorflow.TensorProto.tensor_shape)
|
||||
}
|
||||
|
||||
// optional int32 version_number = 3;
|
||||
// int32 version_number = 3;
|
||||
inline void TensorProto::clear_version_number() {
|
||||
version_number_ = 0;
|
||||
}
|
||||
@@ -395,20 +447,29 @@ inline void TensorProto::set_version_number(::google::protobuf::int32 value) {
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.version_number)
|
||||
}
|
||||
|
||||
// optional bytes tensor_content = 4;
|
||||
// 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());
|
||||
return tensor_content_.Get();
|
||||
}
|
||||
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)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void TensorProto::set_tensor_content(::std::string&& value) {
|
||||
|
||||
tensor_content_.Set(
|
||||
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_rvalue:tensorflow.TensorProto.tensor_content)
|
||||
}
|
||||
#endif
|
||||
inline void TensorProto::set_tensor_content(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
|
||||
tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
|
||||
GetArenaNoVirtual());
|
||||
@@ -431,13 +492,6 @@ inline ::std::string* TensorProto::release_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) {
|
||||
|
||||
@@ -448,6 +502,13 @@ inline void TensorProto::set_allocated_tensor_content(::std::string* tensor_cont
|
||||
GetArenaNoVirtual());
|
||||
// @@protoc_insertion_point(field_set_allocated:tensorflow.TensorProto.tensor_content)
|
||||
}
|
||||
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::unsafe_arena_set_allocated_tensor_content(
|
||||
::std::string* tensor_content) {
|
||||
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
|
||||
@@ -600,7 +661,14 @@ 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);
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void TensorProto::set_string_val(int index, ::std::string&& value) {
|
||||
// @@protoc_insertion_point(field_set:tensorflow.TensorProto.string_val)
|
||||
string_val_.Mutable(index)->assign(std::move(value));
|
||||
}
|
||||
#endif
|
||||
inline void TensorProto::set_string_val(int index, const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
string_val_.Mutable(index)->assign(value);
|
||||
// @@protoc_insertion_point(field_set_char:tensorflow.TensorProto.string_val)
|
||||
}
|
||||
@@ -617,7 +685,14 @@ inline void TensorProto::add_string_val(const ::std::string& value) {
|
||||
string_val_.Add()->assign(value);
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.string_val)
|
||||
}
|
||||
#if LANG_CXX11
|
||||
inline void TensorProto::add_string_val(::std::string&& value) {
|
||||
string_val_.Add(std::move(value));
|
||||
// @@protoc_insertion_point(field_add:tensorflow.TensorProto.string_val)
|
||||
}
|
||||
#endif
|
||||
inline void TensorProto::add_string_val(const char* value) {
|
||||
GOOGLE_DCHECK(value != NULL);
|
||||
string_val_.Add()->assign(value);
|
||||
// @@protoc_insertion_point(field_add_char:tensorflow.TensorProto.string_val)
|
||||
}
|
||||
@@ -756,10 +831,9 @@ TensorProto::mutable_dcomplex_val() {
|
||||
return &dcomplex_val_;
|
||||
}
|
||||
|
||||
inline const TensorProto* TensorProto::internal_default_instance() {
|
||||
return &TensorProto_default_instance_.get();
|
||||
}
|
||||
#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user