2016-04-22 4 views

risposta

9

Viene generato automaticamente dalle regole tf_gen_op_wrapper_*here.

Inoltre è possibile utilizzare ?? nel notebook IPython da trovare

example of screenshot of genmathops

1

Questo file viene generato macchina.

È possibile trovare il file generato in .../site-packages/tensorflow/python/OPS/gen_math_ops.py

Per esempio, in Mac, si può trovare in/Library/Frameworks/Python. quadro/Versions/2.7/lib/python2.7/site-packages/tensorflow/python/OPS/gen_math_ops.py.

4

Yaroslav ha la risposta giusta, ma il collegamento ha fornito è ormai rotto. Ecco uno correct link to tensorflow.bzl.

Nel mio caso, ero interessato al funzionamento interno di gen_array_ops._concat. Si scopre che gen * .py sono wrapper generati automaticamente per i kernel C++ individuati here. In genere, è possibile indovinare il nome op del kernel, ad esempio here quello che mi interessava.