Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/harvard-edge/cs249r_book
/ functions
Functions
13,553 in github.com/harvard-edge/cs249r_book
⨍
Functions
13,553
◇
Types & classes
1,810
↳
Endpoints
20
↓ 1 callers
Function
test_mse_loss_gradients
Test MSELoss with autograd - SHOULD WORK
tinytorch/tests/integration/test_loss_gradients.py:22
↓ 1 callers
Function
test_multihead_attention_gradient_flow
Test that all MultiHeadAttention parameters receive gradients.
tinytorch/tests/13_transformers/test_transformer_gradient_flow.py:22
↓ 1 callers
Function
test_nanogpt_provenance
Validates NanoGPT output shapes and parameter counts against a standard GPT-2 configuration.
mlperf-edu/tests/test_provenance.py:28
↓ 1 callers
Function
test_parse_row
Test parsing table rows.
book/tools/scripts/testing/test_format_tables.py:84
↓ 1 callers
Method
test_pooling_shape_transformations
Test that pooling operations produce correct output shapes.
tinytorch/tests/integration/test_cnn_integration.py:159
↓ 1 callers
Method
test_pooling_with_negatives
Test pooling handles negative values correctly.
tinytorch/tests/integration/test_cnn_integration.py:288
↓ 1 callers
Function
test_pytorch_api_compatibility
Test that the API closely matches PyTorch patterns.
tinytorch/tests/integration/test_api_simplification_integration.py:260
↓ 1 callers
Function
test_quantization_integration
Test quantization system integration.
tinytorch/tests/15_quantization/test_quantization_integration.py:11
↓ 1 callers
Function
test_reshape_gradient_flow
Test that reshape preserves gradient flow.
tinytorch/tests/06_autograd/test_autograd_gradient_flow.py:131
↓ 1 callers
Function
test_resnet_provenance
Validates our custom ResNet-18 architecture against the official torchvision implementation for numerical parity.
mlperf-edu/tests/test_provenance.py:7
↓ 1 callers
Function
test_simple_table
Test formatting a simple table.
book/tools/scripts/testing/test_format_tables.py:173
↓ 1 callers
Function
test_subtraction_backward
Test that subtraction computes correct gradients.
tinytorch/tests/06_autograd/test_autograd_gradient_flow.py:57
↓ 1 callers
Function
test_table_with_empty_cells
Test table with empty cells in first column.
book/tools/scripts/testing/test_format_tables.py:210
↓ 1 callers
Function
test_table_with_unicode
Test table with Unicode characters.
book/tools/scripts/testing/test_format_tables.py:243
↓ 1 callers
Function
test_training_workflow_integration
Test DataLoader integration with realistic training workflow. Simulates: - Train/val split - DataLoader creation - Batch iterati
tinytorch/tests/integration/test_dataloader_integration.py:21
↓ 1 callers
Function
test_transformer_convergence_rate
Test that transformer converges at expected rate. This is a regression test to catch training instabilities.
tinytorch/tests/13_transformers/test_training_simple.py:156
↓ 1 callers
Function
test_transformer_memorization
Test that a transformer can memorize a tiny dataset. Success criteria: - Loss decreases by at least 80% in 500 steps - No NaN/Inf lo
tinytorch/tests/13_transformers/test_training_simple.py:25
↓ 1 callers
Function
test_transformer_to_linear_3d_to_2d
Regression test for transformer 3D output to Linear 2D input. This exact issue occurred in examples/gpt_2018/train_gpt.py
tinytorch/tests/regression/test_transformer_reshaping.py:51
↓ 1 callers
Function
test_typical_cnn_architectures
Test dimension flow through typical CNN architectures.
tinytorch/tests/regression/test_conv_linear_dimensions.py:150
↓ 1 callers
Function
test_unit_benchsuite_run
🧪 Test BenchmarkSuite.run_full_benchmark.
tinytorch/src/19_benchmarking/19_benchmarking.py:1407
↓ 1 callers
Function
test_unit_broadcast_gradients
🔬 Test gradient broadcasting reduction.
tinytorch/src/06_autograd/06_autograd.py:1471
↓ 1 callers
Function
test_unit_function_classes
🔬 Test Function classes.
tinytorch/src/06_autograd/06_autograd.py:1416
↓ 1 callers
Function
test_unit_reduce_broadcast_grad
🔬 Test _reduce_broadcast_grad helper function.
tinytorch/src/06_autograd/06_autograd.py:455
↓ 1 callers
Function
text_area_suggestions
(shadowEle)
socratiq/src_shadow/js/components/highlight_menu/components/text_area_suggestions.js:39
↓ 1 callers
Function
text_before_for_italic_scan
Remove Markdown constructs whose `*` characters are not italic markers.
book/tools/audit/index/format_audit.py:27
↓ 1 callers
Function
tick
()
interviews/staffml/src/lib/hooks/useVisibilityPoll.ts:44
↓ 1 callers
Function
tick
()
site/assets/games/runtime.mjs:193
↓ 1 callers
Function
tint
Blend the color toward white by (1 - alpha). Returns #rrggbb.
design-grammar/paper/scripts/generate_primitive_catalog.py:66
↓ 1 callers
Function
tmp_pdf
()
book/tests/test_pdf_layout_checks.py:86
↓ 1 callers
Function
tnum
Magnitude of a throughput Quantity in T-scale (TFLOP/s or TOPS).
book/tools/audit/check_fig_ai_performance_drift.py:54
↓ 1 callers
Function
toDisplayName
(dirName: string)
book/vscode-ext/src/utils/chapters.ts:6
↓ 1 callers
Method
to_dict
Serialize for JSON output. Omits empty/default fields.
book/tools/audit/ledger.py:116
↓ 1 callers
Method
to_dict
Convert to dictionary (excluding content for manifest).
book/tools/scripts/content/section_splitter.py:60
↓ 1 callers
Method
to_dict
(self, binder_label: str)
book/cli/commands/release.py:72
↓ 1 callers
Method
to_dict
Convert to dictionary for serialization.
tinytorch/src/19_benchmarking/19_benchmarking.py:390
↓ 1 callers
Method
to_dict
(self)
interviews/vault/scripts/vault_invariants.py:71
↓ 1 callers
Function
to_dot
Export graph as Graphviz DOT.
interviews/vault/schema/graph.py:139
↓ 1 callers
Method
to_json
Serialize the ledger to a formatted JSON string.
book/tools/audit/ledger.py:163
↓ 1 callers
Method
to_report_dict
(self)
book/cli/commands/layout.py:165
↓ 1 callers
Method
toggle
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 1 callers
Function
toggleArea
(area: string)
interviews/staffml/src/app/interview/page.tsx:482
↓ 1 callers
Method
toggleChildrenVisibility
(element, data)
socratiq/src_shadow/js/components/visualizations/KnowledgeGraph.js:1864
↓ 1 callers
Function
toggleCitations_off
(menu)
socratiq/src_shadow/js/components/highlight_menu/components/menu_ui.js:28
↓ 1 callers
Function
toggleHiddenClass
* Accesses the shadow root to find an element by its ID and, if found, removes the 'hidden' class from the element. * * @param {Element} shadowEle -
socratiq/src_shadow/js/libs/utils/check_menu_open.js:26
↓ 1 callers
Function
toggleMarkdownPreviewVisibility
()
socratiq/src_shadow/js/components/markdown/markdown_show.js:1
↓ 1 callers
Function
toggleProgress
(progressOff)
socratiq/src_shadow/js/components/progress/progress.js:11
↓ 1 callers
Method
toggleView
()
socratiq/src_shadow/js/components/visualizations/KnowledgeGraph.js:1407
↓ 1 callers
Method
toggleWidget
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:7964
↓ 1 callers
Method
toggleWidget
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 1 callers
Function
token_throughput
Return token rate from token count and duration.
mlsysim/mlsysim/physics/quantities.py:107
↓ 1 callers
Function
trackColor
(track: string)
interviews/staffml/src/app/explore/page.tsx:521
↓ 1 callers
Function
trackColorScheme
(shadowEle)
socratiq/src_shadow/js/libs/utils/trackColorScheme.js:232
↓ 1 callers
Function
track_arc_map
()
labs/mlsysbook_labs/track_arcs.py:225
↓ 1 callers
Function
track_from_path
Extract the track from a path. Tolerates both flat and hierarchical layout. Returns the first directory segment under ``vault/questions/``. For a
interviews/vault-cli/src/vault_cli/paths.py:50
↓ 1 callers
Function
track_profile_map
Return canonical profiles keyed by track ID.
labs/mlsysbook_labs/tracks.py:138
↓ 1 callers
Function
track_subgraph
(G: nx.DiGraph, track: str)
interviews/vault/schema/graph.py:87
↓ 1 callers
Function
tracked_add
Addition with gradient tracking. Enhances the original __add__ method to build computation graphs when requires_grad=True fo
tinytorch/src/06_autograd/06_autograd.py:2482
↓ 1 callers
Function
tracked_div
Division with gradient tracking. Enhances the original __truediv__ method to build computation graphs when requires_grad=Tru
tinytorch/src/06_autograd/06_autograd.py:2634
↓ 1 callers
Function
tracked_mul
Multiplication with gradient tracking. Enhances the original __mul__ method to build computation graphs when requires_grad=T
tinytorch/src/06_autograd/06_autograd.py:2512
↓ 1 callers
Function
tracked_sub
Subtraction with gradient tracking. Enhances the original __sub__ method to build computation graphs when requires_grad=True
tinytorch/src/06_autograd/06_autograd.py:2603
↓ 1 callers
Method
train
Set model to training mode.
tinytorch/milestones/04_1998_cnn/02_lecun_cifar10.py:263
↓ 1 callers
Function
train_and_evaluate
Train MicroLSTM on ETTh1 and report convergence.
mlperf-edu/reference/cloud/micro_lstm.py:197
↓ 1 callers
Function
train_and_evaluate
Train MicroBERT on SST-2 and report convergence.
mlperf-edu/reference/cloud/micro_bert.py:258
↓ 1 callers
Function
train_and_evaluate
Training loop on Cora — targets ~78-81% test accuracy.
mlperf-edu/reference/cloud/micro_gnn.py:287
↓ 1 callers
Function
train_cifar_cnn
Train CNN using YOUR complete training system with DataLoader!
tinytorch/milestones/04_1998_cnn/02_lecun_cifar10.py:413
↓ 1 callers
Function
train_cnn
Main training loop following 5-Act structure.
tinytorch/milestones/04_1998_cnn/01_lecun_tinydigits.py:313
↓ 1 callers
Function
train_epoch
Train for one epoch.
tinytorch/milestones/04_1998_cnn/01_lecun_tinydigits.py:270
↓ 1 callers
Function
train_epoch
Train for one epoch using YOUR DataLoader.
tinytorch/milestones/05_2017_transformer/01_vaswani_attention.py:353
↓ 1 callers
Function
train_mlp
Train MLP on digit recognition task.
tinytorch/milestones/03_1986_mlp/01_rumelhart_tinydigits.py:379
↓ 1 callers
Function
train_model
Full training loop for one model.
mlperf-edu/scripts/verify_training.py:228
↓ 1 callers
Function
train_network
Train multi-layer network on XOR. This WILL succeed - hidden layers solve the problem!
tinytorch/milestones/02_1969_xor/02_xor_solved.py:223
↓ 1 callers
Function
train_one_epoch
Train for one epoch, return average loss.
mlperf-edu/scripts/verify_training.py:122
↓ 1 callers
Function
train_rl_agent
Train REINFORCE agent on local CartPole. Returns training metrics for convergence verification.
mlperf-edu/reference/cloud/micro_rl.py:218
↓ 1 callers
Function
training_activation_memory_ladder
(candidate=None)
book/tools/scripts/margin_figures/generate_margin_figures.py:685
↓ 1 callers
Function
training_bandwidth_path_ladder
(candidate=None)
book/tools/scripts/margin_figures/generate_margin_figures.py:710
↓ 1 callers
Function
training_flash_attention_tile_ladder
(candidate=None)
book/tools/scripts/margin_figures/generate_margin_figures.py:723
↓ 1 callers
Method
training_memory
Estimate training memory for a Transformer model. Source: Shoeybi et al. (2019), "Megatron-LM: Training Multi-Billion Parame
mlsysim/mlsysim/models/types.py:207
↓ 1 callers
Function
transform_chains
corpus.json has chain_ids + chain_positions (parallel structures). YAML uses chains: [{id, position}, ...] — plural, ordered by position.
interviews/vault/scripts/migrate_to_v1_0.py:135
↓ 1 callers
Function
transform_file
(path: Path, exports: list[dict])
book/tools/audit/fmt/codemod_design_b_multipliers.py:67
↓ 1 callers
Function
translateLegacyQuizFormat
* Translate legacy quiz format to OpenAI-compatible format * @param {Object} legacyParams - The legacy parameters object * @param {string} legacyPar
socratiq/src_shadow/js/libs/agents/cloudflareAgent.js:423
↓ 1 callers
Function
triggerAIAction
(quizData)
socratiq/src_shadow/js/components/quiz/studyPastQuizzes.js:43
↓ 1 callers
Function
triggerAIAction
(title, sectionText, sectionId)
socratiq/src_shadow/js/components/quizBtns/injectQuizBtn.js:243
↓ 1 callers
Method
triggerImmediateContentCollection
* Trigger immediate content collection after countdown completes
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:4667
↓ 1 callers
Method
triggerImmediateContentCollection
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 1 callers
Function
triggerResetChat
()
socratiq/src_shadow/js/components/settings/previous_conversations.js:149
↓ 1 callers
Function
triggerResetChat
()
socratiq/src_shadow/js/components/settings/clear_chats.js:15
↓ 1 callers
Method
triggerRetryQueue
* Trigger immediate retry queue processing (when peers become available)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:558
↓ 1 callers
Method
triggerRetryQueue
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 1 callers
Method
truncateText
* Truncate text to specified length * @param {string} text - Text to truncate * @param {number} maxLength - Maximum length * @returns {string
socratiq/src_shadow/js/components/tooltip/referenceTooltip.js:252
↓ 1 callers
Function
tryMultipleProvidersSingle
( params, token, json = false, )
socratiq/src_shadow/js/libs/agents/cloudflareAgent.js:268
↓ 1 callers
Function
tryParseQty
(numRaw: string, unitRaw: string)
interviews/staffml/src/lib/corpus.ts:485
↓ 1 callers
Function
unlock_lab00_orientation
(page)
labs/tools/interaction_lab_smoke.py:698
↓ 1 callers
Function
update
(key, metaData, token)
socratiq/src_shadow/js/libs/vector_db/vectordb/quick_start.js:139
↓ 1 callers
Method
update
(key, object)
socratiq/src_shadow/js/libs/vector_db/vectordb/db/vectorDB/vectordb.js:221
↓ 1 callers
Function
updateAccuracy
()
site/assets/games/quantization.mjs:782
↓ 1 callers
Function
updateBadges
(shadowRoot)
socratiq/src_shadow/js/components/quiz/showQuizStats.js:1182
↓ 1 callers
Function
updateBudget
()
site/assets/games/quantization.mjs:770
↓ 1 callers
Function
updateButtonPosition
(button, rect)
socratiq/src_shadow/js/components/highlight_menu/old_send_text_highlight.js:193
↓ 1 callers
Function
updateButtonPosition
(button, rect)
socratiq/src_shadow/js/components/highlight_menu/send_text_highlight.js:300
↓ 1 callers
Method
updateButtonTheme
* Update button theme classes
socratiq/src_shadow/js/libs/utils/theme-manager.js:265
← previous
next →
8,001–8,100 of 13,553, ranked by callers