Resilience assessment of machine learning applications under hardware faults