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
↓ 5 callers
Function
C
(e)
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 5 callers
Function
_auth_headers
(api_key: str)
site/newsletter/cli/core/buttondown.py:37
↓ 5 callers
Method
_bib_files
(self, root: Path)
book/cli/commands/validate.py:1187
↓ 5 callers
Method
_book_bib_scope_for_qmd
(self, qmd_path: Path)
book/cli/commands/validate.py:8737
↓ 5 callers
Method
_book_bib_scopes
(self)
book/cli/commands/validate.py:8724
↓ 5 callers
Method
_calculate_memory_efficiency
Calculate memory efficiency as ratio of useful to total memory. ``` Efficiency = useful_memory / peak_memory
tinytorch/src/14_profiling/14_profiling.py:530
↓ 5 callers
Function
_call_gemini
Call Gemini CLI and return output text, or None on failure.
interviews/vault/vault.py:1984
↓ 5 callers
Function
_call_name
(node: ast.AST)
book/cli/checks/fmt_prose_contract.py:108
↓ 5 callers
Function
_clean_text_atom
Validate a structured display atom such as a count label or denominator.
mlsysim/mlsysim/fmt.py:173
↓ 5 callers
Method
_compute_pool_output_shape
Calculate output spatial dimensions for pooling. TODO: Apply the pooling output size formula APPROACH: 1. Apply the
tinytorch/src/09_convolutions/09_convolutions.py:1367
↓ 5 callers
Method
_count_linear_flops
Count FLOPs for a Linear layer forward pass. ``` Linear FLOP Formula: FLOPs = in_features × out_features × 2
tinytorch/src/14_profiling/14_profiling.py:389
↓ 5 callers
Function
_d1_db_name
(env: str)
interviews/vault-cli/src/vault_cli/commands/release.py:33
↓ 5 callers
Function
_discover_modules
Auto-discover modules from src/ directory. Scans for directories matching pattern: NN_name (e.g., 01_tensor, 15_quantization) Returns: {
tinytorch/tito/core/modules.py:40
↓ 5 callers
Function
_edge_profile
(track_id: str)
labs/tests/test_edge_helpers.py:15
↓ 5 callers
Function
_extract_pred_array
Extract a flat numpy array from a model prediction. Args: pred: Raw prediction (Tensor, numpy array, or list) Returns:
tinytorch/src/19_benchmarking/19_benchmarking.py:2446
↓ 5 callers
Function
_hardware_quantity
(hardware: Any, path: str, unit: str, default: float)
labs/mlsysbook_labs/serving.py:136
↓ 5 callers
Function
_inline_python_math_spans
(text: str)
book/cli/commands/validate.py:157
↓ 5 callers
Method
_interpret_2xx
Turn a 2xx response into an honest result. The server returns ``synced_modules``. A 2xx with ``synced_modules`` null/0 while we sent
tinytorch/tito/core/submission.py:278
↓ 5 callers
Method
_make_fabric
Helper to create a simple InfiniBand fabric.
mlsysim/tests/test_solver_suite.py:1147
↓ 5 callers
Function
_measure_layer_bytes
Measure parameter count and byte usage for a single layer. TODO: Count parameters and bytes differently for quantized vs FP32 layers AP
tinytorch/src/15_quantization/15_quantization.py:1505
↓ 5 callers
Function
_now
()
interviews/vault-cli/src/vault_cli/commands/authoring.py:51
↓ 5 callers
Method
_open_output
Open the build output using the system's default application. Uses shared rule: PDF = any .pdf, EPUB = any .epub, HTML = index.html.
book/cli/commands/build.py:316
↓ 5 callers
Function
_pad_image
Detect image format and apply zero-padding to spatial dimensions only. TODO: Pad the image with zeros on all spatial sides APPROACH:
tinytorch/src/05_dataloader/05_dataloader.py:919
↓ 5 callers
Method
_parse_chapter_filter
(raw: str)
book/cli/commands/layout.py:2924
↓ 5 callers
Function
_parse_json_response
Parse JSON array from Gemini response.
interviews/vault/vault.py:2005
↓ 5 callers
Function
_plain_in_html
(value: str, ht: str)
book/tools/audit/fmt/audit_lego_html.py:165
↓ 5 callers
Function
_prediction_label
(options, value)
labs/vol1/lab_10_model_compress.py:1062
↓ 5 callers
Function
_profile
(track_id: str)
labs/tests/test_responsibility_helpers.py:15
↓ 5 callers
Method
_qmd_files
(self, root: Path)
book/cli/commands/info.py:184
↓ 5 callers
Function
_quantity_to_float
(value: Any, unit: str, default: float)
labs/mlsysbook_labs/neural_compute.py:100
↓ 5 callers
Method
_relative
(self, path: Path)
book/cli/commands/info.py:205
↓ 5 callers
Function
_render_fields
(items: Mapping[str, Any])
labs/mlsysbook_labs/ui.py:582
↓ 5 callers
Function
_resolve
(ref: str, ns: dict)
book/tools/audit/fmt/audit_lego_html.py:122
↓ 5 callers
Function
_revert
(path: Path)
book/tools/audit/fmt/run_scale_style_lane.py:29
↓ 5 callers
Function
_revert
(path: Path)
book/tools/audit/fmt/run_percent_lane.py:49
↓ 5 callers
Method
_run_command
Run a command with progress indication. Args: cmd: Command to run cwd: Working directory description: Des
book/cli/commands/build.py:822
↓ 5 callers
Method
_run_external
Run an external command from the TinyTorch project root.
tinytorch/tito/commands/nbgrader.py:742
↓ 5 callers
Method
_run_gh_command
Run a GitHub CLI command and return JSON result.
book/tools/scripts/infrastructure/cleanup_workflow_runs_gh.py:39
↓ 5 callers
Method
_run_pytest
Run pytest on a path and return result.
tinytorch/tito/commands/dev/test.py:414
↓ 5 callers
Function
_run_xref_case
(tmp_path, body)
book/tests/test_algorithm_xref_case.py:6
↓ 5 callers
Method
_sample_next_token
Sample one token from vocabulary logits using temperature scaling. TODO: Implement temperature-controlled token sampling AP
tinytorch/src/13_transformers/13_transformers.py:1363
↓ 5 callers
Method
_single_operation
Perform a single nbgrader operation.
tinytorch/tito/commands/nbgrader.py:623
↓ 5 callers
Method
_split_heads
Reshape to separate attention heads for parallel processing. TODO: Reshape (batch, seq, embed_dim) to (batch, heads, seq, head_dim)
tinytorch/src/12_attention/12_attention.py:749
↓ 5 callers
Function
_sql_lit
(v)
interviews/vault-cli/scripts/ship_d1.py:38
↓ 5 callers
Function
_status_cell
(_ok)
labs/vol2/lab_11_edge_intelligence.py:1478
↓ 5 callers
Function
_validate_version
(version: str)
interviews/vault-cli/src/vault_cli/commands/release.py:132
↓ 5 callers
Function
_vault_with_map
Lay out a minimal vault dir whose repo-root has a book/ tree. vault_dir = <root>/interviews/vault so that vault_dir.parent.parent is the repo
interviews/vault-cli/tests/test_book_refs.py:16
↓ 5 callers
Function
_word_match
(key: str, word: str)
mlsysim/mlsysim/cli/renderers.py:119
↓ 5 callers
Function
_y_overlap
(a: MarginGeometryElement, b: MarginGeometryElement)
book/cli/checks/margin_geometry.py:135
↓ 5 callers
Method
animateCountUp
* Animate a single counter from 0 to target value * @param {HTMLElement} container - The container element * @param {string} elementId - ID of t
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:5565
↓ 5 callers
Method
animateCountUp
(e,t,n,o)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 5 callers
Function
apply
(scheme)
shared/scripts/theme-persist.js:74
↓ 5 callers
Method
apply
Compute gradients for addition. Args: grad_output: Gradient flowing backward from output Returns: T
tinytorch/src/06_autograd/06_autograd.py:542
↓ 5 callers
Method
applyToEditor
(editor: vscode.TextEditor | undefined)
book/vscode-ext/src/providers/qmdChunkHighlighter.ts:324
↓ 5 callers
Function
audit
Scan target content files for disallowed literal ``USD``.
book/cli/checks/currency_style.py:287
↓ 5 callers
Function
audit_rendered_html
Scan rendered HTML files for visible currency/math artifacts.
book/cli/checks/currency_style.py:276
↓ 5 callers
Function
batching_result
Compare static padding waste with continuous batching occupancy.
labs/mlsysbook_labs/inference.py:217
↓ 5 callers
Function
bench
(model, x, n_warmup=3, n_iter=20)
mlperf-edu/scripts/smoke_iter8_compression.py:54
↓ 5 callers
Function
bitsUsed
()
site/assets/games/quantization.js:79
↓ 5 callers
Method
build_full
Build full book in specified format. Args: format_type: Format to build ('html', 'pdf', 'epub') skip_hygiene: For EPU
book/cli/commands/build.py:346
↓ 5 callers
Function
calc_all_to_all_time
Calculates communication time for an All-to-All collective. In an All-to-All operation (used heavily in Mixture of Experts routing), ev
mlsysim/mlsysim/physics/communication.py:313
↓ 5 callers
Function
calc_hierarchical_allreduce_time
Calculates communication time for a Hierarchical AllReduce collective. This models the standard topology of modern GPU clusters (e.g., NVLin
mlsysim/mlsysim/physics/communication.py:350
↓ 5 callers
Function
calc_monthly_egress_cost
Calculates the monthly cloud egress cost for sustained bandwidth usage. Parameters ---------- bytes_per_sec : Quantity The s
mlsysim/mlsysim/physics/economics.py:11
↓ 5 callers
Function
calc_young_daly_interval
Optimal checkpoint interval: ``tau = sqrt(2 * delta * MTBF)``. Young (1974) first-order approximation, popularized with the Daly (2006) refin
mlsysim/mlsysim/physics/reliability.py:18
↓ 5 callers
Function
call_gemini
(prompt: str, *, timeout: int = 600)
interviews/vault-cli/scripts/audit_chains_with_gemini.py:147
↓ 5 callers
Function
canonical_json_new_path
Return the canonical ``.new`` staging path. The stem matches the chapter's ``.qmd`` filename so the output filename agrees with the chapter's
book/tools/scripts/quizzes/generate_quizzes.py:114
↓ 5 callers
Function
cap
(s: str, n: int)
interviews/vault/scripts/gpt_backfill_question.py:144
↓ 5 callers
Method
check_commented_chapters_in_directories
Check if any chapters are commented out within the target directories.
book/tools/scripts/content/manage_captions.py:287
↓ 5 callers
Function
clearSession
()
tinytorch/quarto/community/modules/state.js:27
↓ 5 callers
Function
closeModal
()
socratiq/src_shadow/js/components/settings/settings.js:687
↓ 5 callers
Method
completeOnboarding
()
socratiq/src_shadow/js/components/onboarding/sr-onboarding-handler.js:239
↓ 5 callers
Method
contiguous
Return a contiguous copy of the tensor data (PyTorch-compatible).
tinytorch/src/01_tensor/01_tensor.py:334
↓ 5 callers
Function
convert_py_to_notebook
Convert src/<module>.py to modules/<module>.ipynb using jupytext.
tinytorch/tito/commands/export_utils.py:139
↓ 5 callers
Method
create_parser
Create the main argument parser.
tinytorch/tito/main.py:226
↓ 5 callers
Function
drawNodeBox
(box, selected)
site/assets/games/topology.mjs:136
↓ 5 callers
Function
emit_migrations
Emit forward + inverse migrations between two vault.db snapshots. Diffs ALL migration-participating tables (questions, chains, chain_questions,
interviews/vault-cli/src/vault_cli/release.py:215
↓ 5 callers
Function
ensureContext
()
book/vscode-ext/src/utils/terminal.ts:59
↓ 5 callers
Function
err
(msg: str)
book/tools/scripts/quizzes/playwright_verify.py:44
↓ 5 callers
Method
escapeHtml
(e)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:10091
↓ 5 callers
Method
escapeHtml
(e)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 5 callers
Function
escape_xml
(s: str)
design-grammar/paper/scripts/generate_primitive_catalog.py:80
↓ 5 callers
Function
evaluate_accuracy
Compute classification accuracy.
tinytorch/milestones/03_1986_mlp/01_rumelhart_tinydigits.py:243
↓ 5 callers
Function
execute_sut_plugin
Dynamically loads a student's SUT_Interface plugin and pipes it into the LoadGen.
mlperf-edu/src/mlperf/cli.py:123
↓ 5 callers
Function
extract_sections_with_ids
Extract all level-2 sections (##) with their content and section references. This function parses markdown content to find all level-2 heade
book/tools/scripts/quizzes/_legacy/quizzes_reference.py:1526
↓ 5 callers
Function
federated_communication
Estimate non-IID federated rounds and compressed communication volume.
labs/mlsysbook_labs/edge.py:333
↓ 5 callers
Function
fmt_bandwidth
Auto-scale bandwidth for prose (MB/s, GB/s, TB/s).
mlsysim/mlsysim/fmt.py:2417
↓ 5 callers
Function
fmt_flop_rate
Auto-scale FLOP throughput for prose (GFLOP/s through ZFLOP/s).
mlsysim/mlsysim/fmt.py:2446
↓ 5 callers
Function
fmt_flops
Auto-scale FLOP work/count quantities for prose (KFLOP through ZFLOP).
mlsysim/mlsysim/fmt.py:2475
↓ 5 callers
Function
fmt_percent
Format a 0-1 RATIO as a percentage. Single canonical domain. style="prose" -> "85 percent" (MIT body style, default) style="symbol" -> "85
book/tools/audit/fmt/prototype_typed_fmt.py:24
↓ 5 callers
Function
fmt_qty_int
Format a Pint Quantity as a rounded integer with a checked unit suffix. Use this only when rounded integer display is the editorial intent. For
mlsysim/mlsysim/fmt.py:1988
↓ 5 callers
Function
fmt_qty_range
Format a range of Pint quantities with one canonical unit suffix.
mlsysim/mlsysim/fmt.py:1593
↓ 5 callers
Function
fmt_sci_qty
Format a Pint quantity in scientific notation with a checked unit suffix.
mlsysim/mlsysim/fmt.py:1623
↓ 5 callers
Function
fmt_usd_range
Format a currency range with optional scale and one denominator.
mlsysim/mlsysim/fmt.py:1753
↓ 5 callers
Function
forceLogin
()
tinytorch/quarto/community/modules/state.js:69
↓ 5 callers
Function
formatTrack
(track: string)
interviews/staffml/src/app/explore/page.tsx:47
↓ 5 callers
Function
format_memory
(bytes)
tinytorch/src/08_training/08_training.py:1699
↓ 5 callers
Method
forward
Apply sigmoid activation element-wise. TODO: Implement sigmoid function APPROACH: 1. Apply sigmoid formula: 1 / (1
tinytorch/src/02_activations/02_activations.py:225
↓ 5 callers
Method
forward
Apply GELU activation element-wise. TODO: Implement GELU approximation APPROACH: 1. Use approximation: x * sigmoid(
tinytorch/src/02_activations/02_activations.py:608
↓ 5 callers
Method
forward
Apply softmax activation along specified dimension. TODO: Implement numerically stable softmax APPROACH: 1. Subtrac
tinytorch/src/02_activations/02_activations.py:728
↓ 5 callers
Method
forward
Apply layer normalization. TODO: Implement layer normalization formula APPROACH: 1. Compute mean and variance acros
tinytorch/src/13_transformers/13_transformers.py:539
← previous
next →
801–900 of 13,553, ranked by callers