Static and dynamic autopsy of deep networks