BNN Training Algorithm with Ternary Gradients and BNN based on MRAM Array | IEEE Conference Publication | IEEE Xplore