LESSON 16.23 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Vector environments: sync vs async
Watch copies of one env step as a batch, in one process or in many.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 16.23 · VECTOR ENV4 ENVS · FIRST BATCH 4 ROWS
01
Stage 1 of 5 · One batch
A vector environment holds 4 copies of the walk. One step call takes 4 actions and returns 4 observations.
Explain it simply
Each row on the left is one copy of the same small walk, and each copy has its own seed. The policy hands over a batch of actions, one for each copy. The batch below holds what comes back: one observation, one reward and one done flag for each copy.
4 env rows. First batch env ids: 0, 1, 2, 3. Actions: 1, 1, 0, 1. Observations: 3, 1, 1, 3.
env steppipe messageidle waitbatch back
Toy: 2 to 8 copies of a 5-cell walk; times from a cost model
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
One call maps a batch of actions to a batch of results.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.