mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Remove const fromDLPack overload (#139156)
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/139156 Approved by: https://github.com/ezyang
This commit is contained in:
parent
84416618a6
commit
6ef6b3f586
|
|
@ -13,10 +13,6 @@ namespace at {
|
|||
TORCH_API ScalarType toScalarType(const DLDataType& dtype);
|
||||
TORCH_API DLManagedTensor* toDLPack(const Tensor& src);
|
||||
TORCH_API Tensor fromDLPack(DLManagedTensor* src);
|
||||
C10_DEPRECATED_MESSAGE("Please migrate to a non-const variant")
|
||||
inline Tensor fromDLPack(const DLManagedTensor* src) {
|
||||
return fromDLPack(const_cast<DLManagedTensor*>(src));
|
||||
}
|
||||
TORCH_API Tensor
|
||||
fromDLPack(DLManagedTensor* src, std::function<void(void*)> deleter);
|
||||
TORCH_API DLDataType getDLDataType(const Tensor& t);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user