mirror of
https://github.com/koush/scrypted.git
synced 2026-05-18 03:10:31 +01:00
openvino: fix ov.Tensor.data race condition
This commit is contained in:
4
plugins/openvino/package-lock.json
generated
4
plugins/openvino/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/openvino",
|
||||
"version": "0.1.150",
|
||||
"version": "0.1.152",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/openvino",
|
||||
"version": "0.1.150",
|
||||
"version": "0.1.152",
|
||||
"devDependencies": {
|
||||
"@scrypted/sdk": "file:../../sdk"
|
||||
}
|
||||
|
||||
@@ -48,5 +48,5 @@
|
||||
"devDependencies": {
|
||||
"@scrypted/sdk": "file:../../sdk"
|
||||
},
|
||||
"version": "0.1.150"
|
||||
"version": "0.1.152"
|
||||
}
|
||||
|
||||
@@ -250,6 +250,7 @@ class OpenVINOPlugin(
|
||||
def callback(infer_request, future: asyncio.Future):
|
||||
try:
|
||||
output = infer_request.get_output_tensor(0).data
|
||||
output = np.copy(output)
|
||||
self.loop.call_soon_threadsafe(future.set_result, output)
|
||||
except Exception as e:
|
||||
self.loop.call_soon_threadsafe(future.set_exception, e)
|
||||
|
||||
Reference in New Issue
Block a user