Home
last modified time | relevance | path

Searched refs:sort_by (Results 1 – 25 of 27) sorted by relevance

12

/external/tensorflow/tensorflow/python/debug/cli/
Dprofile_analyzer_cli.py198 def _list_profile_sort_key(profile_datum, sort_by): argument
209 if sort_by == SORT_OPS_BY_OP_NAME:
211 elif sort_by == SORT_OPS_BY_OP_TYPE:
213 elif sort_by == SORT_OPS_BY_LINE:
215 elif sort_by == SORT_OPS_BY_OP_TIME:
217 elif sort_by == SORT_OPS_BY_EXEC_TIME:
429 key=lambda datum: _list_profile_sort_key(datum, parsed.sort_by),
434 profile_data, parsed.sort_by, parsed.reverse, parsed.time_unit,
478 profile_datum_list, sort_by, sort_reverse, time_unit, argument
547 if sort_by == sort_id and not sort_reverse:
Danalyzer_cli.py552 data_to_show, parsed.sort_by, parsed.reverse)
641 def _sort_dump_data_by(self, data, sort_by, reverse): argument
656 if sort_by == SORT_TENSORS_BY_TIMESTAMP:
661 elif sort_by == SORT_TENSORS_BY_DUMP_SIZE:
663 elif sort_by == SORT_TENSORS_BY_OP_TYPE:
668 elif sort_by == SORT_TENSORS_BY_TENSOR_NAME:
674 raise ValueError("Unsupported key to sort tensors by: %s" % sort_by)
701 if parsed.sort_by == SORT_TENSORS_BY_TIMESTAMP and not parsed.reverse:
710 if parsed.sort_by == SORT_TENSORS_BY_DUMP_SIZE and not parsed.reverse:
719 if parsed.sort_by == SORT_TENSORS_BY_OP_TYPE and not parsed.reverse:
[all …]
Danalyzer_cli_test.py123 sort_by="timestamp", argument
231 if sort_by == "timestamp":
236 elif sort_by == "dump_size":
241 elif sort_by == "op_type":
246 elif sort_by == "tensor_name":
252 tst.fail("Invalid value in sort_by: %s" % sort_by)
693 sort_by="timestamp",
709 sort_by="dump_size")
724 sort_by="dump_size",
746 sort_by="op_type",
[all …]
/external/rust/crates/unicode-bidi/src/
Dprepare.rs200 sequences.sort_by(|a, b| a.runs[0].clone().cmp(b.runs[0].clone())); in test_isolating_run_sequences()
213 sequences.sort_by(|a, b| a.runs[0].clone().cmp(b.runs[0].clone())); in test_isolating_run_sequences()
226 sequences.sort_by(|a, b| a.runs[0].clone().cmp(b.runs[0].clone())); in test_isolating_run_sequences()
245 sequences.sort_by(|a, b| a.runs[0].clone().cmp(b.runs[0].clone())); in test_isolating_run_sequences_sos_and_eos()
304 sequences.sort_by(|a, b| a.runs[0].clone().cmp(b.runs[0].clone())); in test_isolating_run_sequences_sos_and_eos()
/external/rust/crates/walkdir/src/
Dlib.rs394 pub fn sort_by<F>(mut self, cmp: F) -> Self in sort_by() method
421 self.sort_by(move |a, b| cmp(a).cmp(&cmp(b))) in sort_by_key()
434 self.sort_by(|a, b| a.file_name().cmp(b.file_name())) in sort_by_file_name()
889 entries.sort_by(|a, b| match (a, b) { in push()
/external/autotest/frontend/afe/
Dmodel_logic.py727 sort_by = special_params.get('sort_by', None)
728 if sort_by:
729 assert isinstance(sort_by, list) or isinstance(sort_by, tuple)
730 query = query.extra(order_by=sort_by)
Drpc_interface.py1705 result['users'] = get_users(sort_by=['login'])
1713 sort_by=['-platform', 'name'])
1715 result['tests'] = get_tests(sort_by=['name'])
1716 result['profilers'] = get_profilers(sort_by=['name'])
/external/rust/crates/nix/test/
Dtest_dir.rs15 entries.sort_by(|a, b| a.file_name().cmp(b.file_name())); in read()
/external/rust/crates/plotters/examples/
Derrorbar.rs80 g.sort_by(|a, b| a.partial_cmp(b).unwrap()); in down_sample()
/external/rust/crates/itertools/examples/
Diris.rs71 irises.sort_by(|a, b| Ord::cmp(&a.name, &b.name)); in main()
/external/rust/crates/protobuf/src/
Drepeated.rs270 pub fn sort_by<F>(&mut self, compare: F) in sort_by() method
274 self.as_mut_slice().sort_by(compare) in sort_by()
/external/rust/crates/syn/tests/
Dtest_round_trip.rs51 .sort_by(|a, b| a.file_name().cmp(b.file_name())) in test_round_trip()
Dtest_precedence.rs97 .sort_by(|a, b| a.file_name().cmp(b.file_name())) in test_rustc_precedence()
/external/rust/crates/aho-corasick/src/packed/
Dpattern.rs95 order.sort_by(|&id1, &id2| { in set_match_kind()
/external/rust/crates/walkdir/src/tests/
Dutil.rs60 ents.sort_by(|e1, e2| e1.path().cmp(e2.path())); in sorted_ents()
Drecursive.rs882 fn sort_by() { in sort_by() function
888 .sort_by(|a, b| a.file_name().cmp(b.file_name()).reverse()); in sort_by()
954 .sort_by(|a, b| a.file_name().cmp(b.file_name()).reverse()); in sort_max_open()
/external/crosvm/disk/src/
Dcomposite.rs97 disks.sort_by(|d1, d2| d1.offset.cmp(&d2.offset)); in new()
153 disks.sort_by(|d1, d2| d1.offset.cmp(&d2.offset)); in from_file()
/external/rust/crates/itertools/
DCHANGELOG.md189 - `.sort_by()`, use `.sorted_by()`
270 - Rename `.sort_by()` to `.sorted_by()`. Old name is deprecated.
292 - Added method `.sort_by()`
/external/rust/crates/criterion/src/plot/gnuplot_backend/
Dsummary.rs97 tuples.sort_by(|&(ax, _), &(bx, _)| (ax.partial_cmp(&bx).unwrap_or(Ordering::Less))); in line_comparison()
/external/rust/crates/criterion/src/plot/plotters_backend/
Dsummary.rs146 tuples.sort_by(|&(ax, _), &(bx, _)| (ax.partial_cmp(&bx).unwrap_or(Ordering::Less))); in line_comparison_series_data()
/external/autotest/frontend/tko/
Drpc_interface.py482 result['test_labels'] = get_test_labels(sort_by=['name'])
/external/rust/crates/bencher/
Dstats.rs33 v.sort_by(|x: &f64, y: &f64| local_cmp(*x, *y)); in local_sort()
Dlib.rs549 filtered.sort_by(|t1, t2| t1.desc.name.cmp(&t2.desc.name)); in filter_tests()
/external/rust/crates/env_logger/src/filter/
Dmod.rs243 self.directives.sort_by(|a, b| { in build()
/external/rust/crates/glob/src/
Dlib.rs868 children.sort_by(|p1, p2| p2.file_name().cmp(&p1.file_name())); in fill_todo()

12