78ba1c8cfcd2c31f1e1b007d2e20e771049e869b,tensorboardX/graph.py,,graph,#Any#Any#,35
Before Change
def graph(model, lastVar):
global id2name
global list_of_nodes
id2name = {id(m): n.replace(".", "/") + "(parameters)" for n, m in model.named_parameters()}
nodes = []
list_of_nodes = []
make_list_of_nodes(lastVar.grad_fn)
After Change
trace, _ = torch.jit.trace(model, args)
torch.onnx._optimize_trace(trace, False)
graph = trace.graph()
print(graph)
list_of_nodes = parse(graph)
nodes = []
for node in list_of_nodes:
nodes.append(
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: lanpa/tensorboardX
Commit Name: 78ba1c8cfcd2c31f1e1b007d2e20e771049e869b
Time: 2018-01-04
Author: huang.dexter@gmail.com
File Name: tensorboardX/graph.py
Class Name:
Method Name: graph
Project Name: analysiscenter/batchflow
Commit Name: 60cab922e7bf25c903a357f2a9a4b19091090637
Time: 2019-10-01
Author: a.kozhevin@analysiscenter.org
File Name: batchflow/research/job.py
Class Name: Job
Method Name: init
Project Name: deepfakes/faceswap
Commit Name: 30e8a72933ece4470bcd112c6e1e6a3162fe0595
Time: 2018-09-02
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/alignments.py
Class Name: Reformat
Method Name: load_dfl
Project Name: aws/sagemaker-python-sdk
Commit Name: 3d091b43f5c817709299d6cdfb95d4b72b356ca4
Time: 2018-11-02
Author: nacho950@gmail.com
File Name: src/sagemaker/local/image.py
Class Name: _SageMakerContainer
Method Name: write_config_files