Skip to content

Instantly share code, notes, and snippets.

@glhfgg1024
Created August 7, 2017 20:20
Show Gist options
  • Save glhfgg1024/20a2f1a9e27c4566281b6fcf1d536b5e to your computer and use it in GitHub Desktop.
Save glhfgg1024/20a2f1a9e27c4566281b6fcf1d536b5e to your computer and use it in GitHub Desktop.
check function lists in a .so file using python
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