Update ie_api.pyx (#31)
authorSergei Belousov <belbes122@yandex.ru>
Thu, 22 Nov 2018 18:01:04 +0000 (21:01 +0300)
committeropenvino-pushbot <44090433+openvino-pushbot@users.noreply.github.com>
Thu, 22 Nov 2018 18:01:04 +0000 (21:01 +0300)
Fix error: dldt/inference-engine/ie_bridges/python/inference_engine/ie_api.pyx:296:10: Signature not compatible with previous declaration

inference-engine/ie_bridges/python/inference_engine/ie_api.pyx

index ccef079..081021f 100644 (file)
@@ -293,7 +293,7 @@ cdef class IEPlugin:
         version = bytes(self.impl.version)
         return version.decode()
 
-    cpdef void add_cpu_extension(self, extension_path: str) except *:
+    cpdef void add_cpu_extension(self, str extension_path) except *:
         if self.device.find("CPU") == -1:
             raise RuntimeError("add_cpu_extension method applicable only for CPU or HETERO devices")
         cdef string extension_str = extension_path.encode()
@@ -371,4 +371,4 @@ cdef class BlobBuffer:
         return precision_to_format[name].encode()
 
     def to_numpy(self):
-        return np.asarray(self)
\ No newline at end of file
+        return np.asarray(self)