Home
last modified time | relevance | path

Searched refs:cond_data (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dresolve_constant_select.cc60 const auto& cond_data = cond_array.GetBuffer<ArrayDataType::kBool>().data; in Run() local
61 if (cond_data.empty()) { in Run()
66 bool cond_value = cond_data[0]; in Run()
67 for (size_t i = 1; i < cond_data.size(); ++i) { in Run()
68 if (cond_data[i] != cond_value) { in Run()
/external/selinux/libsepol/src/
Dkernel_to_conf.c2080 struct cond_data { struct
2087 const struct cond_data *aa = a; in cond_node_cmp() argument
2088 const struct cond_data *bb = b; in cond_node_cmp()
2094 struct cond_data *cond_data; in write_cond_nodes_to_conf() local
2109 cond_data = calloc(sizeof(struct cond_data), num); in write_cond_nodes_to_conf()
2110 if (!cond_data) { in write_cond_nodes_to_conf()
2117 cond_data[i].cond = cond; in write_cond_nodes_to_conf()
2123 cond_data[i].expr = expr; in write_cond_nodes_to_conf()
2127 qsort(cond_data, num, sizeof(*cond_data), cond_node_cmp); in write_cond_nodes_to_conf()
2130 expr = cond_data[i].expr; in write_cond_nodes_to_conf()
[all …]
Dkernel_to_cil.c2104 struct cond_data { struct
2111 const struct cond_data *aa = a; in cond_node_cmp() argument
2112 const struct cond_data *bb = b; in cond_node_cmp()
2118 struct cond_data *cond_data; in write_cond_nodes_to_cil() local
2128 cond_data = calloc(num, sizeof(struct cond_data)); in write_cond_nodes_to_cil()
2129 if (!cond_data) { in write_cond_nodes_to_cil()
2136 cond_data[i].cond = cond; in write_cond_nodes_to_cil()
2142 cond_data[i].expr = expr; in write_cond_nodes_to_cil()
2146 qsort(cond_data, num, sizeof(*cond_data), cond_node_cmp); in write_cond_nodes_to_cil()
2149 expr = cond_data[i].expr; in write_cond_nodes_to_cil()
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Dwhere.cc43 const T* cond_data = GetTensorData<T>(cond_tensor); in ResizeOutputTensor() local
47 if (cond_data[i] != T(0)) { in ResizeOutputTensor()
/external/tensorflow/tensorflow/compiler/xla/service/
Dheap_simulator_test.cc53 HloInstruction* cond_data = cond_builder.AddInstruction( in TEST_F() local
58 cond_data, ComparisonDirection::kLt)); in TEST_F()
91 {cond_param, cond_iter, cond_data, cond_lt}); in TEST_F()
897 HloInstruction* cond_data = cond_builder.AddInstruction( in TEST_F() local
901 cond_data, ComparisonDirection::kLt)); in TEST_F()
919 {param, while_op, body_param, cond_param, cond_iter, cond_data, cond_lt}); in TEST_F()