Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
1 year ago | |
---|---|---|
CodeExtractor | 1 year ago | |
Crawler | 1 year ago | |
repos | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago |
This is an analysis about the evolution of DL model based on the community data of Github. The application scenario of all models is the analysis of synthetic aperture images.
我们想要在执行训练的py文件内,提取出预训练模型。即找到创建的预训练模型的变量,并保存
如果是在类定义的函数内容里:
向上抽取变量语句,直到所有的非类变量都被抽完(类变量一直保存),记录函数名称
在类定义的函数中查找调用,通过上一个函数中保存的类变量里继续抽取函数,直到所有的非类变量被抽完
如果有语句改变self本身,也需要加以判断
最终,在其他地方查找所有调用这些类函数的情况
如果是在函数的定义里:
找参数保存语句,查找向上查找变量调用
在其他地方查找所有调用这些函数的地方的
如果是在函数执行里:
向上查找变量保存语句
判断情况:处于类的函数定义里,处于类外函数定义里,处于代码执行处
生成调用图,从代码执行处出发查找所有被调用的函数,如果函数中含有torch.optim.xxx,则记录该子图
This is an analysis about the evolution of DL model based on the community data of Github. The application scenario of all models is the analysis of synthetic aperture images.
CSV Python Text SVG
MIT