Home
last modified time | relevance | path

Searched refs:new_attr (Results 1 – 25 of 52) sorted by relevance

123

/external/tensorflow/tensorflow/core/framework/
Dop_def_util.cc457 const OpDef::AttrDef& new_attr) { in MoreRestrictive() argument
459 if (!new_attr.has_allowed_values()) return false; in MoreRestrictive()
465 new_attr.allowed_values().list().type())) { in MoreRestrictive()
469 new_attr.allowed_values().list().s())) { in MoreRestrictive()
486 const OpDef::AttrDef& new_attr) { in HigherMinimum() argument
488 if (!new_attr.has_minimum()) return false; in HigherMinimum()
493 return new_attr.minimum() > old_attr.minimum(); in HigherMinimum()
555 const OpDef::AttrDef* new_attr = in ComputeArgSignature() local
557 const auto& type_list = new_attr->default_value().list().type(); in ComputeArgSignature()
581 const OpDef::AttrDef* new_attr = in ComputeArgSignature() local
[all …]
Dop_gen_lib.cc351 void MergeAttr(ApiDef::Attr* base_attr, const ApiDef::Attr& new_attr) { in MergeAttr() argument
352 if (!new_attr.rename_to().empty()) { in MergeAttr()
353 base_attr->set_rename_to(new_attr.rename_to()); in MergeAttr()
355 if (new_attr.has_default_value()) { in MergeAttr()
356 *base_attr->mutable_default_value() = new_attr.default_value(); in MergeAttr()
358 if (!new_attr.description().empty()) { in MergeAttr()
359 base_attr->set_description(new_attr.description()); in MergeAttr()
434 for (const auto& new_attr : new_api_def.attr()) { in MergeApiDefs() local
438 if (base_attr->name() == new_attr.name()) { in MergeApiDefs()
439 MergeAttr(base_attr, new_attr); in MergeApiDefs()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_destroy/
D2-1.c27 pthread_attr_t new_attr; in main() local
30 if (pthread_attr_init(&new_attr) != 0) { in main()
36 if (pthread_attr_destroy(&new_attr) != 0) { in main()
42 if (pthread_attr_init(&new_attr) != 0) { in main()
D1-1.c37 pthread_attr_t new_attr; in main() local
41 if (pthread_attr_init(&new_attr) != 0) { in main()
47 if (pthread_attr_destroy(&new_attr) != 0) { in main()
54 ret = pthread_create(&new_th, &new_attr, a_thread_func, NULL); in main()
D3-1.c24 pthread_attr_t new_attr; in main() local
27 if (pthread_attr_init(&new_attr) != 0) { in main()
33 if (pthread_attr_destroy(&new_attr) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setdetachstate/
D1-1.c36 pthread_attr_t new_attr; in main() local
40 if (pthread_attr_init(&new_attr) != 0) { in main()
46 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_JOINABLE) != in main()
53 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main()
D1-2.c36 pthread_attr_t new_attr; in main() local
40 if (pthread_attr_init(&new_attr) != 0) { in main()
46 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_DETACHED) != in main()
53 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main()
D2-1.c38 pthread_attr_t new_attr; in main() local
42 if (pthread_attr_init(&new_attr) != 0) { in main()
48 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_DETACHED) != in main()
55 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main()
D4-1.c26 pthread_attr_t new_attr; in main() local
30 if (pthread_attr_init(&new_attr) != 0) { in main()
37 ret_val = pthread_attr_setdetachstate(&new_attr, invalid_val); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getdetachstate/
D1-2.c29 pthread_attr_t new_attr; in main() local
33 if (pthread_attr_init(&new_attr) != 0) { in main()
39 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_DETACHED) != in main()
47 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main()
D1-1.c25 pthread_attr_t new_attr; in main() local
29 if (pthread_attr_init(&new_attr) != 0) { in main()
36 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/
D4-1.c46 pthread_attr_t new_attr; in main() local
51 if (pthread_attr_init(&new_attr) != 0) { in main()
57 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_DETACHED) != in main()
64 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main()
D3-1.c41 pthread_attr_t new_attr; in main() local
46 if (pthread_attr_init(&new_attr) != 0) { in main()
52 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_JOINABLE) != in main()
59 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main()
D2-1.c41 pthread_attr_t new_attr; in main() local
46 if (pthread_attr_init(&new_attr) != 0) { in main()
52 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_JOINABLE) != in main()
59 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main()
D1-1.c42 pthread_attr_t new_attr; in main() local
47 if (pthread_attr_init(&new_attr) != 0) { in main()
53 if (pthread_attr_setdetachstate(&new_attr, PTHREAD_CREATE_JOINABLE) != in main()
60 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main()
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_renames.py24 for old_attr, new_attr in replace.items():
25 LOOKUP[(module, old_attr)] = new_attr
69 new_attr = unicode(LOOKUP[(mod_name.value, attr_name.value)])
70 attr_name.replace(Name(new_attr, prefix=attr_name.prefix))
/external/python/cpython3/Lib/lib2to3/fixes/
Dfix_renames.py24 for old_attr, new_attr in list(replace.items()):
25 LOOKUP[(module, old_attr)] = new_attr
69 new_attr = LOOKUP[(mod_name.value, attr_name.value)]
70 attr_name.replace(Name(new_attr, prefix=attr_name.prefix))
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/
D1-1.c29 pthread_attr_t new_attr; in main() local
33 if (pthread_attr_init(&new_attr) != 0) { in main()
41 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main()
D3-1.c35 pthread_attr_t new_attr; in main() local
39 if (pthread_attr_init(&new_attr) != 0) { in main()
48 pthread_create(&new_threads[i], &new_attr, a_thread_func, in main()
D2-1.c56 pthread_attr_t new_attr; in main() local
61 if (pthread_attr_init(&new_attr) != 0) { in main()
67 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main()
D4-1.c24 pthread_attr_t new_attr; in main() local
28 ret = pthread_attr_init(&new_attr); in main()
/external/rust/crates/nix/test/
Dtest_mq.rs79 let new_attr = MqAttr::new(0, 20, MSG_SIZE * 2, 100); in test_mq_setattr() localVariable
80 let old_attr = mq_setattr(mqd, &new_attr).unwrap(); in test_mq_setattr()
86 assert_ne!(new_attr_get, new_attr); in test_mq_setattr()
116 let new_attr = mq_getattr(mqd); in test_mq_set_nonblocking() localVariable
117 assert_eq!(new_attr.unwrap().flags(), MQ_OFlag::O_NONBLOCK.bits() as mq_attr_member_t); in test_mq_set_nonblocking()
119 let new_attr = mq_getattr(mqd); in test_mq_set_nonblocking() localVariable
120 assert_eq!(new_attr.unwrap().flags(), 0); in test_mq_set_nonblocking()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Ddebug_stripper.cc59 protobuf::Map<string, AttrValue> new_attr; in Optimize() local
61 new_attr.insert({"T", node.attr().at("T")}); in Optimize()
63 node.mutable_attr()->swap(new_attr); in Optimize()
/external/python/cpython3/Lib/test/
Dann_module2.py16 f().new_attr: object = object()
23 c.new_attr: int = 10
/external/boringssl/src/crypto/x509/
Dx509_att.c122 X509_ATTRIBUTE *new_attr = NULL; in STACK_OF() local
136 if ((new_attr = X509_ATTRIBUTE_dup(attr)) == NULL) in STACK_OF()
138 if (!sk_X509_ATTRIBUTE_push(sk, new_attr)) in STACK_OF()
146 if (new_attr != NULL) in STACK_OF()
147 X509_ATTRIBUTE_free(new_attr); in STACK_OF()

123