nerdexam
Huawei

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…

Deep Learning Basics

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)
  • A
    7% (2)
  • B
    18% (5)
  • C
    71% (20)
  • D
    4% (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

#TensorFlow 2.0#Dimensional Transformation#Tensor Operations#Shape Manipulation

Community Discussion

No community discussion yet for this question.

Full H13-311_V3.5 Practice