mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Remove dead code
This commit is contained in:
@ -262,7 +262,6 @@ void* THRealloc(void *ptr, ptrdiff_t size)
|
||||
if(size < 0)
|
||||
THError("$ Torch: invalid memory size -- maybe an overflow?");
|
||||
|
||||
ptrdiff_t oldSize = -getAllocSize(ptr);
|
||||
void *newptr = realloc(ptr, size);
|
||||
|
||||
if(!newptr && torchGCFunction) {
|
||||
|
||||
Reference in New Issue
Block a user