1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

dnn: plugin support for OpenVINO

This commit is contained in:
Alexander Alekhin
2022-03-18 06:19:30 +00:00
parent ca7f964104
commit 43b2bb2c25
27 changed files with 1035 additions and 132 deletions
+3 -3
View File
@@ -113,10 +113,10 @@ class dnn_test(NewOpenCVTests):
proto = self.find_dnn_file('dnn/layers/layer_convolution.prototxt')
model = self.find_dnn_file('dnn/layers/layer_convolution.caffemodel')
net = cv.dnn.readNet(proto, model)
net.setPreferableBackend(backend)
net.setPreferableTarget(target)
inp = np.random.standard_normal([1, 2, 10, 11]).astype(np.float32)
try:
net.setPreferableBackend(backend)
net.setPreferableTarget(target)
inp = np.random.standard_normal([1, 2, 10, 11]).astype(np.float32)
net.setInput(inp)
net.forward()
except BaseException as e: