Nested Gradient Codes for Straggler Mitigation in Distributed Machine Learning