Open atrah22 opened 7 years ago
In this app, the execution time also includes the time needed to schedule the Vision request (which in turn calls Core ML), the preprocessing, the neural network, the post-processing of the results, and running the UI update on the main thread.
Thankyou for the quick response. Is it possible to measure the execution time of the "neural network" only from the 1st input layer layer to the last layer ?
Add this line:
let elapsed = CACurrentMediaTime() - startTimes.remove(at: 0)
to requestDidComplete()
to get the best possible estimate.
You can have a view of the time executed by CoreML using Instruments App
Hi,
Does the execution time includes the image pre-processing time to input to first layer + inception-v3 model execution time + post processing time?
For example, tensorflow benchmark model shows the execution time of only the CNN model execution without and pre image processing or post processing. I was looking for such execution time benchmarking.