Early-exit neural networks in low-cost reconfigurable devices