Added deepcopy

This commit is contained in:
Ahmad Huzail Khan
2024-10-09 20:16:25 +00:00
parent 75b6384a9a
commit f1e32e7c07
@@ -77,6 +77,9 @@ class MeanAveragePrecision(Metric):
)
if self._class_agnostic:
predictions = deepcopy(predictions)
targets = deepcopy(targets)
for prediction in predictions:
prediction.class_id[:] = -1
for target in targets: