8000 fix use of deprecation message · pytorch/pytorch@765a9fd · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 765a9fd

Browse files
committed
fix use of deprecation message
1 parent 30f7047 commit 765a9fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c10/core/Allocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class C10_API DataPtr {
117117
// We used to need this for the implementation of the hack detailed
118118
// in Note [Masquerading as CUDA], but that hack has been removed.
119119
C10_DEPRECATED_MESSAGE(
120-
"unsafe_set_device is deprecated. You should never need to call this function.");
120+
"unsafe_set_device is deprecated. You should never need to call this function.")
121121
void unsafe_set_device(Device device) {
122122
device_ = device;
123123
}

0 commit comments

Comments
 (0)
0