Skip to content

Commit

Permalink
Incorrect value returned.
Browse files Browse the repository at this point in the history
  • Loading branch information
clementfarabet committed Jun 5, 2014
1 parent 26a89bc commit 9ac0c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MultiMarginCriterion.cu
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ static int cunn_MultiMarginCriterion_updateOutput(lua_State *L)
static int cunn_MultiMarginCriterion_updateGradInput(lua_State *L)
{
THCudaTensor *input = (THCudaTensor*)luaT_checkudata(L, 2, "torch.CudaTensor");
THCudaTensor *gradInput = (THCudaTensor*)luaT_getfieldcheckudata(L, 1, "gradInput", "torch.CudaTensor");
int sizeaverage = luaT_getfieldcheckboolean(L, 1, "sizeAverage");
THCudaTensor *gradInput = (THCudaTensor*)luaT_getfieldcheckudata(L, 1, "gradInput", "torch.CudaTensor");

THCudaTensor_resizeAs(gradInput, input);

Expand Down

0 comments on commit 9ac0c06

Please sign in to comment.