Home
last modified time | relevance | path

Searched refs:key_fn (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/
Dcomparison_util.h250 auto LessThanByKey(KeyFn&& key_fn) { in LessThanByKey() argument
251 return [=](const auto& a, const auto& b) { return key_fn(a) < key_fn(b); }; in LessThanByKey()
/external/tensorflow/tensorflow/compiler/xla/service/
Dcollective_combiner_utils.h47 const std::function<std::optional<K>(const HloInstruction*)>& key_fn, in CombineInstructionsByKey() argument
56 std::optional<K> key = key_fn(instruction); in CombineInstructionsByKey()
Dall_reduce_combiner.cc136 auto key_fn = in Run() local
148 computation, key_fn, &CombineAllReduces, in Run()
Dreduce_scatter_combiner.cc141 auto key_fn = [&domain_map](const HloInstruction* instruction) in Run() local
156 computation, key_fn, &CombineReduceScatters, in Run()
Dall_gather_combiner.cc163 auto key_fn = [&domain_map](const HloInstruction* instruction) { in Run() local
170 computation, key_fn, &CombineAllGathers, in Run()
/external/tensorflow/tensorflow/python/framework/
Dconvert_to_constants_test.py87 def merge_lists(repeated1, repeated2, empty_fn, key_fn, merge_fn): argument
90 xs1 = {key_fn(x): x for x in repeated1}
91 xs2 = {key_fn(x): x for x in repeated2}
96 return sorted(merged.values(), key=key_fn)