গাইড লিঙ্ক ক্যুইজ · মাঝারি স্তর
PyTorch শেখা: একটি রোডম্যাপ কুইজ
টেনসর এবং অটোগ্রাড থেকে মডিউল, প্রশিক্ষণ, মূল্যায়ন, চেকপয়েন্ট এবং পরিমাপিত অপ্টিমাইজেশানের ক্রমানুসারে PyTorch দক্ষতা তৈরি করুন।
প্রশ্ন 1 এর 8
PyTorch অটোগ্র্যাড ডিফারেনশিয়েবল টেনসর অপারেশনের জন্য কী গণনা করে?
প্রতিটি প্রশ্নের পূর্বরূপ দেখুন8 প্রশ্ন
আপনি কুইজ নেওয়ার সাথে সাথে উত্তর এবং ব্যাখ্যাগুলি উপস্থিত হয়।
- PyTorch অটোগ্র্যাড ডিফারেনশিয়েবল টেনসর অপারেশনের জন্য কী গণনা করে?
- Predictions and class labels only
- Parameter updates performed by the optimizer
- Gradients of tracked differentiable operations
- DataLoader batch order
- সাধারণ ট্রেনিং লুপে অপ্টিমাইজার আপডেটের মধ্যে গ্রেডিয়েন্ট পরিষ্কার করা কেন গুরুত্বপূর্ণ?
- Gradients are overwritten on every backward call
- Gradients accumulate by default across backward calls
- Gradients are cleared automatically by optimizer.step
- Each parameter receives a gradient only once per epoch
- model.eval() মোড-নির্ভর মডিউলগুলোর জন্য কী পরিবর্তন করে?
- It permanently freezes every parameter
- It disables autograd for all code that follows
- It resets optimizer state and gradients
- It changes mode-dependent modules such as dropout and batch normalization to evaluation behavior
- ডেটাসেট এবং ডেটালোডারের মধ্যে দায়িত্বের সঠিক বিভাজন কোনটি?
- Dataset defines per-example access; DataLoader batches and iterates over examples
- Dataset defines model layers; DataLoader computes the loss
- Dataset stores optimizer state; DataLoader updates gradients
- Dataset selects a checkpoint; DataLoader changes evaluation mode
- একটি মডেলের স্টেট ডিকশনারি কী ধারণ করে?
- A serialized Python architecture and all source code
- Parameter and buffer values to load into a recreated module
- The entire training dataset and split definitions
- The final test metric and evaluation report
- Why profile data loading and transfer along with GPU computation?
- The pipeline may be limited by input preparation or transfer, not just model kernels
- GPU time always dominates when the model is on a device
- Data loading cannot affect end-to-end throughput
- Only the number of layers determines request latency
- Which evaluation design is appropriate when tuning PyTorch checkpoints?
- Choose the best checkpoint on final test data repeatedly
- Train and report on the same batches only
- Use test labels to set augmentation
- Use validation data for selection and keep a final test separate
- What should precede advanced optimization such as mixed precision or compilation?
- A correct baseline and profiling evidence
- Compile before measuring a baseline
- Enable mixed precision for every dtype
- Increase batch size without checking memory