#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unused_imports)]
#![allow(unused_results)]
#[derive(PartialEq,Clone,Default)]
pub struct CostGraphDef {
pub node: ::protobuf::RepeatedField<CostGraphDef_Node>,
pub cost: ::protobuf::RepeatedField<CostGraphDef_AggregatedCost>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a CostGraphDef {
fn default() -> &'a CostGraphDef {
<CostGraphDef as ::protobuf::Message>::default_instance()
}
}
impl CostGraphDef {
pub fn new() -> CostGraphDef {
::std::default::Default::default()
}
pub fn get_node(&self) -> &[CostGraphDef_Node] {
&self.node
}
pub fn clear_node(&mut self) {
self.node.clear();
}
pub fn set_node(&mut self, v: ::protobuf::RepeatedField<CostGraphDef_Node>) {
self.node = v;
}
pub fn mut_node(&mut self) -> &mut ::protobuf::RepeatedField<CostGraphDef_Node> {
&mut self.node
}
pub fn take_node(&mut self) -> ::protobuf::RepeatedField<CostGraphDef_Node> {
::std::mem::replace(&mut self.node, ::protobuf::RepeatedField::new())
}
pub fn get_cost(&self) -> &[CostGraphDef_AggregatedCost] {
&self.cost
}
pub fn clear_cost(&mut self) {
self.cost.clear();
}
pub fn set_cost(&mut self, v: ::protobuf::RepeatedField<CostGraphDef_AggregatedCost>) {
self.cost = v;
}
pub fn mut_cost(&mut self) -> &mut ::protobuf::RepeatedField<CostGraphDef_AggregatedCost> {
&mut self.cost
}
pub fn take_cost(&mut self) -> ::protobuf::RepeatedField<CostGraphDef_AggregatedCost> {
::std::mem::replace(&mut self.cost, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for CostGraphDef {
fn is_initialized(&self) -> bool {
for v in &self.node {
if !v.is_initialized() {
return false;
}
};
for v in &self.cost {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.node)?;
},
2 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.cost)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.node {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.cost {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
for v in &self.node {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
for v in &self.cost {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> CostGraphDef {
CostGraphDef::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CostGraphDef_Node>>(
"node",
|m: &CostGraphDef| { &m.node },
|m: &mut CostGraphDef| { &mut m.node },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CostGraphDef_AggregatedCost>>(
"cost",
|m: &CostGraphDef| { &m.cost },
|m: &mut CostGraphDef| { &mut m.cost },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<CostGraphDef>(
"CostGraphDef",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static CostGraphDef {
static instance: ::protobuf::rt::LazyV2<CostGraphDef> = ::protobuf::rt::LazyV2::INIT;
instance.get(CostGraphDef::new)
}
}
impl ::protobuf::Clear for CostGraphDef {
fn clear(&mut self) {
self.node.clear();
self.cost.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for CostGraphDef {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CostGraphDef {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct CostGraphDef_Node {
pub name: ::std::string::String,
pub device: ::std::string::String,
pub id: i32,
pub input_info: ::protobuf::RepeatedField<CostGraphDef_Node_InputInfo>,
pub output_info: ::protobuf::RepeatedField<CostGraphDef_Node_OutputInfo>,
pub temporary_memory_size: i64,
pub persistent_memory_size: i64,
pub host_temp_memory_size: i64,
pub device_temp_memory_size: i64,
pub device_persistent_memory_size: i64,
pub compute_cost: i64,
pub compute_time: i64,
pub memory_time: i64,
pub is_final: bool,
pub control_input: ::std::vec::Vec<i32>,
pub inaccurate: bool,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a CostGraphDef_Node {
fn default() -> &'a CostGraphDef_Node {
<CostGraphDef_Node as ::protobuf::Message>::default_instance()
}
}
impl CostGraphDef_Node {
pub fn new() -> CostGraphDef_Node {
::std::default::Default::default()
}
pub fn get_name(&self) -> &str {
&self.name
}
pub fn clear_name(&mut self) {
self.name.clear();
}
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = v;
}
pub fn mut_name(&mut self) -> &mut ::std::string::String {
&mut self.name
}
pub fn take_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.name, ::std::string::String::new())
}
pub fn get_device(&self) -> &str {
&self.device
}
pub fn clear_device(&mut self) {
self.device.clear();
}
pub fn set_device(&mut self, v: ::std::string::String) {
self.device = v;
}
pub fn mut_device(&mut self) -> &mut ::std::string::String {
&mut self.device
}
pub fn take_device(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.device, ::std::string::String::new())
}
pub fn get_id(&self) -> i32 {
self.id
}
pub fn clear_id(&mut self) {
self.id = 0;
}
pub fn set_id(&mut self, v: i32) {
self.id = v;
}
pub fn get_input_info(&self) -> &[CostGraphDef_Node_InputInfo] {
&self.input_info
}
pub fn clear_input_info(&mut self) {
self.input_info.clear();
}
pub fn set_input_info(&mut self, v: ::protobuf::RepeatedField<CostGraphDef_Node_InputInfo>) {
self.input_info = v;
}
pub fn mut_input_info(&mut self) -> &mut ::protobuf::RepeatedField<CostGraphDef_Node_InputInfo> {
&mut self.input_info
}
pub fn take_input_info(&mut self) -> ::protobuf::RepeatedField<CostGraphDef_Node_InputInfo> {
::std::mem::replace(&mut self.input_info, ::protobuf::RepeatedField::new())
}
pub fn get_output_info(&self) -> &[CostGraphDef_Node_OutputInfo] {
&self.output_info
}
pub fn clear_output_info(&mut self) {
self.output_info.clear();
}
pub fn set_output_info(&mut self, v: ::protobuf::RepeatedField<CostGraphDef_Node_OutputInfo>) {
self.output_info = v;
}
pub fn mut_output_info(&mut self) -> &mut ::protobuf::RepeatedField<CostGraphDef_Node_OutputInfo> {
&mut self.output_info
}
pub fn take_output_info(&mut self) -> ::protobuf::RepeatedField<CostGraphDef_Node_OutputInfo> {
::std::mem::replace(&mut self.output_info, ::protobuf::RepeatedField::new())
}
pub fn get_temporary_memory_size(&self) -> i64 {
self.temporary_memory_size
}
pub fn clear_temporary_memory_size(&mut self) {
self.temporary_memory_size = 0;
}
pub fn set_temporary_memory_size(&mut self, v: i64) {
self.temporary_memory_size = v;
}
pub fn get_persistent_memory_size(&self) -> i64 {
self.persistent_memory_size
}
pub fn clear_persistent_memory_size(&mut self) {
self.persistent_memory_size = 0;
}
pub fn set_persistent_memory_size(&mut self, v: i64) {
self.persistent_memory_size = v;
}
pub fn get_host_temp_memory_size(&self) -> i64 {
self.host_temp_memory_size
}
pub fn clear_host_temp_memory_size(&mut self) {
self.host_temp_memory_size = 0;
}
pub fn set_host_temp_memory_size(&mut self, v: i64) {
self.host_temp_memory_size = v;
}
pub fn get_device_temp_memory_size(&self) -> i64 {
self.device_temp_memory_size
}
pub fn clear_device_temp_memory_size(&mut self) {
self.device_temp_memory_size = 0;
}
pub fn set_device_temp_memory_size(&mut self, v: i64) {
self.device_temp_memory_size = v;
}
pub fn get_device_persistent_memory_size(&self) -> i64 {
self.device_persistent_memory_size
}
pub fn clear_device_persistent_memory_size(&mut self) {
self.device_persistent_memory_size = 0;
}
pub fn set_device_persistent_memory_size(&mut self, v: i64) {
self.device_persistent_memory_size = v;
}
pub fn get_compute_cost(&self) -> i64 {
self.compute_cost
}
pub fn clear_compute_cost(&mut self) {
self.compute_cost = 0;
}
pub fn set_compute_cost(&mut self, v: i64) {
self.compute_cost = v;
}
pub fn get_compute_time(&self) -> i64 {
self.compute_time
}
pub fn clear_compute_time(&mut self) {
self.compute_time = 0;
}
pub fn set_compute_time(&mut self, v: i64) {
self.compute_time = v;
}
pub fn get_memory_time(&self) -> i64 {
self.memory_time
}
pub fn clear_memory_time(&mut self) {
self.memory_time = 0;
}
pub fn set_memory_time(&mut self, v: i64) {
self.memory_time = v;
}
pub fn get_is_final(&self) -> bool {
self.is_final
}
pub fn clear_is_final(&mut self) {
self.is_final = false;
}
pub fn set_is_final(&mut self, v: bool) {
self.is_final = v;
}
pub fn get_control_input(&self) -> &[i32] {
&self.control_input
}
pub fn clear_control_input(&mut self) {
self.control_input.clear();
}
pub fn set_control_input(&mut self, v: ::std::vec::Vec<i32>) {
self.control_input = v;
}
pub fn mut_control_input(&mut self) -> &mut ::std::vec::Vec<i32> {
&mut self.control_input
}
pub fn take_control_input(&mut self) -> ::std::vec::Vec<i32> {
::std::mem::replace(&mut self.control_input, ::std::vec::Vec::new())
}
pub fn get_inaccurate(&self) -> bool {
self.inaccurate
}
pub fn clear_inaccurate(&mut self) {
self.inaccurate = false;
}
pub fn set_inaccurate(&mut self, v: bool) {
self.inaccurate = v;
}
}
impl ::protobuf::Message for CostGraphDef_Node {
fn is_initialized(&self) -> bool {
for v in &self.input_info {
if !v.is_initialized() {
return false;
}
};
for v in &self.output_info {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.device)?;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.id = tmp;
},
4 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.input_info)?;
},
5 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.output_info)?;
},
6 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int64()?;
self.temporary_memory_size = tmp;
},
12 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int64()?;
self.persistent_memory_size = tmp;
},
10 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int64()?;
self.host_temp_memory_size = tmp;
},
11 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int64()?;
self.device_temp_memory_size = tmp;
},
16 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int64()?;
self.device_persistent_memory_size = tmp;
},
9 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int64()?;
self.compute_cost = tmp;
},
14 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int64()?;
self.compute_time = tmp;
},
15 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int64()?;
self.memory_time = tmp;
},
7 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_bool()?;
self.is_final = tmp;
},
8 => {
::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.control_input)?;
},
17 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_bool()?;
self.inaccurate = tmp;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.name.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.name);
}
if !self.device.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.device);
}
if self.id != 0 {
my_size += ::protobuf::rt::value_size(3, self.id, ::protobuf::wire_format::WireTypeVarint);
}
for value in &self.input_info {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.output_info {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
if self.temporary_memory_size != 0 {
my_size += ::protobuf::rt::value_size(6, self.temporary_memory_size, ::protobuf::wire_format::WireTypeVarint);
}
if self.persistent_memory_size != 0 {
my_size += ::protobuf::rt::value_size(12, self.persistent_memory_size, ::protobuf::wire_format::WireTypeVarint);
}
if self.host_temp_memory_size != 0 {
my_size += ::protobuf::rt::value_size(10, self.host_temp_memory_size, ::protobuf::wire_format::WireTypeVarint);
}
if self.device_temp_memory_size != 0 {
my_size += ::protobuf::rt::value_size(11, self.device_temp_memory_size, ::protobuf::wire_format::WireTypeVarint);
}
if self.device_persistent_memory_size != 0 {
my_size += ::protobuf::rt::value_size(16, self.device_persistent_memory_size, ::protobuf::wire_format::WireTypeVarint);
}
if self.compute_cost != 0 {
my_size += ::protobuf::rt::value_size(9, self.compute_cost, ::protobuf::wire_format::WireTypeVarint);
}
if self.compute_time != 0 {
my_size += ::protobuf::rt::value_size(14, self.compute_time, ::protobuf::wire_format::WireTypeVarint);
}
if self.memory_time != 0 {
my_size += ::protobuf::rt::value_size(15, self.memory_time, ::protobuf::wire_format::WireTypeVarint);
}
if self.is_final != false {
my_size += 2;
}
for value in &self.control_input {
my_size += ::protobuf::rt::value_size(8, *value, ::protobuf::wire_format::WireTypeVarint);
};
if self.inaccurate != false {
my_size += 3;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if !self.name.is_empty() {
os.write_string(1, &self.name)?;
}
if !self.device.is_empty() {
os.write_string(2, &self.device)?;
}
if self.id != 0 {
os.write_int32(3, self.id)?;
}
for v in &self.input_info {
os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
for v in &self.output_info {
os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
if self.temporary_memory_size != 0 {
os.write_int64(6, self.temporary_memory_size)?;
}
if self.persistent_memory_size != 0 {
os.write_int64(12, self.persistent_memory_size)?;
}
if self.host_temp_memory_size != 0 {
os.write_int64(10, self.host_temp_memory_size)?;
}
if self.device_temp_memory_size != 0 {
os.write_int64(11, self.device_temp_memory_size)?;
}
if self.device_persistent_memory_size != 0 {
os.write_int64(16, self.device_persistent_memory_size)?;
}
if self.compute_cost != 0 {
os.write_int64(9, self.compute_cost)?;
}
if self.compute_time != 0 {
os.write_int64(14, self.compute_time)?;
}
if self.memory_time != 0 {
os.write_int64(15, self.memory_time)?;
}
if self.is_final != false {
os.write_bool(7, self.is_final)?;
}
for v in &self.control_input {
os.write_int32(8, *v)?;
};
if self.inaccurate != false {
os.write_bool(17, self.inaccurate)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> CostGraphDef_Node {
CostGraphDef_Node::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"name",
|m: &CostGraphDef_Node| { &m.name },
|m: &mut CostGraphDef_Node| { &mut m.name },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"device",
|m: &CostGraphDef_Node| { &m.device },
|m: &mut CostGraphDef_Node| { &mut m.device },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"id",
|m: &CostGraphDef_Node| { &m.id },
|m: &mut CostGraphDef_Node| { &mut m.id },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CostGraphDef_Node_InputInfo>>(
"input_info",
|m: &CostGraphDef_Node| { &m.input_info },
|m: &mut CostGraphDef_Node| { &mut m.input_info },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CostGraphDef_Node_OutputInfo>>(
"output_info",
|m: &CostGraphDef_Node| { &m.output_info },
|m: &mut CostGraphDef_Node| { &mut m.output_info },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
"temporary_memory_size",
|m: &CostGraphDef_Node| { &m.temporary_memory_size },
|m: &mut CostGraphDef_Node| { &mut m.temporary_memory_size },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
"persistent_memory_size",
|m: &CostGraphDef_Node| { &m.persistent_memory_size },
|m: &mut CostGraphDef_Node| { &mut m.persistent_memory_size },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
"host_temp_memory_size",
|m: &CostGraphDef_Node| { &m.host_temp_memory_size },
|m: &mut CostGraphDef_Node| { &mut m.host_temp_memory_size },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
"device_temp_memory_size",
|m: &CostGraphDef_Node| { &m.device_temp_memory_size },
|m: &mut CostGraphDef_Node| { &mut m.device_temp_memory_size },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
"device_persistent_memory_size",
|m: &CostGraphDef_Node| { &m.device_persistent_memory_size },
|m: &mut CostGraphDef_Node| { &mut m.device_persistent_memory_size },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
"compute_cost",
|m: &CostGraphDef_Node| { &m.compute_cost },
|m: &mut CostGraphDef_Node| { &mut m.compute_cost },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
"compute_time",
|m: &CostGraphDef_Node| { &m.compute_time },
|m: &mut CostGraphDef_Node| { &mut m.compute_time },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
"memory_time",
|m: &CostGraphDef_Node| { &m.memory_time },
|m: &mut CostGraphDef_Node| { &mut m.memory_time },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"is_final",
|m: &CostGraphDef_Node| { &m.is_final },
|m: &mut CostGraphDef_Node| { &mut m.is_final },
));
fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"control_input",
|m: &CostGraphDef_Node| { &m.control_input },
|m: &mut CostGraphDef_Node| { &mut m.control_input },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"inaccurate",
|m: &CostGraphDef_Node| { &m.inaccurate },
|m: &mut CostGraphDef_Node| { &mut m.inaccurate },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<CostGraphDef_Node>(
"CostGraphDef.Node",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static CostGraphDef_Node {
static instance: ::protobuf::rt::LazyV2<CostGraphDef_Node> = ::protobuf::rt::LazyV2::INIT;
instance.get(CostGraphDef_Node::new)
}
}
impl ::protobuf::Clear for CostGraphDef_Node {
fn clear(&mut self) {
self.name.clear();
self.device.clear();
self.id = 0;
self.input_info.clear();
self.output_info.clear();
self.temporary_memory_size = 0;
self.persistent_memory_size = 0;
self.host_temp_memory_size = 0;
self.device_temp_memory_size = 0;
self.device_persistent_memory_size = 0;
self.compute_cost = 0;
self.compute_time = 0;
self.memory_time = 0;
self.is_final = false;
self.control_input.clear();
self.inaccurate = false;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for CostGraphDef_Node {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CostGraphDef_Node {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct CostGraphDef_Node_InputInfo {
pub preceding_node: i32,
pub preceding_port: i32,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a CostGraphDef_Node_InputInfo {
fn default() -> &'a CostGraphDef_Node_InputInfo {
<CostGraphDef_Node_InputInfo as ::protobuf::Message>::default_instance()
}
}
impl CostGraphDef_Node_InputInfo {
pub fn new() -> CostGraphDef_Node_InputInfo {
::std::default::Default::default()
}
pub fn get_preceding_node(&self) -> i32 {
self.preceding_node
}
pub fn clear_preceding_node(&mut self) {
self.preceding_node = 0;
}
pub fn set_preceding_node(&mut self, v: i32) {
self.preceding_node = v;
}
pub fn get_preceding_port(&self) -> i32 {
self.preceding_port
}
pub fn clear_preceding_port(&mut self) {
self.preceding_port = 0;
}
pub fn set_preceding_port(&mut self, v: i32) {
self.preceding_port = v;
}
}
impl ::protobuf::Message for CostGraphDef_Node_InputInfo {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.preceding_node = tmp;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.preceding_port = tmp;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.preceding_node != 0 {
my_size += ::protobuf::rt::value_size(1, self.preceding_node, ::protobuf::wire_format::WireTypeVarint);
}
if self.preceding_port != 0 {
my_size += ::protobuf::rt::value_size(2, self.preceding_port, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if self.preceding_node != 0 {
os.write_int32(1, self.preceding_node)?;
}
if self.preceding_port != 0 {
os.write_int32(2, self.preceding_port)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> CostGraphDef_Node_InputInfo {
CostGraphDef_Node_InputInfo::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"preceding_node",
|m: &CostGraphDef_Node_InputInfo| { &m.preceding_node },
|m: &mut CostGraphDef_Node_InputInfo| { &mut m.preceding_node },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"preceding_port",
|m: &CostGraphDef_Node_InputInfo| { &m.preceding_port },
|m: &mut CostGraphDef_Node_InputInfo| { &mut m.preceding_port },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<CostGraphDef_Node_InputInfo>(
"CostGraphDef.Node.InputInfo",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static CostGraphDef_Node_InputInfo {
static instance: ::protobuf::rt::LazyV2<CostGraphDef_Node_InputInfo> = ::protobuf::rt::LazyV2::INIT;
instance.get(CostGraphDef_Node_InputInfo::new)
}
}
impl ::protobuf::Clear for CostGraphDef_Node_InputInfo {
fn clear(&mut self) {
self.preceding_node = 0;
self.preceding_port = 0;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for CostGraphDef_Node_InputInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CostGraphDef_Node_InputInfo {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct CostGraphDef_Node_OutputInfo {
pub size: i64,
pub alias_input_port: i64,
pub shape: ::protobuf::SingularPtrField<super::tensor_shape::TensorShapeProto>,
pub dtype: super::types::DataType,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a CostGraphDef_Node_OutputInfo {
fn default() -> &'a CostGraphDef_Node_OutputInfo {
<CostGraphDef_Node_OutputInfo as ::protobuf::Message>::default_instance()
}
}
impl CostGraphDef_Node_OutputInfo {
pub fn new() -> CostGraphDef_Node_OutputInfo {
::std::default::Default::default()
}
pub fn get_size(&self) -> i64 {
self.size
}
pub fn clear_size(&mut self) {
self.size = 0;
}
pub fn set_size(&mut self, v: i64) {
self.size = v;
}
pub fn get_alias_input_port(&self) -> i64 {
self.alias_input_port
}
pub fn clear_alias_input_port(&mut self) {
self.alias_input_port = 0;
}
pub fn set_alias_input_port(&mut self, v: i64) {
self.alias_input_port = v;
}
pub fn get_shape(&self) -> &super::tensor_shape::TensorShapeProto {
self.shape.as_ref().unwrap_or_else(|| <super::tensor_shape::TensorShapeProto as ::protobuf::Message>::default_instance())
}
pub fn clear_shape(&mut self) {
self.shape.clear();
}
pub fn has_shape(&self) -> bool {
self.shape.is_some()
}
pub fn set_shape(&mut self, v: super::tensor_shape::TensorShapeProto) {
self.shape = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_shape(&mut self) -> &mut super::tensor_shape::TensorShapeProto {
if self.shape.is_none() {
self.shape.set_default();
}
self.shape.as_mut().unwrap()
}
pub fn take_shape(&mut self) -> super::tensor_shape::TensorShapeProto {
self.shape.take().unwrap_or_else(|| super::tensor_shape::TensorShapeProto::new())
}
pub fn get_dtype(&self) -> super::types::DataType {
self.dtype
}
pub fn clear_dtype(&mut self) {
self.dtype = super::types::DataType::DT_INVALID;
}
pub fn set_dtype(&mut self, v: super::types::DataType) {
self.dtype = v;
}
}
impl ::protobuf::Message for CostGraphDef_Node_OutputInfo {
fn is_initialized(&self) -> bool {
for v in &self.shape {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int64()?;
self.size = tmp;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int64()?;
self.alias_input_port = tmp;
},
3 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.shape)?;
},
4 => {
::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.dtype, 4, &mut self.unknown_fields)?
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.size != 0 {
my_size += ::protobuf::rt::value_size(1, self.size, ::protobuf::wire_format::WireTypeVarint);
}
if self.alias_input_port != 0 {
my_size += ::protobuf::rt::value_size(2, self.alias_input_port, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(ref v) = self.shape.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if self.dtype != super::types::DataType::DT_INVALID {
my_size += ::protobuf::rt::enum_size(4, self.dtype);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if self.size != 0 {
os.write_int64(1, self.size)?;
}
if self.alias_input_port != 0 {
os.write_int64(2, self.alias_input_port)?;
}
if let Some(ref v) = self.shape.as_ref() {
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if self.dtype != super::types::DataType::DT_INVALID {
os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.dtype))?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> CostGraphDef_Node_OutputInfo {
CostGraphDef_Node_OutputInfo::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
"size",
|m: &CostGraphDef_Node_OutputInfo| { &m.size },
|m: &mut CostGraphDef_Node_OutputInfo| { &mut m.size },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
"alias_input_port",
|m: &CostGraphDef_Node_OutputInfo| { &m.alias_input_port },
|m: &mut CostGraphDef_Node_OutputInfo| { &mut m.alias_input_port },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::tensor_shape::TensorShapeProto>>(
"shape",
|m: &CostGraphDef_Node_OutputInfo| { &m.shape },
|m: &mut CostGraphDef_Node_OutputInfo| { &mut m.shape },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<super::types::DataType>>(
"dtype",
|m: &CostGraphDef_Node_OutputInfo| { &m.dtype },
|m: &mut CostGraphDef_Node_OutputInfo| { &mut m.dtype },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<CostGraphDef_Node_OutputInfo>(
"CostGraphDef.Node.OutputInfo",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static CostGraphDef_Node_OutputInfo {
static instance: ::protobuf::rt::LazyV2<CostGraphDef_Node_OutputInfo> = ::protobuf::rt::LazyV2::INIT;
instance.get(CostGraphDef_Node_OutputInfo::new)
}
}
impl ::protobuf::Clear for CostGraphDef_Node_OutputInfo {
fn clear(&mut self) {
self.size = 0;
self.alias_input_port = 0;
self.shape.clear();
self.dtype = super::types::DataType::DT_INVALID;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for CostGraphDef_Node_OutputInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CostGraphDef_Node_OutputInfo {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct CostGraphDef_AggregatedCost {
pub cost: f32,
pub dimension: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a CostGraphDef_AggregatedCost {
fn default() -> &'a CostGraphDef_AggregatedCost {
<CostGraphDef_AggregatedCost as ::protobuf::Message>::default_instance()
}
}
impl CostGraphDef_AggregatedCost {
pub fn new() -> CostGraphDef_AggregatedCost {
::std::default::Default::default()
}
pub fn get_cost(&self) -> f32 {
self.cost
}
pub fn clear_cost(&mut self) {
self.cost = 0.;
}
pub fn set_cost(&mut self, v: f32) {
self.cost = v;
}
pub fn get_dimension(&self) -> &str {
&self.dimension
}
pub fn clear_dimension(&mut self) {
self.dimension.clear();
}
pub fn set_dimension(&mut self, v: ::std::string::String) {
self.dimension = v;
}
pub fn mut_dimension(&mut self) -> &mut ::std::string::String {
&mut self.dimension
}
pub fn take_dimension(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.dimension, ::std::string::String::new())
}
}
impl ::protobuf::Message for CostGraphDef_AggregatedCost {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_float()?;
self.cost = tmp;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.dimension)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.cost != 0. {
my_size += 5;
}
if !self.dimension.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.dimension);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if self.cost != 0. {
os.write_float(1, self.cost)?;
}
if !self.dimension.is_empty() {
os.write_string(2, &self.dimension)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> CostGraphDef_AggregatedCost {
CostGraphDef_AggregatedCost::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
"cost",
|m: &CostGraphDef_AggregatedCost| { &m.cost },
|m: &mut CostGraphDef_AggregatedCost| { &mut m.cost },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"dimension",
|m: &CostGraphDef_AggregatedCost| { &m.dimension },
|m: &mut CostGraphDef_AggregatedCost| { &mut m.dimension },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<CostGraphDef_AggregatedCost>(
"CostGraphDef.AggregatedCost",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static CostGraphDef_AggregatedCost {
static instance: ::protobuf::rt::LazyV2<CostGraphDef_AggregatedCost> = ::protobuf::rt::LazyV2::INIT;
instance.get(CostGraphDef_AggregatedCost::new)
}
}
impl ::protobuf::Clear for CostGraphDef_AggregatedCost {
fn clear(&mut self) {
self.cost = 0.;
self.dimension.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for CostGraphDef_AggregatedCost {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CostGraphDef_AggregatedCost {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n*tensorflow/core/framework/cost_graph.proto\x12\ntensorflow\x1a,tensor\
flow/core/framework/tensor_shape.proto\x1a%tensorflow/core/framework/typ\
es.proto\"\x8c\t\n\x0cCostGraphDef\x121\n\x04node\x18\x01\x20\x03(\x0b2\
\x1d.tensorflow.CostGraphDef.NodeR\x04node\x12;\n\x04cost\x18\x02\x20\
\x03(\x0b2'.tensorflow.CostGraphDef.AggregatedCostR\x04cost\x1a\xc7\x07\
\n\x04Node\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x16\n\x06de\
vice\x18\x02\x20\x01(\tR\x06device\x12\x0e\n\x02id\x18\x03\x20\x01(\x05R\
\x02id\x12F\n\ninput_info\x18\x04\x20\x03(\x0b2'.tensorflow.CostGraphDef\
.Node.InputInfoR\tinputInfo\x12I\n\x0boutput_info\x18\x05\x20\x03(\x0b2(\
.tensorflow.CostGraphDef.Node.OutputInfoR\noutputInfo\x122\n\x15temporar\
y_memory_size\x18\x06\x20\x01(\x03R\x13temporaryMemorySize\x124\n\x16per\
sistent_memory_size\x18\x0c\x20\x01(\x03R\x14persistentMemorySize\x125\n\
\x15host_temp_memory_size\x18\n\x20\x01(\x03R\x12hostTempMemorySizeB\x02\
\x18\x01\x129\n\x17device_temp_memory_size\x18\x0b\x20\x01(\x03R\x14devi\
ceTempMemorySizeB\x02\x18\x01\x12E\n\x1ddevice_persistent_memory_size\
\x18\x10\x20\x01(\x03R\x1adevicePersistentMemorySizeB\x02\x18\x01\x12!\n\
\x0ccompute_cost\x18\t\x20\x01(\x03R\x0bcomputeCost\x12!\n\x0ccompute_ti\
me\x18\x0e\x20\x01(\x03R\x0bcomputeTime\x12\x1f\n\x0bmemory_time\x18\x0f\
\x20\x01(\x03R\nmemoryTime\x12\x19\n\x08is_final\x18\x07\x20\x01(\x08R\
\x07isFinal\x12#\n\rcontrol_input\x18\x08\x20\x03(\x05R\x0ccontrolInput\
\x12\x1e\n\ninaccurate\x18\x11\x20\x01(\x08R\ninaccurate\x1aY\n\tInputIn\
fo\x12%\n\x0epreceding_node\x18\x01\x20\x01(\x05R\rprecedingNode\x12%\n\
\x0epreceding_port\x18\x02\x20\x01(\x05R\rprecedingPort\x1a\xaa\x01\n\nO\
utputInfo\x12\x12\n\x04size\x18\x01\x20\x01(\x03R\x04size\x12(\n\x10alia\
s_input_port\x18\x02\x20\x01(\x03R\x0ealiasInputPort\x122\n\x05shape\x18\
\x03\x20\x01(\x0b2\x1c.tensorflow.TensorShapeProtoR\x05shape\x12*\n\x05d\
type\x18\x04\x20\x01(\x0e2\x14.tensorflow.DataTypeR\x05dtype\x1aB\n\x0eA\
ggregatedCost\x12\x12\n\x04cost\x18\x01\x20\x01(\x02R\x04cost\x12\x1c\n\
\tdimension\x18\x02\x20\x01(\tR\tdimensionB\x83\x01\n\x18org.tensorflow.\
frameworkB\x0fCostGraphProtosP\x01ZQgithub.com/tensorflow/tensorflow/ten\
sorflow/go/core/framework/cost_graph_go_proto\xf8\x01\x01b\x06proto3\
";
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}