Skip to content

Commit 7737b22

Browse files
author
DvirDukhan
committed
fixed onnx
1 parent 38ba650 commit 7737b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backends/onnxruntime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ RAI_Tensor *RAI_TensorCreateFromOrtValue(OrtValue *v, size_t batch_offset, long
172172

173173
ret = RAI_TensorNew();
174174

175-
DLDevice device = (DLContext){.device_type = kDLCPU, .device_id = 0};
175+
DLDevice device = (DLDevice){.device_type = kDLCPU, .device_id = 0};
176176

177177
OrtTensorTypeAndShapeInfo *info;
178178
status = ort->GetTensorTypeAndShape(v, &info);

0 commit comments

Comments
 (0)