Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0955ef commit 456e260Copy full SHA for 456e260
1 file changed
advanced_source/c_extension.rst
@@ -27,7 +27,7 @@ ffi utils will make sure a compiler can find them during the build.
27
if (!THFloatTensor_isSameSizeAs(input1, input2))
28
return 0;
29
THFloatTensor_resizeAs(output, input1);
30
- THFloatTensor_add(output, input1, input2);
+ THFloatTensor_cadd(output, input1, 1.0, input2);
31
return 1;
32
}
33
0 commit comments