Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove
.pin_memory()
in obj_pos
of SAM2Base
to resolve and erro…
…r in MPS (facebookresearch#495) In this PR, we remove `.pin_memory()` in `obj_pos` of `SAM2Base` to resolve and error in MPS. Investigations show that `.pin_memory()` causes an error of `Attempted to set the storage of a tensor on device "cpu" to a storage on different device "mps:0"`, as originally reported in facebookresearch#487. (close facebookresearch#487)
- Loading branch information