Elastic Processing And Hardware Architectures For Machine Learning