Rehber bağlantılı sınav · Sert Seviye
Makine Öğrenimi Sınavı için JAX ve XLA
İzleme davranışını hesaba katarken JAX dönüşümlerini otomatik farklılaştırma, vektörleştirme, derleme ve paralel yürütmeye bağlayın.
Soru 1 arasında 8
Hangi JAX dönüşümü türevlenebilir bir fonksiyonun gradyanlarını hesaplar?
Her soruyu önizleyin8 sorular
Testi çözdüğünüzde cevaplar ve açıklamalar görünür.
- Hangi JAX dönüşümü türevlenebilir bir fonksiyonun gradyanlarını hesaplar?
- jax.vmap
- jax.jit
- jax.grad
- jax.device_put
- Jax.vmap ne sağlar?
- Just-in-time compilation
- Automatic vectorization over a mapped axis
- Automatic differentiation
- Explicit random key splitting
- Jax.jit'in rolü nedir?
- Computes gradients of a scalar objective
- Vectorizes a function across a batch
- Places arrays on a selected device
- Compiles a compatible function for efficient execution through XLA
- Koşulu bir dizi değeri kullandığında, bir Python if ifadesi neden jitted fonksiyonun içinde başarısız olabiliyor?
- Tracing cannot use a runtime array value as an ordinary Python boolean
- Python evaluates every array-dependent if during tracing
- An array value always converts to a Python bool inside jit
- The compiled function specializes on runtime values automatically
- Açık rastgele anahtar geçişi JAX'ın programlama stiline nasıl uyuyor?
- It stores one hidden global generator
- It removes random variation from training
- It makes randomness an explicit input to computations
- It fixes package versions
- Why may changing input shapes cause additional JAX compilation?
- The model must retrain for each input
- Compilation can specialize to shapes and static arguments
- XLA discards the previous dataset
- Gradients cannot use arrays
- What should be done when timing asynchronous device execution?
- Measure only Python dispatch time
- Skip warmup for compiled functions
- Change the random seed during timing
- Synchronize the result before stopping the timer
- Which statement about JAX versus PyTorch is sound?
- Choose based on workload, ecosystem and team needs
- JAX is always faster for every model
- PyTorch cannot run on accelerators
- The frameworks have identical APIs