diff --git a/docs/mnist_example/README.md b/docs/mnist_example/README.md index 03c7c9194d..bb6b25d9a9 100644 --- a/docs/mnist_example/README.md +++ b/docs/mnist_example/README.md @@ -205,7 +205,7 @@ int main() { // When the parameter, owning is set to "true", the OMTensor will free the data // pointer (img_data) upon destruction. If owning is set to false, the data pointer will // not be freed upon destruction. - OMTensor *tensor = omTensorCreateWithOwnership(img_data, shape, rank, ONNX_TYPE_FLOAT, /*owning=*/true); + OMTensor *tensor = omTensorCreateWithOwnership(img_data, shape, rank, ONNX_TYPE_FLOAT, /*owning=*/false); // Create a tensor list using omTensorListCreate (returns a pointer to the OMTensorList). inputTensors[0] = tensor;