H13-311_V3.5 · Question #337
PyTorch Which of the following functions does not have?
The correct answer is A. Inline keras. Inline Keras (A) is the correct answer because Keras is a high-level neural network API built on top of TensorFlow - it is not a feature of PyTorch. PyTorch has its own high-level abstractions (like torch.nn), and the two frameworks are entirely separate ecosystems. The…
Question
PyTorch Which of the following functions does not have?
Options
- AInline keras
- BSupport dynamic graph
- CAutomatic derivative
- DGPU accelerate
How the community answered
(44 responses)- A80% (35)
- B7% (3)
- C2% (1)
- D11% (5)
Explanation
Inline Keras (A) is the correct answer because Keras is a high-level neural network API built on top of TensorFlow - it is not a feature of PyTorch. PyTorch has its own high-level abstractions (like torch.nn), and the two frameworks are entirely separate ecosystems.
The distractors are all genuine PyTorch capabilities: dynamic graphs (B) are actually one of PyTorch's defining features - its "define-by-run" approach lets you modify the computation graph on the fly, unlike TensorFlow's older static graphs. Automatic differentiation (C) is provided by PyTorch's autograd module, which computes gradients automatically during backpropagation. GPU acceleration (D) is supported natively via CUDA, using simple .to('cuda') or .cuda() calls on tensors and models.
Memory tip: Think "PyTorch vs. TensorFlow/Keras" - they are rival frameworks. Anything Keras-specific is a dead giveaway as something PyTorch does not have. If you remember that Keras = TensorFlow's API layer, option A becomes immediately obvious.
Topics
Community Discussion
No community discussion yet for this question.