MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / sample_mask

Function sample_mask

data/data_utils.py:20–21  ·  view source on GitHub ↗
(b, h, q_idx, kv_idx)

Source from the content-addressed store, hash-verified

18 return (~((noise_seq_id[kv_idx] >= 0) & (noise_seq_id[q_idx] != noise_seq_id[kv_idx])))
19
20 def sample_mask(b, h, q_idx, kv_idx):
21 return document_id[q_idx] == document_id[kv_idx]
22
23 full_and_noise_tmp = []
24 noise_tmp = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected