Skip to content

Commit 8c8adcc

Browse files
committed
rICHARD explained that TORCH_LIBRARY calls are called because theyre static initializers
1 parent 3169840 commit 8c8adcc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extension_cpp/csrc/muladd.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77

88
extern "C" {
99
/* Creates a dummy empty _C module that can be imported from Python.
10-
The import from Python will load the .so associated with this extension
11-
built from this file, so that all the TORCH_LIBRARY calls below are run.*/
10+
The import from Python will load the .so consisting of this file
11+
in this extension, so that the TORCH_LIBRARY static initializers
12+
below are run. */
1213
PyObject* PyInit__C(void)
1314
{
1415
static struct PyModuleDef module_def = {

0 commit comments

Comments
 (0)