Return a clone of this frame. The clone frame does not share the underlying storage with this frame, i.e., adding or removing columns will not be visible to each other. However, they still share the tensor contents so any mutable operation on the column tensor are vi
(self)
| 879 | return self._columns.values() |
| 880 | |
| 881 | def clone(self): |
| 882 | """Return a clone of this frame. |
| 883 | |
| 884 | The clone frame does not share the underlying storage with this frame, |
| 885 | i.e., adding or removing columns will not be visible to each other. However, |
| 886 | they still share the tensor contents so any mutable operation on the column |
| 887 | tensor are visible to each other. Hence, the function does not allocate extra |
| 888 | tensor memory. Use :func:`~dgl.Frame.deepclone` for cloning |
| 889 | a frame that does not share any data. |
| 890 | |
| 891 | Returns |
| 892 | ------- |
| 893 | Frame |
| 894 | A cloned frame. |
| 895 | """ |
| 896 | newframe = Frame(self._columns, self._num_rows) |
| 897 | newframe._initializers = self._initializers |
| 898 | newframe._default_initializer = self._default_initializer |
| 899 | return newframe |
| 900 | |
| 901 | def deepclone(self): |
| 902 | """Return a deep clone of this frame. |