// 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