Skip to content

AI & ML · Machine Learning Math

Tensor operations

140 problems in this skill, each with a solver-verified answer key. Answers are checked the moment you submit — with a hint if you want one and a worked solution afterwards.

What the problems look like

A few statements from this skill. Answers, hints and worked solutions live in the practice session.

  1. Warm-up

    A tensor of shape (5,1)(5, 1) is added to a tensor of shape (1,4)(1, 4). Broadcasting expands both operands to a common shape. How many elements does the resulting tensor contain?

  2. Warm-up

    A tensor of shape (7,1)(7, 1) is added to a tensor of shape (1,9)(1, 9). Broadcasting expands both operands to a common shape. How many elements does the resulting tensor contain?

  3. Warm-up

    A tensor of shape (3,1)(3, 1) is added to a tensor of shape (1,2)(1, 2). Broadcasting expands both operands to a common shape. How many elements does the resulting tensor contain?

Problems shown under their original terms: Generated (template, solver-computed).

Practice this free, right now

Unlimited math practice is on the free plan — no card, no trial clock.

See every Machine Learning Math skill for ai & ml