The 49ers signed fourth-round pick Marcus Lattimore to a four-year deal.