Skip to content

Commit

Permalink
Update Tensorflex.c
Browse files Browse the repository at this point in the history
  • Loading branch information
anshuman23 authored Jul 3, 2018
1 parent 4f49d07 commit abee32d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_src/Tensorflex.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ static ERL_NIF_TERM load_image_as_tensor(ErlNifEnv *env, int argc, const ERL_NIF
jpeg_destroy_decompress(&cinfo);
free(input_img);

const int size_alloc = output_size * sizeof(float);
const int size_alloc = output_size * sizeof(unsigned char);
int64_t dims[3] = {width, height, num_pixels};

tensor = TF_NewTensor(TF_UINT8, dims, 3, output, size_alloc, tensor_deallocator, 0);
Expand Down

0 comments on commit abee32d

Please sign in to comment.