MCPcopy Index your code
hub / github.com/lisa-lab/DeepLearningTutorials / len_argsort

Function len_argsort

code/imdb.py:155–156  ·  view source on GitHub ↗
(seq)

Source from the content-addressed store, hash-verified

153 test_set_x = remove_unk(test_set_x)
154
155 def len_argsort(seq):
156 return sorted(range(len(seq)), key=lambda x: len(seq[x]))
157
158 if sort_by_len:
159 sorted_index = len_argsort(test_set_x)

Callers 1

load_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected