Versatile GeS-based CBRAM with compliance-current-controlled threshold and bipolar resistive switching for electronic synapses