↓ 3 callersFunctionsparse_to_dense_1dConvert sparse tensor ([0, 1, 4]) to dense tensor ([1, 1, 0, 0, 1]).
language/mentionmemory/utils/mention_preprocess_utils.py:29
↓ 2 callersMethod__init__(self, span_begin, span_end, target_string, rule, children)
language/compgen/csl/model/data/parsing_utils.py:36
↓ 2 callersMethod__init__(self, span_begin, span_end, target_string, rule, children)
language/compgen/nqg/model/parser/data/parsing_utils.py:26
↓ 2 callersFunction_compute_batch_indicesComputes the i'th coodinate that contains the batch index for gathers. Batch pos is a tensor like [[0,0,0,0,],[1,1,1,1],..]. It says which batch
language/xsp/model/beam_search.py:60