A computing-in-memory macro based on three-dimensional resistive random-access memory | Synapse