↓ 1 callersFunction_prepare_4d_causal_attention_mask_with_cache_position Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_length)`,
prj/M2_omni/models/modeling_m2omni.py:58
↓ 1 callersMethod_process_feature_extraction(
self, output, im_scales, im_infos, feature_name="fc6", conf_thresh=0
)
antmmf/scripts/features/extract_features_vmb.py:132
↓ 1 callersMethod_regressive_decode(
self,
tgt,
memory,
memory_key_padding_mask,
memory_pos,
quer
antmmf/modules/transformers/position_enhance.py:218
↓ 1 callersFunctionadapter(hidden_dim, scale, dropout, enabled: bool = True, non_linear=False, attn=True, mlp=False)
prj/Pink/pink/model/adapter.py:376
↓ 1 callersMethodadd_itm_label(
self,
sample_info,
sample,
current_sample_idx,
random_ocr=True,
prj/cnvid_vtp/roi_univl/roi/dataset.py:225