Coded computing for on-device cooperative inference