Conference paperA Flexible and Fast PyTorch Toolkit for Simulating Training and Inference on Analog Crossbar Arrays