使用包inspect

1 import inspect
2 from mxnet import contrib

 查看模块所在路径:

1 inspect.getsourcefile(contrib)

查看源码:

1 inspect.getsourcelines(contrib)

 

参考:https://zhuanlan.zhihu.com/p/37095163

相关文章:

  • 2021-09-01
  • 2022-01-04
  • 2021-06-28
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-12-02
  • 2021-12-02
猜你喜欢
  • 2021-12-02
  • 2021-12-02
  • 2021-11-19
  • 2021-08-27
  • 2021-12-19
  • 2021-07-20
相关资源
相似解决方案