mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-29 23:06:41 +00:00
Fix a memory leak in test_inference.cc (#6201)
* Fix a memory leak in test_inference.cc
This commit is contained in:
parent
7347996942
commit
1fc7f92f25
1 changed files with 1 additions and 0 deletions
|
|
@ -331,6 +331,7 @@ struct SliceCustomOpKernel {
|
|||
const OrtValue* input_to = ort_.KernelContext_GetInput(context, 2);
|
||||
OrtTensorTypeAndShapeInfo* input_X_info = ort_.GetTensorTypeAndShape(input_X);
|
||||
ONNXTensorElementDataType input_X_type = ort_.GetTensorElementType(input_X_info);
|
||||
ort_.ReleaseTensorTypeAndShapeInfo(input_X_info);
|
||||
#if USE_CUDA
|
||||
int64_t slice_from = 0;
|
||||
int64_t slice_to = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue