Embedding AI intelligence directly into hardware