Skip to content

Commit

Permalink
Remove cuda output allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
demoulinv authored and cbentejac committed Dec 2, 2024
1 parent 5a04e13 commit c1cbeb6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/aliceVision/segmentation/segmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ bool Segmentation::initialize()

_output.resize(_parameters.classes.size() * _parameters.modelHeight * _parameters.modelWidth);
_cudaInput = cudaAllocator.Alloc(_output.size() * sizeof(float));
_cudaOutput = cudaAllocator.Alloc(_output.size() * sizeof(float));
#endif
}
else
Expand All @@ -94,7 +93,6 @@ bool Segmentation::terminate()
Ort::MemoryInfo mem_info_cuda("Cuda", OrtAllocatorType::OrtArenaAllocator, 0, OrtMemType::OrtMemTypeDefault);
Ort::Allocator cudaAllocator(*_ortSession, mem_info_cuda);
cudaAllocator.Free(_cudaInput);
cudaAllocator.Free(_cudaOutput);
#endif

return true;
Expand Down

0 comments on commit c1cbeb6

Please sign in to comment.