mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Remove unnecessary format literals from error message.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/20646 Differential Revision: D15394795 fbshipit-source-id: 8033cf03341244b2b6a119e3c59f48ee6fe959cc
This commit is contained in:
committed by
Facebook Github Bot
parent
26dfeffacd
commit
79c5dc313c
@ -338,7 +338,7 @@ struct THCCachingAllocator
|
||||
std::lock_guard<std::recursive_mutex> lock(mutex);
|
||||
Block* block = find_allocated_block(ptr);
|
||||
if (!block) {
|
||||
AT_ERROR("invalid device pointer: %p", ptr);
|
||||
AT_ERROR("invalid device pointer: ", ptr);
|
||||
}
|
||||
while (block->prev) {
|
||||
block = block->prev;
|
||||
@ -381,7 +381,7 @@ struct THCCachingAllocator
|
||||
std::lock_guard<std::recursive_mutex> lock(mutex);
|
||||
Block* block = find_allocated_block(ptr);
|
||||
if (!block) {
|
||||
AT_ERROR("invalid device pointer: %p", ptr);
|
||||
AT_ERROR("invalid device pointer: ", ptr);
|
||||
}
|
||||
if (stream.stream() == block->stream) {
|
||||
// ignore uses on the allocation stream, since those don't require any
|
||||
|
Reference in New Issue
Block a user