Accelerator-friendly neural-network training: Learning variations and defects in RRAM crossbar | IEEE Conference Publication | IEEE Xplore