↓ 3 callersFunctionmultihead_attention_forward(query, key, value, w_q, b_q, w_k, b_k, w_v, b_v,
w_out, b_out, num_heads, att
tests/dump_ddec_from_package.py:89
↓ 3 callersFunctionsam2_maxpool_2dMaxPool2d with kernel=2, stride=2 on spatial dims (ne[1]=W, ne[2]=H). Input: [C, W, H, B] -> output: [C, W/2, H/2, B] ggml_pool_2d operates on ne[0] a
sam3.cpp:4287
↓ 3 callersFunctionsam2_preprocess_imageSAM2 preprocessing: resize + ImageNet normalization. Returns [C, H, W] float, mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225].
sam3.cpp:3522
↓ 3 callersFunctionsam3_build_vit_graphBuild the full ViT graph. Input: [img_size, img_size, 3, 1] (ggml convention: [W, H, C, B]) Output: [E, W, H, 1] where E=1024, W=H=72
sam3.cpp:3839