Design and Analysis of Novel Bit-flip Attacks and Defense Strategies for DNNs