Skip to content
ml-recall

#custom-layer

1 question from PyTorch

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Single choice

mediumAI-checkedPyTorch

A custom layer computes yk=∑i,jWijk xixjy_k = \sum_{i,j} W_{ijk}\, x_i x_j for every example, with a parameter W of shape (d, d, m). For a batch X of shape (n, d), which line returns the (n, m) output?

Choose one option