c06 · E1

Practise: The Real Machine

c06.E1.1E1 · numeric

A 32-bit float carries the bits 0 10000001 01000000000000000000000. The first bit is the sign, the next eight bits are the exponent field, and the last twenty-three bits are the fraction. Decode the word and give its value as a decimal.

c06.E1.2E1 · expression

The 32-bit format keeps twenty-three fraction bits plus the hidden bit, so its significand carries twenty-four binary digits. Convert that count into decimal digits with . Give to two decimal places and say how many leading decimal digits of a number near one the format keeps.

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

c06.E1.3E1 · numeric

An instrument reports 3.141593 and 3.141592, and a program subtracts the second from the first. Treat both numbers as 32-bit floats produced by earlier arithmetic. Give the cancellation ratio, the larger operand divided by the difference, to three significant figures.

c06.E1.4E1 · expression

In the 32-bit format the spacing at is 4. A program computes . Give the value the machine returns and the relative error of that value against the true difference 3, as a percentage.

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

c06.E1.5E1 · expression

A classifier produces the logits , and . Give the three softmax probabilities.

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

c06.E1.6E1 · expression

A dense layer takes 512 inputs, produces 2048 outputs, and runs on a batch of 256 examples. Every number is stored in two bytes. Count operations and bytes, where is the batch, the outputs and the inputs. Give the arithmetic intensity to two decimal places and say whether the layer is compute-bound or memory-bound against the main-memory ridge of 139 operations per byte.

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

c06.E1.7E1 · numeric

An accelerator delivers 600 billion bytes a second, and each request waits 400 billionths of a second. Each request carries 32 bytes. Give the number of requests that must be in flight to sustain the full rate.

c06.E1.8E1 · numeric

A gradient is . The 16-bit format's smallest normal number is , and its smallest subnormal is . Give the smallest power-of-two loss scale that lifts the gradient into the normal range.

Other tiers

E2 Derive · E3 Open

Every hint opened, solution viewed and answer checked is recorded in this browser only. See Progress to export or delete it.