Skip to content

Commit 6fd05ef

Browse files
committed
remove unused code
1 parent bd3899d commit 6fd05ef

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

plugin_execution_providers/tensorrt/cuda_allocator.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ void CUDAAllocator::CheckDevice(bool throw_when_fail) const {
2020
} else if (throw_when_fail) {
2121
CUDA_RETURN_IF_ERROR(cuda_err);
2222
}
23-
#else
24-
// ORT_UNUSED_PARAMETER(throw_when_fail);
2523
#endif
2624
}
2725

@@ -45,7 +43,6 @@ void* CUDAAllocator::Alloc(size_t size) {
4543
CheckDevice(true);
4644
void* p = nullptr;
4745
if (size > 0) {
48-
// BFCArena was updated recently to handle the exception and adjust the request size
4946
CUDA_RETURN_IF_ERROR(cudaMalloc((void**)&p, size));
5047
}
5148
return p;

0 commit comments

Comments
 (0)