Skip to content

Commit ba7ce76

Browse files
authored
Build break fix for NV TRT RTX EP (#25991)
### Description Fixing the build break issue for NV TRT RTX EP
1 parent 5024167 commit ba7ce76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/test/providers/nv_tensorrt_rtx/test_nv_trt_rtx_ep_util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ Ort::IoBinding generate_io_binding(
433433
}
434434
const OrtMemoryInfo* info;
435435
Ort::ThrowOnError(Ort::GetApi().AllocatorGetInfo(allocator, &info));
436-
Ort::MemoryInfo mem_info(info->name, info->alloc_type, info->device.Id(), info->mem_type);
436+
Ort::MemoryInfo mem_info(info->name.c_str(), info->alloc_type, static_cast<int>(info->device.Id()), info->mem_type);
437437

438438
for (int input_idx = 0; input_idx < int(session.GetInputCount()); ++input_idx) {
439439
auto input_name = session.GetInputNameAllocated(input_idx, Ort::AllocatorWithDefaultOptions());

0 commit comments

Comments
 (0)