Upload dnmetis testtool for NPU inference

This commit is contained in:
alexcheng88
2020-10-23 16:46:10 +08:00
committed by Gitee
parent 183c666c19
commit 40ff8b15a6
16 changed files with 102 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
"""
abstract backend class
"""
# pylint: disable=unused-argument,missing-docstring
class Backend():
def __init__(self):
self.inputs = []
self.outputs = []
def version(self):
raise NotImplementedError("Backend:version")
def name(self):
raise NotImplementedError("Backend:name")
def load(self, args):
raise NotImplementedError("Backend:load")
def predict(self, feed):
raise NotImplementedError("Backend:predict")
def get_predict_time(self):
return 0