Don't python bind _thnn_ functions. (#14101)
authorGregory Chanan <gchanan@fb.com>
Sat, 17 Nov 2018 00:47:00 +0000 (16:47 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 17 Nov 2018 01:18:08 +0000 (17:18 -0800)
Summary:
This is needed for moving nn functions to native functions, but since some functions are already named
this way, I'm going to stop binding pre-emptively so we can check if there are any current dependencies.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14101

Differential Revision: D13102219

Pulled By: gchanan

fbshipit-source-id: 6bbcca33a03ab1bf648f1b73cadfe84339fa3050

tools/autograd/gen_python_functions.py

index ba894ac..4b19a93 100644 (file)
@@ -24,7 +24,8 @@ SKIP_PYTHON_BINDINGS = [
     '_sparse_add.*', '_sparse_div.*', '_sparse_mul.*', '_sparse_sub.*',
     'index',
     '_indexCopy_', 'max_values', 'min_values', 'argmax', 'argmin',
-    '_cumsum.*', '_cumprod.*', '_sum.*', '_prod.*', '_th_.*',
+    '_cumsum.*', '_cumprod.*', '_sum.*', '_prod.*',
+    '_th_.*', '_thnn_.*',
     'arange.*', 'range.*', '_gesv.*', '_getri.*', '_inverse.*', '_potrs.*',
     'slice', 'randint(_out)?',
     '_local_scalar', '_local_scalar_dense',