mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
fixed for openvino einsum
This commit is contained in:
parent
6feb765ebb
commit
1f874028fb
@ -498,7 +498,7 @@ public:
|
||||
} else {
|
||||
// Check if there is a pre-processed version of this input
|
||||
// If so assign it to result
|
||||
if (!preProcessedInputs[0].empty())
|
||||
if (!preProcessedInputs.empty() && !preProcessedInputs[0].empty())
|
||||
{
|
||||
result = preProcessedInputs[0];
|
||||
}
|
||||
@ -541,7 +541,7 @@ public:
|
||||
// Use either the preprocessed inputs (if it is available) or the corresponding raw inputs
|
||||
result = pairwiseOperandProcess(!result.empty() ? result : rawInputs[0],
|
||||
!result.empty() ? tmpResult : homogenizedInputDims[0],
|
||||
!preProcessedInputs[input].empty() ? preProcessedInputs[input] : rawInputs[input],
|
||||
(!preProcessedInputs.empty() && !preProcessedInputs[input].empty()) ? preProcessedInputs[input] : rawInputs[input],
|
||||
homogenizedInputDims[input],
|
||||
reducedDims,
|
||||
isFinalPair);
|
||||
|
Loading…
Reference in New Issue
Block a user