A Hardware-oriented Approach for Efficient Active Inference Computation and Deployment