Learning in Log-Domain: Subthreshold Analog AI Accelerator Based on Stochastic Gradient Descent