Text this: Opt-CoInfer: Optimal collaborative inference across IoT and cloud for fast and accurate CNN inference