Fixed deprecation issues and made compatible with newest pytorch and CUDA versions#125
Open
AmetistDrake wants to merge 11 commits into
Open
Fixed deprecation issues and made compatible with newest pytorch and CUDA versions#125AmetistDrake wants to merge 11 commits into
AmetistDrake wants to merge 11 commits into
Conversation
added 11 commits
November 14, 2024 20:42
Replaced deprecated THC library functions with Aten equivalents to improve compatibility with recent PyTorch versions: Added: <ATen/cuda/ThrustAllocator.h> <ATen/ceil_div.h> <ATen/cuda/Atomic.cuh> Removed: <THC/THC.h> <THC/THCDeviceUtils.cuh> <THC/THCAtomics.cuh> Replaced: THCCeilDiv → at::ceil_div THCudaCheck → AT_CUDA_CHECK THCudaFree(state, ptr) → c10::cuda::CUDACachingAllocator::raw_delete(ptr) THCudaMalloc(state, size) → c10::cuda::CUDACachingAllocator::raw_alloc(size) AT_CHECK → TORCH_CHECK This refactor enhances maintainability and aligns with the latest PyTorch API.
…d fallback option imports
…e wrapped the parameters with int()
…ed in binary mode; removed bufsize param
…ows when the tensor is a view created by a function that returns multiple views; added self.bbox = self.bbox.clone()
…o, test input was inappropriate for RDNFeatureExtractor and MEGAFeatureExtractor, therefore exluded them from testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes:
This pull request includes several bug fixes, documentation update, and a refactor to improve compatibility with recent versions of PyTorch. The key changes are as follows:
Refactor:
Bug Fixes:
Impact:
Please let me know if there are any questions or further changes needed.