Skip to content

Commit

Permalink
revert "fix empty Tensor mmap"
Browse files Browse the repository at this point in the history
  • Loading branch information
soumith committed Sep 26, 2017
1 parent fbcabfa commit 89ede3b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/TH/THAllocator.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ void THMapAllocatorContext_free(THMapAllocatorContext *ctx)

static void *_map_alloc(void* ctx_, ptrdiff_t size)
{
if (size == 0) {
return NULL;
}

THMapAllocatorContext *ctx = ctx_;
void *data = NULL;

Expand Down Expand Up @@ -336,9 +332,6 @@ static void *THMapAllocator_realloc(void* ctx, void* ptr, ptrdiff_t size) {
}

static void THMapAllocator_free(void* ctx_, void* data) {
if (data == NULL)
return;

THMapAllocatorContext *ctx = ctx_;

#ifdef _WIN32
Expand Down

0 comments on commit 89ede3b

Please sign in to comment.