Rd\mathbb{R}^{d}

ℝ^d — all vectors of length d

Read "R d" or "R to the d". It is the set of all lists of d real numbers, so "x ∈ ℝ^d" says x is a vector of d numbers.

The raised dd is the length of the list, not a power. R768\mathbb{R}^{768} is every possible vector of 768 numbers. Writing x∈R768\mathbf{x} \in \mathbb{R}^{768} tells you the shape of x\mathbf{x} (768 numbers) and nothing about what those numbers are.

When the raised part has two sizes joined by ×\times, it describes a matrix: Rm×n\mathbb{R}^{m \times n} is every table with mm rows and nn columns. The course states every tensor shape this way.

Example

x∈R4  ⟹  x=[0.2, −1.7, 3.0, 0.5]\mathbf{x} \in \mathbb{R}^{4} \;\Longrightarrow\; \mathbf{x} = [0.2,\, -1.7,\, 3.0,\, 0.5]

Four slots, each holding any real number. In PyTorch this is a tensor of shape (4,).

Where the course uses it

Related terms