H13-311_V3.5 · Question #316
Not supported in the following options TensorFLow2.0 The attributes for dimensional transformation are.
The correct answer is C. gather. tf.gather is an indexing/slicing operation, not a dimensional transformation - it collects slices from a tensor along a specified axis based on index values, which selects data rather than restructuring dimensions. The distractors are all genuine dimensional transformation ops…
Question
Not supported in the following options TensorFLow2.0 The attributes for dimensional transformation are.
Options
- Asqueeze
- Breshape
- Cgather
- Dtranspose
How the community answered
(28 responses)- A7% (2)
- B18% (5)
- C71% (20)
- D4% (1)
Explanation
tf.gather is an indexing/slicing operation, not a dimensional transformation - it collects slices from a tensor along a specified axis based on index values, which selects data rather than restructuring dimensions.
The distractors are all genuine dimensional transformation ops: tf.reshape changes a tensor's shape while preserving element count; tf.squeeze removes size-1 dimensions (collapsing them); and tf.transpose reorders the axes of a tensor (e.g., swapping rows and columns).
Memory tip: Think "SRGT" - Squeeze, Reshape, Transpose all restructure the shape itself, while Gather just grabs elements by index. If an operation picks values rather than rearranges axes, it's not a dimensional transformer.
Topics
Community Discussion
No community discussion yet for this question.