Created
August 7, 2017 20:20
-
-
Save glhfgg1024/20a2f1a9e27c4566281b6fcf1d536b5e to your computer and use it in GitHub Desktop.
check function lists in a .so file using python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from inspect import getmembers, isfunction | |
mylib = tf.load_op_library('mylib.so') | |
functions_list = [o for o in getmembers(mylib) if isfunction(o[1])] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment