MCPcopy Create free account

hub / github.com/harvard-edge/cs249r_book / functions

Functions13,553 in github.com/harvard-edge/cs249r_book

↓ 8 callersFunctionerror_shield
Context manager to catch exceptions, format them properly via renderers, and exit with the correct semantic code. Promotes DRY principles.
mlsysim/mlsysim/cli/exceptions.py:19
↓ 8 callersFunctionevaluate_deployment_envelope
Evaluate memory, latency, energy, power, bandwidth, and cost limits.
labs/mlsysbook_labs/deployment.py:265
↓ 8 callersFunctionfleet_mttf_hours
MTTF anchor for reliability registry entries.
mlsysim/mlsysim/core/provenance.py:181
↓ 8 callersMethodforward
Compute binary cross-entropy loss. TODO: Implement binary cross-entropy with numerical stability APPROACH: 1. Clamp
tinytorch/src/04_losses/04_losses.py:820
↓ 8 callersMethodforward
Add positional encodings to input embeddings. Args: x: Input embeddings of shape (batch_size, seq_len, embed_dim)
tinytorch/src/11_embeddings/11_embeddings.py:637
↓ 8 callersFunctiongetLevelDef
(id: string)
interviews/staffml/src/lib/levels.ts:70
↓ 8 callersFunctiongetOutputChannel
()
book/vscode-ext/src/utils/terminal.ts:52
↓ 8 callersFunctiongetSession
()
tinytorch/quarto/community/modules/state.js:16
↓ 8 callersMethodgetTextColor
()
socratiq/src_shadow/js/components/spaced_repetition/spaced-repetition-visualization.js:20
↓ 8 callersFunctiongetTracks
()
interviews/staffml/src/lib/corpus.ts:151
↓ 8 callersMethodget_text
(self, kind)
book/tests/test_pdf_layout_checks.py:699
↓ 8 callersFunctiongradeNapkinAnswer
( userText: string, modelText: string, track: string, )
interviews/staffml/src/lib/corpus.ts:554
↓ 8 callersMethodinitialize
* Initialize the UI system
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:5683
↓ 8 callersMethodinitialize
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 8 callersFunctionjsonResponse
(data, status, headers)
interviews/staffml/analytics-worker/worker.js:275
↓ 8 callersMethodlist
Returns a list of all registry items, optionally sorted. Recurses into nested Registry subclasses (e.g. Hardware.Cloud.*).
mlsysim/mlsysim/core/registry/__init__.py:16
↓ 8 callersFunctionmagnitude_prune
Remove weights with smallest magnitudes to achieve target sparsity. TODO: Implement global magnitude-based pruning APPROACH: 1. Col
tinytorch/src/16_compression/16_compression.py:500
↓ 8 callersFunctionmake_dam
(chapter, name, *, focus="all", vol="vol1", style="triangle")
book/tools/scripts/margin_figures/generate_margin_figures.py:250
↓ 8 callersFunctionmake_ironbar
(chapter, name, segs, *, dom=1, style="stacked")
book/tools/scripts/margin_figures/generate_margin_figures.py:244
↓ 8 callersFunctionmake_roofline_points
Draw a margin roofline with one or more labeled operating points.
book/tools/scripts/margin_figures/generate_margin_figures.py:178
↓ 8 callersFunctionmake_sparkline
(chapter, name, *, threat=True, style="gap", steep=1.8, saturating=False, endpoints=None)
book/tools/scripts/margin_figures/generate_margin_figures.py:166
↓ 8 callersFunctionmeasure_roofline
Wrap a hot loop and emit a roofline sidecar on exit. Usage: with measure_roofline("nanogpt-prefill", analy
mlperf-edu/src/mlperf/roofline.py:119
↓ 8 callersFunctionnormalize_track_id
Normalize canonical and legacy track IDs to the canonical profile ID.
labs/mlsysbook_labs/tracks.py:102
↓ 8 callersMethodonMessage
(e, t, o)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:10033
↓ 8 callersFunctionpack_batches
Pack ``items`` into batches that fit within ``max_chars`` total. The character budget is computed against the JSON-serialized payload of each
interviews/vault-cli/scripts/_batching.py:34
↓ 8 callersFunctionpage_text
(page)
labs/tools/interaction_lab_smoke.py:349
↓ 8 callersMethodparameters
Return all trainable parameters.
tinytorch/src/11_embeddings/11_embeddings.py:1281
↓ 8 callersMethodparameters
(self)
tinytorch/src/08_training/08_training.py:912
↓ 8 callersMethodparameters
(self)
tinytorch/tests/integration/test_shapes.py:36
↓ 8 callersFunctionpatch
(m)
book/quarto/scripts/epub_postprocess.py:347
↓ 8 callersFunctionpickModule
(argNumber?: string)
tinytorch/vscode-ext/src/commands/moduleCommands.ts:30
↓ 8 callersMethodrelu
(x)
tinytorch/tests/integration/test_forward_passes.py:43
↓ 8 callersMethodremoveActiveTooltip
* Remove active tooltip
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:5850
↓ 8 callersMethodremoveActiveTooltip
()
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 8 callersMethodrender
()
socratiq/src_shadow/js/components/spaced_repetition/handlers/ui-handler.js:137
↓ 8 callersMethodreset
Reset cache for new generation sequence. Call this when starting a new generation (new prompt). Resets the sequence position
tinytorch/src/18_memoization/18_memoization.py:645
↓ 8 callersFunctionresolve_output_format
Resolve command-local output override, falling back to global state.
mlsysim/mlsysim/cli/context.py:36
↓ 8 callersFunctionroundedFloorForDisplay
(n: number)
interviews/staffml/src/lib/corpus.ts:139
↓ 8 callersMethodrun
Run the test suite.
tinytorch/tito/commands/dev/test.py:127
↓ 8 callersFunctionscrollToTopSmooth
(shadowRoot)
socratiq/src_shadow/js/libs/utils/utils.js:220
↓ 8 callersFunctionsetSelectedTrack
(track: string | null)
interviews/staffml/src/app/page.tsx:53
↓ 8 callersFunctionsetVisibility
(state: 'visible' | 'hidden')
interviews/staffml/src/__tests__/use-visibility-poll.test.tsx:17
↓ 8 callersMethodsetup_symlink
Setup _quarto.yml symlink for the specified format and optional volume. Args: format_type: Format type ('html', 'pdf', 'epub')
book/cli/core/config.py:164
↓ 8 callersFunctionshort_path
(path: Path)
book/tools/scripts/bib_mitpress_openai.py:114
↓ 8 callersMethodsoftmax
(x, dim=-1)
tinytorch/tests/integration/test_shapes.py:58
↓ 8 callersMethodsolve
Calculates the TCO for a fleet over a specified duration. Parameters ---------- fleet : Fleet The hardwa
mlsysim/mlsysim/engine/solvers/economics.py:185
↓ 8 callersFunctionstate_capacity
Estimate concurrent inference state capacity for the selected track.
labs/mlsysbook_labs/inference.py:183
↓ 8 callersMethodupdate
(storeName, data)
socratiq/src_shadow/js/libs/utils/indexDb.js:82
↓ 8 callersFunctionv1_02_fields
(fields)
labs/vol1/lab_02_ml_systems.py:268
↓ 8 callersFunctionv1_05_callout_html
(title, body, kind="info")
labs/vol1/lab_05_nn_compute.py:160
↓ 8 callersFunctionv1_06_table_html
(headers, rows, *, numeric=())
labs/vol1/lab_06_nn_arch.py:137
↓ 8 callersFunctionv2_05_qty_to_float
(value, unit, default)
labs/vol2/lab_05_dist_train.py:104
↓ 8 callersFunctionv2_07_prediction_feedback
(selected, correct, explanation)
labs/vol2/lab_07_fault_tolerance.py:1032
↓ 8 callersFunctionv2_07_status
(ok)
labs/vol2/lab_07_fault_tolerance.py:651
↓ 8 callersFunctionv2_09_bottleneck_label
(bottleneck)
labs/vol2/lab_09_perf_engineering.py:131
↓ 8 callersFunctionv2_10_schedule_label
(policy)
labs/vol2/lab_10_inference.py:197
↓ 8 callersFunctionv2_12_escape
(value)
labs/vol2/lab_12_ops_scale.py:114
↓ 8 callersFunctionv2_13_escape
(value)
labs/vol2/lab_13_security_privacy.py:115
↓ 7 callersFunction_assign_target
(node: ast.Assign)
book/tools/audit/fmt/codemod_fmt.py:58
↓ 7 callersMethod_find_source_line
Find a line in the QMD file matching the detail text. PDF extraction often removes spaces, injects line-wrap hyphens, or normalizes m
book/cli/commands/layout.py:2953
↓ 7 callersFunction_hash_file
Stream-hash a file. Returns (hex_digest, n_bytes).
mlperf-edu/src/mlperf/manifest.py:42
↓ 7 callersMethod_json
(self, code: int, payload: Any, extra_headers: dict[str, str] | None = None)
interviews/vault-cli/src/vault_cli/commands/serve_api.py:40
↓ 7 callersFunction_labels
(candidate)
book/tools/scripts/margin_figures/generate_margin_figures.py:1755
↓ 7 callersFunction_make_db
(path: Path, rows: list[tuple])
interviews/vault-cli/tests/test_release.py:11
↓ 7 callersFunction_normalize
(s: str)
book/tools/audit/fmt/audit_lego_html.py:139
↓ 7 callersFunction_profile
(track_id: str)
labs/tests/test_framework_helpers.py:14
↓ 7 callersFunction_profile
(track_id: str)
labs/tests/test_training_helpers.py:14
↓ 7 callersFunction_profile
(track_id: str)
labs/tests/test_selection_helpers.py:15
↓ 7 callersFunction_required_modules_for
Return all modules required by a milestone as sorted ints.
tinytorch/tito/commands/milestone.py:213
↓ 7 callersFunction_resolve_unit_arg
Resolve the display unit from positional or keyword ``unit=`` spelling.
mlsysim/mlsysim/fmt.py:400
↓ 7 callersMethod_run_audit_check
Import an audit.checks.* module and run its `check()` per QMD file. The audit package lives at `book/tools/audit/`. It uses relative
book/cli/commands/validate.py:9663
↓ 7 callersFunction_scale
(expr: str)
book/tests/test_codemod_fmt.py:25
↓ 7 callersFunction_sha256
(data: bytes)
mlperf-edu/src/mlperf/manifest.py:38
↓ 7 callersFunction_time
(expr: str)
book/tests/test_codemod_fmt.py:40
↓ 7 callersFunction_unit
(expr: str)
book/tests/test_codemod_fmt.py:35
↓ 7 callersMethod_update_moments
Update first and second moment estimates with bias correction. Computes the exponential moving averages of the gradient (first momen
tinytorch/src/07_optimizers/07_optimizers.py:906
↓ 7 callersFunction_write
(tmp_path, body: str)
book/tests/test_lego_prose_units.py:7
↓ 7 callersFunctionaddProgress
(list, shadowEle)
socratiq/src_shadow/js/components/progress/progress.js:199
↓ 7 callersMethodaddSystemMessage
(e, t, o = null)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:10003
↓ 7 callersMethodaddSystemMessage
(e,t,n=null)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 7 callersFunctionbitsUsed
()
site/assets/games/quantization.mjs:428
↓ 7 callersMethodbuild_content_map_from_qmd
Build comprehensive content map by scanning QMD files directly. This QMD-focused approach: 1. Scans all .qmd files in specif
book/tools/scripts/content/manage_captions.py:2330
↓ 7 callersFunctioncalc_bottleneck
Roofline bottleneck analysis (Williams et al., 2009). Determines whether a workload is compute-bound or memory-bound on a specific hard
mlsysim/mlsysim/physics/performance.py:96
↓ 7 callersFunctioncalc_ring_allreduce_time
Calculates communication time for a Ring AllReduce collective. The Ring AllReduce algorithm operates in two phases (Reduce-Scatter and A
mlsysim/mlsysim/physics/communication.py:23
↓ 7 callersMethodcallCustomAPI
* Main entry point for custom API calls * @param {string} prompt - The prompt to send * @param {Object} settings - User settings including custo
socratiq/src_shadow/js/libs/agents/custom-api-adapter.js:16
↓ 7 callersFunctionclassify_line
Classify a line by its markdown type.
book/tools/scripts/content/format_div_spacing.py:61
↓ 7 callersFunctionconstraint_tax
Compute the rework cost of discovering a constraint at a lifecycle stage.
labs/mlsysbook_labs/workflow.py:173
↓ 7 callersMethodcreatePeerConnection
(e, t, o = !1)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:226
↓ 7 callersMethodcreatePeerConnection
(e,t,n=!1)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 7 callersFunctioncreate_sinusoidal_embeddings
Create sinusoidal positional encodings as used in "Attention Is All You Need". These fixed encodings use sine and cosine functions to create
tinytorch/src/11_embeddings/11_embeddings.py:1012
↓ 7 callersFunctiondiagnose_triad
Diagnose the binding D-A-M axis under track-specific thresholds.
labs/mlsysbook_labs/triad.py:105
↓ 7 callersMethodensureInitialized
()
socratiq/src_shadow/js/components/spaced_repetition/handlers/spaced-repetition-indexdb.js:85
↓ 7 callersFunctionescapeHtml
(s)
design-grammar/scripts/build-html.mjs:282
↓ 7 callersMethodestimateTokens
* Rough estimation of token count * Rule of thumb: ~4 characters per token for English text * @param {string} text - Text to count tokens for
socratiq/src_shadow/js/libs/utils/tokenCounter.js:13
↓ 7 callersFunctionfmt_fps
Format frames per second for vision/video workloads.
mlsysim/mlsysim/fmt.py:1480
↓ 7 callersMethodforward
Forward pass through transformer block. TODO: Implement the complete transformer block computation APPROACH: 1. App
tinytorch/src/13_transformers/13_transformers.py:990
↓ 7 callersMethodforward
Forward pass through the layer. Args: x: Input tensor Returns: Output tensor after transformation
tinytorch/src/03_layers/03_layers.py:205
↓ 7 callersMethodforward
Forward pass through all layers sequentially. Passes training=True/False to layers that support it (e.g. Dropout), and falls back to
tinytorch/src/03_layers/03_layers.py:916
↓ 7 callersMethodforward
(self, x)
tinytorch/src/18_memoization/18_memoization.py:1407
↓ 7 callersFunctiongenerateUniqueId
()
socratiq/src_shadow/js/components/quiz/load_quiz.js:31
← previousnext →501–600 of 13,553, ranked by callers