Home
last modified time | relevance | path

Searched refs:attr_val (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dautotune_buffer_sizes_test.cc178 AttrValue attr_val; in TEST_P() local
179 SetAttrValue("value", &attr_val); in TEST_P()
180 map_attrs[0] = std::make_pair("f", attr_val); in TEST_P()
181 map_attrs[1] = std::make_pair("Targuments", attr_val); in TEST_P()
182 map_attrs[2] = std::make_pair("output_types", attr_val); in TEST_P()
183 map_attrs[3] = std::make_pair("output_shapes", attr_val); in TEST_P()
199 prefetch_attrs[2] = std::make_pair("output_types", attr_val); in TEST_P()
200 prefetch_attrs[3] = std::make_pair("output_shapes", attr_val); in TEST_P()
/external/tensorflow/tensorflow/core/grappler/utils/
Dcanonicalizer.cc60 AttrValue& attr_val = (*node->mutable_attr())["value"]; in CompressConstants() local
61 if (attr_val.has_tensor()) { in CompressConstants()
62 tensor::CompressTensorProtoInPlace(attr_val.mutable_tensor()); in CompressConstants()
/external/squashfs-tools/squashfs-tools/
Dxattr.c163 char *attr_val; in read_selinux_xattr_from_sehnd() local
166 attr_val = set_selabel(filename, mode, sehnd); in read_selinux_xattr_from_sehnd()
167 xattrs->value = (void *)attr_val; in read_selinux_xattr_from_sehnd()
168 xattrs->vsize = strlen(attr_val); in read_selinux_xattr_from_sehnd()
173 struct vfs_cap_data *attr_val; in set_caps_xattr() local
174 attr_val = malloc(sizeof(*attr_val)); in set_caps_xattr()
175 if (attr_val == NULL) MEM_ERROR(); in set_caps_xattr()
178 *attr_val = set_caps(caps); in set_caps_xattr()
179 xattrs->value = attr_val; in set_caps_xattr()
180 xattrs->vsize = sizeof(*attr_val); in set_caps_xattr()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dexport_utils.cc212 AttrValue attr_val; in ConvertAttribute() local
213 TF_RETURN_IF_ERROR(ConvertAttribute(attr, &attr_val)); in ConvertAttribute()
214 *list->add_func() = attr_val.func(); in ConvertAttribute()
216 AttrValue attr_val; in ConvertAttribute() local
223 ConvertAttribute(elt_type, remove_ref_type, &attr_val)); in ConvertAttribute()
224 list->add_type(attr_val.type()); in ConvertAttribute()
226 AttrValue attr_val; in ConvertAttribute() local
227 TF_RETURN_IF_ERROR(ConvertAttribute(attr, &attr_val)); in ConvertAttribute()
228 *list->add_shape() = attr_val.shape(); in ConvertAttribute()
/external/tensorflow/tensorflow/c/
Dpython_api.cc31 AttrValue attr_val; in SetAttr() local
32 if (!attr_val.ParseFromArray(attr_value_proto->data, in SetAttr()
40 op->node.AddAttr(attr_name, attr_val); in SetAttr()
/external/tensorflow/tensorflow/compiler/mlir/tfr/python/
Dtfr_gen.py155 def _get_val_from_proto(attr_type, attr_val): argument
157 return 'true' if attr_val.b else 'false'
159 return attr_val.i
161 return attr_val.f
164 if attr_val.HasField('s'):
165 return '"{}"'.format(attr_val.s.decode())
167 if attr_val.HasField('type'):
168 if attr_val.type == types_pb2.DT_FLOAT:
170 elif attr_val.type == types_pb2.DT_INT32:
172 elif attr_val.type == types_pb2.DT_INT64:
[all …]
/external/tensorflow/tensorflow/python/framework/
Dpython_api_parameter_converter_test.py149 def testConvertAttribute(self, attr_type, attr_val, expected): argument
154 params = [attr_val]
197 def testConvertAttributeError(self, attr_type, attr_val, message): argument
202 Convert(api_info, tensor_converter, [attr_val])
/external/python/setuptools/setuptools/
Ddist.py78 attr_val = getattr(self, attr)
80 attr_val = self._encode_field(attr_val)
82 if attr_val is not None:
83 file.write('%s: %s\n' % (field, attr_val))
/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_while.cc444 string attr_val; in FunctionalizeLoop() local
445 if (GetNodeAttr(frame->loop_cond->def(), attr_name, &attr_val).ok()) { in FunctionalizeLoop()
446 builder.Attr(attr_name, attr_val); in FunctionalizeLoop()
Dfunctionalize_cond.cc823 string attr_val; in BuildIfNode() local
824 if (GetNodeAttr(predicate_.node->def(), attr_name, &attr_val).ok()) { in BuildIfNode()
825 builder.Attr(attr_name, attr_val); in BuildIfNode()
/external/autotest/server/hosts/
Dservo_repair.py127 attr_val = host.run(getboard, ignore_status=True).stdout
128 return attr_val.strip('\n') if attr_val else None
/external/tensorflow/tensorflow/core/common_runtime/
Dmkl_layout_pass_test.cc130 T attr_val = T(); in DoMklLayoutOptimizationPassGetAttrVal() local
133 TF_CHECK_OK(GetNodeAttr(n->def(), attr, &attr_val)); in DoMklLayoutOptimizationPassGetAttrVal()
134 return attr_val; in DoMklLayoutOptimizationPassGetAttrVal()
137 return attr_val; in DoMklLayoutOptimizationPassGetAttrVal()