MCPcopy Create free account

hub / github.com/PABannier/sam3.cpp / functions

Functions893 in github.com/PABannier/sam3.cpp

↓ 1 callersFunctionstbi__tga_load
stb/stb_image.h:5871
↓ 1 callersFunctionstbi__tga_test
stb/stb_image.h:5820
↓ 1 callersFunctionstbi__vertical_flip_slices
stb/stb_image.h:1247
↓ 1 callersFunctionstbi__zhuffman_decode_slowpath
stb/stb_image.h:4224
↓ 1 callersFunctionstbi_image_free
stb/stb_image.h:1101
↓ 1 callersFunctionstbi_info_from_file
stb/stb_image.h:7701
↓ 1 callersFunctionstbi_is_16_bit_from_file
stb/stb_image.h:7722
↓ 1 callersFunctionstbi_is_hdr_from_file
stb/stb_image.h:1542
↓ 1 callersFunctionstbi_load
stb/stb_image.h:1366
↓ 1 callersFunctionstbi_load_from_file
stb/stb_image.h:1376
↓ 1 callersFunctionstbi_loadf_from_file
stb/stb_image.h:1503
↓ 1 callersFunctionstbi_write_png
stb/stb_image_write.h:1215
↓ 1 callersFunctionstbi_zlib_compress
stb/stb_image_write.h:895
↓ 1 callersFunctionstbi_zlib_decode_malloc_guesssize
stb/stb_image.h:4520
↓ 1 callersFunctionstbi_zlib_decode_malloc_guesssize_headerflag
stb/stb_image.h:4541
↓ 1 callersFunctionstbiw__crc32
stb/stb_image_write.h:1024
↓ 1 callersFunctionstbiw__write_dump_data
stb/stb_image_write.h:664
↓ 1 callersFunctionstbiw__write_hdr_scanline
stb/stb_image_write.h:672
↓ 1 callersFunctionstbiw__write_pixels
stb/stb_image_write.h:451
↓ 1 callersFunctionstbiw__write_run_data
stb/stb_image_write.h:656
↓ 1 callersFunctionstbiw__writef
stb/stb_image_write.h:378
↓ 1 callersFunctionstbiw__zlib_bitrev
stb/stb_image_write.h:849
↓ 1 callersFunctiontensor_cases
tests/test_phase5.cpp:31
↓ 1 callersFunctiontensor_cases_for
tests/test_phase7.cpp:79
↓ 1 callersFunctiontensor_names
tests/test_phase4.cpp:93
↓ 1 callersFunctiontensor_to_ref
tests/test_metal_flash_attn_ext_block15_compare.cpp:259
↓ 1 callersFunctiontest_cont_in_graph
═══════════════════════════════════════════════════════════════════════════════ TEST 4: cont(permute) cost in isolation vs inside a larger graph ═════
tests/test_metal_overhead.cpp:318
↓ 1 callersFunctiontest_dispatch_overhead
═══════════════════════════════════════════════════════════════════════════════ TEST 1: Pure dispatch overhead — chain of N trivial add ops ══════════
tests/test_metal_overhead.cpp:53
↓ 1 callersFunctiontest_encode_from_preprocessed
tests/test_phase3.cpp:440
↓ 1 callersFunctiontest_encode_image
tests/test_phase3.cpp:248
↓ 1 callersFunctiontest_encode_image
tests/test_vit.cpp:296
↓ 1 callersFunctiontest_preprocessing
tests/test_vit.cpp:90
↓ 1 callersFunctiontest_rope
tests/test_phase3.cpp:118
↓ 1 callersFunctiontest_rope
Forward-declare the internal function (defined in sam3.cpp) We'll test it by replicating the computation here.
tests/test_vit.cpp:123
↓ 1 callersFunctiontest_scaling
═══════════════════════════════════════════════════════════════════════════════ TEST 3: Scale from 1 to 32 ViT blocks in ONE graph ═══════════════════
tests/test_metal_overhead.cpp:258
↓ 1 callersFunctiontest_sinusoidal_pe
tests/test_phase3.cpp:183
↓ 1 callersFunctiontest_sinusoidal_pe
tests/test_vit.cpp:234
↓ 1 callersFunctiontest_vit_block_graph
═══════════════════════════════════════════════════════════════════════════════ TEST 2: Single ViT block as ONE graph vs sum of individual ops ═══════
tests/test_metal_overhead.cpp:99
↓ 1 callersFunctiontokenize_prompt
(tokenizer: Tokenizer, text: str, context_length: int)
tests/dump_phase4_reference.py:78
↓ 1 callersFunctiontolerance_for
tests/test_phase6.cpp:135
↓ 1 callersFunctionupdate_summary
tests/test_phase4.cpp:136
↓ 1 callersFunctionupload_texture
examples/main_video.cpp:162
↓ 1 callersFunctionusage
tests/test_metal_conv_transpose_2d.cpp:58
↓ 1 callersFunctionusage
tests/test_metal_conv_transpose_2d_stress.cpp:37
↓ 1 callersFunctionusage
tests/test_metal_flash_attn_ext_block15_compare.cpp:50
↓ 1 callersFunctionwindow_partition
(x, window_size)
tests/dump_phase3_reference.py:80
↓ 1 callersFunctionwindow_partition
(x, ws)
tests/check_f16_weight_error.py:93
↓ 1 callersFunctionwindow_partition
(x, window_size)
tests/dump_vit_reference.py:64
↓ 1 callersFunctionwindow_unpartition
(windows, window_size, pad_hw, hw)
tests/dump_phase3_reference.py:92
↓ 1 callersFunctionwindow_unpartition
(windows, ws, pad_hw, hw)
tests/check_f16_weight_error.py:98
↓ 1 callersFunctionwindow_unpartition
(windows, window_size, pad_hw, hw)
tests/dump_vit_reference.py:76
↓ 1 callersFunctionwrite_header
Write SAM2 file header: magic, version, ftype, n_tensors, hparams.
convert_sam2_to_ggml.py:206
↓ 1 callersFunctionwrite_header
Write SAM2-compatible header with EdgeTAM-specific extension.
convert_edgetam_to_ggml.py:386
↓ 1 callersFunctionwrite_header
Write file header: magic, version, ftype, n_tensors, hparams.
convert_sam3_to_ggml.py:202
↓ 1 callersFunctionwrite_meta
(case_dir: str, case: Phase7Case)
tests/dump_phase7_reference.py:727
↓ 1 callersFunctionwrite_tensor
Write one tensor record with 32-byte aligned data.
convert_sam2_to_ggml.py:280
↓ 1 callersFunctionwrite_tensor
Write one tensor record with 32-byte aligned data.
convert_edgetam_to_ggml.py:475
↓ 1 callersFunctionwrite_tensor
Write one tensor record with 32-byte aligned data.
convert_sam3_to_ggml.py:214
↓ 1 callersFunctionwrite_tokenizer
Embed BPE tokenizer (vocab + merges) into the model file.
convert_sam3_to_ggml.py:262
Method__init__
(self, vocab_path, merges_path)
scripts/verify_tokenizer.py:43
Method__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
tests/dump_vit_reference.py:111
Functioncheck
tests/test_vit.cpp:73
Functioncompare_ggml_vs_nchw
Compare ggml [C, W, H] vs Python NCHW [1, C, H, W] — need transposition
tests/test_e2e_pvs.cpp:30
Functioncompare_ggml_vs_nhwc
Compare ggml [ne0, ne1, ne2] vs Python NHWC [1, H, W, E] — same flat layout
tests/test_e2e_pvs.cpp:23
Functioncpp_style_preprocess
Replicate C++ sam3_preprocess_image exactly.
tests/dump_cpp_preprocessed.py:19
Functionedgetam_window_unpartition_cpu
Inverse of window partition: [D, 16, 256] → [D, H, W] spatial layout. Rearranges 256 windows of 16 tokens each back into [D, H*W] feature map. Output
sam3.cpp:5580
Methodforward
(self, x)
tests/dump_vit_reference.py:118
Methodhiera_stage_heads
sam3.cpp:218
Methodhiera_stage_spatial
sam3.cpp:224
Functionmain
tests/test_sam2_pvs_compare.cpp:17
Functionmain
tests/test_llama_pcs.cpp:9
Functionmain
tests/test_debug_encoder.cpp:64
Functionmain
tests/test_phase3.cpp:593
Functionmain
tests/test_sam2_video_debug.cpp:51
Functionmain
tests/test_metal_python_ref_compare.cpp:468
Functionmain
tests/test_v_cont_removal.cpp:151
Functionmain
tests/test_geom_enc.cpp:13
Functionmain
tests/test_text_enc_dump.cpp:8
Functionmain
tests/test_metal_overhead.cpp:360
Functionmain
tests/test_jpeg_decode.cpp:9
Functionmain
tests/test_vit.cpp:427
Functionmain
tests/test_sam2_pe_cache_size.cpp:19
Functionmain
tests/test_metal_profile.cpp:78
Functionmain
tests/test_metal_encoder_checkpoints.cpp:85
Functionmain
tests/test_metal_real_profile.cpp:21
Functionmain
tests/test_preprocess_match.cpp:14
Functionmain
tests/test_phase7.cpp:120
Functionmain
tests/test_visual_only.cpp:4
Functionmain
tests/test_video_2frame.cpp:12
Functionmain
tests/test_phase6.cpp:149
Functionmain
tests/test_metal_vit.cpp:16
Functionmain
tests/test_e2e_pvs.cpp:99
Functionmain
tests/test_metal_vit_upstream_compare.cpp:266
Functionmain
tests/test_metal_block0_stage_compare.cpp:165
Functionmain
tests/test_metal_phase6.cpp:115
Functionmain
tests/test_phase5.cpp:109
Functionmain
tests/test_text_enc_cat.cpp:11
Functionmain
tests/test_metal_conv_transpose_2d.cpp:283
Functionmain
tests/test_metal_conv_dw.cpp:94
Functionmain
tests/test_e2e_pcs.cpp:108
← previousnext →701–800 of 893, ranked by callers