A linear compensation method for inference accuracy improvement of memristive in-memory computing | Synapse