Physical systems perform machine-learning computations