Edge intelligence through in-sensor and near-sensor computing for the artificial intelligence of things | Synapse