Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f3a84a4

Browse files
committedFeb 28, 2024·
Added copying to other data cache appends
1 parent fe84cac commit f3a84a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎optimum/intel/openvino/quantization.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ def __init__(self, request, data_cache=None):
8888
self.data_cache = data_cache
8989

9090
def __call__(self, *args, **kwargs):
91-
self.data_cache.append(*args)
91+
self.data_cache.append(copy.deepcopy(args))
9292
return self.request(*args, **kwargs)
9393

9494
def infer(self, inputs: Any = None, share_inputs: bool = False):
95-
self.data_cache.append(inputs)
95+
self.data_cache.append(copy.deepcopy(inputs))
9696
return self.request.infer(inputs, share_inputs)
9797

9898
def start_async(

0 commit comments

Comments
 (0)
Please sign in to comment.