f25bc176d0365234ebb051d5069edff24ad2de4d,python/dgl/heterograph.py,DGLHeteroGraph,local_var,#DGLHeteroGraph#,3978

Before Change


        // Use same per-column initializers and default initializer.
        // If registered, a column (based on key) initializer will be used first,
        // otherwise the default initializer will be used.
        for fr1, fr2 in zip(local_node_frames, self._node_frames):
            sync_frame_initializer(fr1._frame, fr2._frame)
        for fr1, fr2 in zip(local_edge_frames, self._edge_frames):
            sync_frame_initializer(fr1._frame, fr2._frame)
        return DGLHeteroGraph(self._graph, self.ntypes, self.etypes,
                              local_node_frames,

After Change


        
        local_node_frames = [fr.clone() for fr in self._node_frames]
        local_edge_frames = [fr.clone() for fr in self._edge_frames]
        ret = copy.copy(self)
        ret._node_frames = local_node_frames
        ret._edge_frames = local_edge_frames
        return ret
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

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_var


Project Name: ilastik/ilastik
Commit Name: b5a0abb0c49cf6bf42f9c75719fab7307e60c46d
Time: 2012-07-06
Author: kai@kai-Dell-System-XPS-L502X.(none)
File Name: lazyflow/rtype.py
Class Name: SubRegion
Method Name: popAxis


Project Name: openai/baselines
Commit Name: 9b68103b737ac46bc201dfb3121cfa5df2127e53
Time: 2019-05-08
Author: peterzhokhoff@gmail.com
File Name: baselines/common/vec_env/vec_monitor.py
Class Name: VecMonitor
Method Name: step_wait


Project Name: etal/cnvkit
Commit Name: 1281963269c819f22fed98583526df8946d18b4a
Time: 2016-04-20
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: do_import_theta