Home
last modified time | relevance | path

Searched refs:attr_value (Results 1 – 25 of 87) sorted by relevance

1234

/third_party/mindspore/mindspore/lite/tools/converter/parser/tf/
Dtf_stride_slice_parser.cc31 tensorflow::AttrValue attr_value; in Parse() local
32 if (!TensorFlowUtils::FindAttrValue(tf_op, "begin_mask", &attr_value)) { in Parse()
36 prim->set_begin_mask(attr_value.i()); in Parse()
38 if (!TensorFlowUtils::FindAttrValue(tf_op, "end_mask", &attr_value)) { in Parse()
42 prim->set_end_mask(attr_value.i()); in Parse()
44 if (!TensorFlowUtils::FindAttrValue(tf_op, "ellipsis_mask", &attr_value)) { in Parse()
48 prim->set_ellipsis_mask(attr_value.i()); in Parse()
50 if (!TensorFlowUtils::FindAttrValue(tf_op, "new_axis_mask", &attr_value)) { in Parse()
54 prim->set_new_axis_mask(attr_value.i()); in Parse()
56 if (!TensorFlowUtils::FindAttrValue(tf_op, "shrink_axis_mask", &attr_value)) { in Parse()
[all …]
Dtf_range_parser.cc31 tensorflow::AttrValue attr_value; in Parse() local
32 if (TensorFlowUtils::FindAttrValue(tf_op, "starts", &attr_value)) { in Parse()
33 prim->set_start(attr_value.i()); in Parse()
42 if (TensorFlowUtils::FindAttrValue(*start_node, "value", &attr_value)) { in Parse()
44 prim->set_start(attr_value.i()); in Parse()
48 if (TensorFlowUtils::FindAttrValue(tf_op, "limits", &attr_value)) { in Parse()
49 prim->set_limit(attr_value.i()); in Parse()
58 if (TensorFlowUtils::FindAttrValue(*limit_node, "value", &attr_value)) { in Parse()
60 prim->set_limit(attr_value.i()); in Parse()
64 if (TensorFlowUtils::FindAttrValue(tf_op, "deltas", &attr_value)) { in Parse()
[all …]
Dtf_pool_parser.cc35 tensorflow::AttrValue attr_value; in Parse() local
36 if (TensorFlowUtils::FindAttrValue(tf_op, "padding", &attr_value)) { in Parse()
37 if (attr_value.s() == "VALID") { in Parse()
39 } else if (attr_value.s() == "SAME") { in Parse()
47 if (TensorFlowUtils::FindAttrValue(tf_op, "strides", &attr_value)) { in Parse()
48 const auto &stride_list = attr_value.list(); in Parse()
57 if (TensorFlowUtils::FindAttrValue(tf_op, "ksize", &attr_value)) { in Parse()
58 const auto &kernel_list = attr_value.list(); in Parse()
80 tensorflow::AttrValue attr_value; in Parse() local
81 if (TensorFlowUtils::FindAttrValue(tf_op, "padding", &attr_value)) { in Parse()
[all …]
Dtf_conv_base_parser.cc40 tensorflow::AttrValue attr_value; in ParseKernels() local
41 if (!TensorFlowUtils::FindAttrValue(node_def, "value", &attr_value)) { in ParseKernels()
45 auto shape = attr_value.tensor().tensor_shape(); in ParseKernels()
61 tensorflow::AttrValue attr_value; in ParseStrides() local
63 if (!TensorFlowUtils::FindAttrValue(node_def, "strides", &attr_value)) { in ParseStrides()
67 auto stride_list = attr_value.list(); in ParseStrides()
83 tensorflow::AttrValue attr_value; in ParseExplicitPaddings() local
84 if (!TensorFlowUtils::FindAttrValue(node_def, "explicit_paddings", &attr_value)) { in ParseExplicitPaddings()
88 auto explicit_paddings_list = attr_value.list(); in ParseExplicitPaddings()
110 tensorflow::AttrValue attr_value; in ParseDilations() local
[all …]
Dtf_crop_and_resize_parser.cc31 tensorflow::AttrValue attr_value; in Parse() local
32 if (!TensorFlowUtils::FindAttrValue(tf_op, "extrapolation_value", &attr_value)) { in Parse()
36 prim->set_extrapolation_value(attr_value.f()); in Parse()
38 if (!TensorFlowUtils::FindAttrValue(tf_op, "method", &attr_value)) { in Parse()
42 if (attr_value.s() == "bilinear") { in Parse()
44 } else if (attr_value.s() == "nearest_neighbor") { in Parse()
47 MS_LOG(ERROR) << "Do not support method: " << attr_value.s(); in Parse()
Dtf_pad_parser.cc49 tensorflow::AttrValue attr_value; in Parse() local
50 if (!TensorFlowUtils::FindAttrValue(*tf_node_map.at(const_value_name), "value", &attr_value)) { in Parse()
54 auto &tensor_proto = attr_value.tensor(); in Parse()
61 tensorflow::AttrValue attr_value; in Parse() local
62 if (!TensorFlowUtils::FindAttrValue(tf_op, "mode", &attr_value)) { in Parse()
67 if (attr_value.s() == "SYMMETRIC") { in Parse()
69 } else if (attr_value.s() == "REFLECT") { in Parse()
72 MS_LOG(ERROR) << "padding mode:" << attr_value.s() << " don't support"; in Parse()
Dtf_split_parser.cc33 tensorflow::AttrValue attr_value; in Parse() local
34 if (!TensorFlowUtils::FindAttrValue(tf_op, "num_split", &attr_value)) { in Parse()
38 auto number_split = attr_value.i(); in Parse()
56 if (!TensorFlowUtils::FindAttrValue(*split_dim_node, "value", &attr_value)) { in Parse()
60 auto splitDim = attr_value.tensor().int_val(0); in Parse()
69 if (!TensorFlowUtils::FindAttrValue(*size_splits_node, "value", &attr_value)) { in Parse()
73 auto size_splits_tensor = attr_value.tensor(); in Parse()
Dtf_resize_parser.cc32 tensorflow::AttrValue attr_value; in Parse() local
35 if (!TensorFlowUtils::FindAttrValue(tf_op, "align_corners", &attr_value)) { in Parse()
39 if (attr_value.b()) { in Parse()
41 …} else if (TensorFlowUtils::FindAttrValue(tf_op, "half_pixel_centers", &attr_value) && attr_value.… in Parse()
62 if (!TensorFlowUtils::FindAttrValue(tf_op, "value", &attr_value)) { in Parse()
65 auto tensor_proto = attr_value.tensor(); in Parse()
Dtf_matmul_parser.cc31 tensorflow::AttrValue attr_value; in Parse() local
32 if (TensorFlowUtils::FindAttrValue(tf_op, "transpose_a", &attr_value)) { in Parse()
33 prim->set_transpose_a(attr_value.b()); in Parse()
35 if (TensorFlowUtils::FindAttrValue(tf_op, "transpose_b", &attr_value)) { in Parse()
36 prim->set_transpose_b(attr_value.b()); in Parse()
Dtf_random_standard_normal_parser.cc31 tensorflow::AttrValue attr_value; in Parse() local
32 if (!TensorFlowUtils::FindAttrValue(tf_op, "seed", &attr_value)) { in Parse()
36 prim->set_seed(attr_value.i()); in Parse()
37 if (!TensorFlowUtils::FindAttrValue(tf_op, "seed2", &attr_value)) { in Parse()
41 prim->set_seed2(attr_value.i()); in Parse()
Dtf_batch_matmul_parser.cc31 tensorflow::AttrValue attr_value; in Parse() local
32 if (!TensorFlowUtils::FindAttrValue(tf_op, "adj_x", &attr_value)) { in Parse()
36 prim->set_transpose_a(attr_value.b()); in Parse()
37 if (!TensorFlowUtils::FindAttrValue(tf_op, "adj_y", &attr_value)) { in Parse()
41 prim->set_transpose_b(attr_value.b()); in Parse()
Dtf_reverse_sequence_parser.cc31 tensorflow::AttrValue attr_value; in Parse() local
32 if (!TensorFlowUtils::FindAttrValue(tf_op, "batch_dim", &attr_value)) { in Parse()
36 prim->set_batch_dim(attr_value.i()); in Parse()
37 if (!TensorFlowUtils::FindAttrValue(tf_op, "seq_dim", &attr_value)) { in Parse()
41 prim->set_seq_dim(attr_value.i()); in Parse()
Dtf_uniform_real_parser.cc37 tensorflow::AttrValue attr_value; in Parse() local
38 if (!TensorFlowUtils::FindAttrValue(tf_op, "seed", &attr_value)) { in Parse()
42 prim->set_seed(attr_value.i()); in Parse()
43 if (!TensorFlowUtils::FindAttrValue(tf_op, "seed2", &attr_value)) { in Parse()
47 prim->set_seed2(attr_value.i()); in Parse()
Dtf_tensor_list_stack_parser.cc31 tensorflow::AttrValue attr_value; in Parse() local
32 if (!TensorFlowUtils::FindAttrValue(tf_op, "element_dtype", &attr_value)) { in Parse()
36 auto type = TensorFlowUtils::GetTFDataType(attr_value.type()); in Parse()
43 if (!TensorFlowUtils::FindAttrValue(tf_op, "num_elements", &attr_value)) { in Parse()
47 prim->set_num_elements(attr_value.i()); in Parse()
Dtf_util.cc51 tensorflow::AttrValue *attr_value) { in FindAttrValue() argument
55 *attr_value = it->second; in FindAttrValue()
62 tensorflow::AttrValue attr_value; in ParseAttrDataType() local
63 if (!FindAttrValue(node_def, attr_name, &attr_value)) { in ParseAttrDataType()
67 return GetTFDataType(attr_value.type()); in ParseAttrDataType()
144 tensorflow::AttrValue attr_value; in ParseNodeFormat() local
145 if (!FindAttrValue(node_def, "data_format", &attr_value)) { in ParseNodeFormat()
149 if (attr_value.s() == "NHWC") { in ParseNodeFormat()
Dtf_tensor_list_reserve_parser.cc31 tensorflow::AttrValue attr_value; in Parse() local
32 if (!TensorFlowUtils::FindAttrValue(tf_op, "element_dtype", &attr_value)) { in Parse()
36 auto type = TensorFlowUtils::GetTFDataType(attr_value.type()); in Parse()
43 if (!TensorFlowUtils::FindAttrValue(tf_op, "shape_type", &attr_value)) { in Parse()
47 type = TensorFlowUtils::GetTFDataType(attr_value.type()); in Parse()
Dtf_tensor_list_from_tensor_parser.cc31 tensorflow::AttrValue attr_value; in Parse() local
32 if (!TensorFlowUtils::FindAttrValue(tf_op, "element_dtype", &attr_value)) { in Parse()
36 auto type = TensorFlowUtils::GetTFDataType(attr_value.type()); in Parse()
43 if (!TensorFlowUtils::FindAttrValue(tf_op, "shape_type", &attr_value)) { in Parse()
47 type = TensorFlowUtils::GetTFDataType(attr_value.type()); in Parse()
Dtf_gather_parser.cc32 tensorflow::AttrValue attr_value; in Parse() local
33 if (TensorFlowUtils::FindAttrValue(tf_op, "batch_dims", &attr_value)) { in Parse()
34 batchDims = attr_value.i(); in Parse()
46 if (!TensorFlowUtils::FindAttrValue(*axis_node, "value", &attr_value)) { in Parse()
50 auto tensor_proto = attr_value.tensor(); in Parse()
/third_party/boost/boost/log/attributes/
Dmutable_constant.hpp104 typedef attribute_value_impl< value_type > attr_value; typedef in boost::attributes::mutable_constant::impl
110 intrusive_ptr< attr_value > m_Value;
116 explicit impl(value_type const& value) : m_Value(new attr_value(value)) in impl()
122 explicit impl(BOOST_RV_REF(value_type) value) : m_Value(new attr_value(boost::move(value))) in impl()
134 intrusive_ptr< attr_value > p = new attr_value(value); in set()
141 intrusive_ptr< attr_value > p = new attr_value(boost::move(value)); in set()
230 typedef attribute_value_impl< value_type > attr_value; typedef in boost::attributes::mutable_constant::impl
234 intrusive_ptr< attr_value > m_Value;
240 explicit impl(value_type const& value) : m_Value(new attr_value(value)) in impl()
246 explicit impl(BOOST_RV_REF(value_type) value) : m_Value(new attr_value(boost::move(value))) in impl()
[all …]
/third_party/boost/boost/test/impl/
Dxml_report_formatter.ipp70 << " name" << utils::attr_value() << tu.p_name.get()
71 << " result" << utils::attr_value() << descr
72 << " assertions_passed" << utils::attr_value() << tr.p_assertions_passed
73 << " assertions_failed" << utils::attr_value() << tr.p_assertions_failed
74 << " warnings_failed" << utils::attr_value() << tr.p_warnings_failed
75 << " expected_failures" << utils::attr_value() << tr.p_expected_failures
79 ostr << " test_cases_passed" << utils::attr_value() << tr.p_test_cases_passed
80 << " test_cases_passed_with_warnings" << utils::attr_value() << tr.p_test_cases_warned
81 << " test_cases_failed" << utils::attr_value() << tr.p_test_cases_failed
82 << " test_cases_skipped" << utils::attr_value() << tr.p_test_cases_skipped
[all …]
Dxml_log_formatter.ipp70 << " platform" << utils::attr_value() << BOOST_PLATFORM
71 << " compiler" << utils::attr_value() << BOOST_COMPILER
72 << " stl" << utils::attr_value() << BOOST_STDLIB
85 ostr << "<" << tu_type_name( tu ) << " name" << utils::attr_value() << tu.p_name.get();
88 ostr << BOOST_TEST_L( " file" ) << utils::attr_value() << tu.p_file_name
89 << BOOST_TEST_L( " line" ) << utils::attr_value() << tu.p_line_num;
111 << " name" << utils::attr_value() << tu.p_name.get()
112 << " skipped" << utils::attr_value() << "yes"
113 << " reason" << utils::attr_value() << reason
124 ostr << "<Exception file" << utils::attr_value() << loc.m_file_name
[all …]
/third_party/glib/gio/
Dgfileinfo-priv.h117 const char *attr_value);
120 const char *attr_value);
123 gboolean attr_value);
126 guint32 attr_value);
129 gint32 attr_value);
132 guint64 attr_value);
135 gint64 attr_value);
138 GObject *attr_value);
141 char **attr_value);
Dgfileinfo.c1140 GObject *attr_value) in _g_file_info_set_attribute_object_by_id() argument
1146 _g_file_attribute_value_set_object (value, attr_value); in _g_file_info_set_attribute_object_by_id()
1161 GObject *attr_value) in g_file_info_set_attribute_object() argument
1165 g_return_if_fail (G_IS_OBJECT (attr_value)); in g_file_info_set_attribute_object()
1169 attr_value); in g_file_info_set_attribute_object()
1175 char **attr_value) in _g_file_info_set_attribute_stringv_by_id() argument
1181 _g_file_attribute_value_set_stringv (value, attr_value); in _g_file_info_set_attribute_stringv_by_id()
1199 char **attr_value) in g_file_info_set_attribute_stringv() argument
1203 g_return_if_fail (attr_value != NULL); in g_file_info_set_attribute_stringv()
1207 attr_value); in g_file_info_set_attribute_stringv()
[all …]
/third_party/python/Lib/test/test_importlib/frozen/
Dtest_loader.py42 attr_value = getattr(module, attr)
43 self.assertEqual(attr_value, value,
45 name=name, attr=attr, given=attr_value,
55 attr_value = getattr(module, attr)
56 self.assertEqual(attr_value, value,
58 name=name, attr=attr, given=attr_value,
119 attr_value = getattr(module, attr)
120 self.assertEqual(attr_value, value,
122 (attr, attr_value, value))
137 attr_value = getattr(module, attr)
[all …]
/third_party/mindspore/mindspore/profiler/parser/
Dframework_parser.py543 attr_name, attr_value = info.split(':', 1)
545 full_op_name = attr_value
549 op_type = attr_value
552 attr_name.split('_')[0], attr_value
558 attr_value = attr_value.strip('"')
561 attr_value = VmDataType.get_data_type_name(
562 int(attr_value)
566 attr_value = GeDataType.get_data_type_name(
567 int(attr_value)
570 attr_value = GeFormat.get_format_name(int(attr_value))
[all …]

1234