Upload dnmetis testtool for NPU inference
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user