Refactor benchmark (#148)
Browse files* use mean as default for benchmark metric; change result representation;
add --all for benchmarking all configs at a time
* fix comments
* add --model_exclude
* pretty print
* improve benchmark result table header: from band-xpu to xpu-band
* suppress print message
* update benchmark results on CPU-RPI
* add the new benchmark results on the new intel cpu
* fix backend and target setting in benchmark; pre-modify the names of int8 quantized models
* add results on jetson cpu
* add cuda results
* print target and backend when using --all
* add results on Khadas VIM3
* pretty print results
* true pretty print results
* update results in new format
* fix broken backend and target vars
* fix broken backend and target vars
* fix broken backend and target var
* update benchmark results on many devices
* add db results on Ascend-310
* update info on CPU-INTEL
* update usage of the new benchmark script
37 unmodified lines383940414243444537 unmodified linesreturn self.__class__.__name__def setBackendAndTarget(self, backendId, targetId):self._backendId = backendIdself._targetId = targetIdself.net.setPreferableBackend(self.backend_id)self.net.setPreferableTarget(self.target_id)37 unmodified lines383940414243444537 unmodified linesreturn self.__class__.__name__def setBackendAndTarget(self, backendId, targetId):self.backend_id = backendIdself.target_id = targetIdself.net.setPreferableBackend(self.backend_id)self.net.setPreferableTarget(self.target_id)