Fix array access in Obj-C TFLInterpreter::resizeInputTensorAtIndex
PiperOrigin-RevId: 335955632 Change-Id: Ie7192d3cf2d926e0dcb24430b4abb6e5c4c3f960
This commit is contained in:
parent
43208d2c8c
commit
e9947ca30a
@ -201,7 +201,7 @@ static void TFLInterpreterErrorReporter(void *user_data, const char *format, va_
|
||||
return NO;
|
||||
}
|
||||
|
||||
std::vector<int> cDimensions(self.inputTensorCount);
|
||||
std::vector<int> cDimensions(shape.count);
|
||||
for (int dimIndex = 0; dimIndex < shape.count; ++dimIndex) {
|
||||
int dimension = shape[dimIndex].intValue;
|
||||
if (dimension <= 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user