Machine Learning for Constitutive Modeling on a Graphics Processing Unit