f25bc176d0365234ebb051d5069edff24ad2de4d,python/dgl/heterograph.py,DGLHeteroGraph,local_scope,#DGLHeteroGraph#,4050

Before Change


        // otherwise the default initializer will be used.
        for fr1, fr2 in zip(self._node_frames, old_nframes):
            sync_frame_initializer(fr1._frame, fr2._frame)
        for fr1, fr2 in zip(self._edge_frames, old_eframes):
            sync_frame_initializer(fr1._frame, fr2._frame)
        yield
        self._node_frames = old_nframes
        self._edge_frames = old_eframes

After Change


        
        old_nframes = self._node_frames
        old_eframes = self._edge_frames
        self._node_frames = [fr.clone() for fr in self._node_frames]
        self._edge_frames = [fr.clone() for fr in self._edge_frames]
        yield
        self._node_frames = old_nframes
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: dmlc/dgl
Commit Name: f25bc176d0365234ebb051d5069edff24ad2de4d
Time: 2020-05-01
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/heterograph.py
Class Name: DGLHeteroGraph
Method Name: local_scope


Project Name: dmlc/dgl
Commit Name: f25bc176d0365234ebb051d5069edff24ad2de4d
Time: 2020-05-01
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/heterograph.py
Class Name: DGLHeteroGraph
Method Name: local_var


Project Name: pytorch/fairseq
Commit Name: 8ce2c35d8e2dfb2b6dd220058710f81df5eb5729
Time: 2019-05-24
Author: yqw@fb.com
File Name: scripts/average_checkpoints.py
Class Name:
Method Name: average_checkpoints


Project Name: open-mmlab/mmdetection
Commit Name: cd0d37ccb398b7e80dd7af06925246e133d8178c
Time: 2019-12-18
Author: yhcao6@gmail.com
File Name: mmdet/apis/train.py
Class Name:
Method Name: parse_losses