Dynamic representations for autonomous driving