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:
Edward Yang
2019-05-17 10:36:15 -07:00
committed by Facebook Github Bot
parent 26dfeffacd
commit 79c5dc313c

View File

@ -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