2024-05-28 19:55:29 发布
网友
我正在阅读tensorflow.python.ops包的gen_nn_ops.py中的LeakyRelu的源代码。其中的函数用八个参数调用_pywrap_tensorflow.TFE_Py_FastPathExecute。你知道吗
tensorflow.python.ops
gen_nn_ops.py
_pywrap_tensorflow.TFE_Py_FastPathExecute
但是,TFE_Py_FastPathExecute成员在pywrap_tensorflow.py中不存在。它是从哪里来的?你知道吗
TFE_Py_FastPathExecute
pywrap_tensorflow.py
在pywrap_tfe.i行286-290中读:
// Since we wanted to have a function with a variable length of arguments, we // used the native Python/C interface directly (which by default supports // passing all arguments as a tuple). %native(TFE_Py_FastPathExecute) TFE_Py_FastPathExecute_C;
这很可能引用了pywrap_tfe_src.cc,我们在第1832-2132行中找到了TFE\u Py\u fastpatheexecute\u C,从 PyObject* TFE_Py_FastPathExecute_C(PyObject*, PyObject* args)。你知道吗
PyObject* TFE_Py_FastPathExecute_C(PyObject*, PyObject* args)
在pywrap_tfe.i行286-290中读:
这很可能引用了pywrap_tfe_src.cc,我们在第1832-2132行中找到了TFE\u Py\u fastpatheexecute\u C,从
PyObject* TFE_Py_FastPathExecute_C(PyObject*, PyObject* args)
。你知道吗相关问题 更多 >
编程相关推荐