def update(self, rowids, feats):
        """Update the feature data given the index.

        Parameters
        ----------
        rowids : Tensor
            Row IDs.
        feats : Tensor
            New features.
        """
        feat_scheme = infer_scheme(feats)
        if feat_scheme != self.scheme:
            raise DGLError(
                "Cannot update column of scheme %s using feature of scheme %s."
                % (feat_scheme, self.scheme)
            )
        self.data = F.scatter_row(self.data, rowids, feats)
Update the feature data given the index.

        Parameters
        ----------
        rowids : Tensor
            Row IDs.
        feats : Tensor
            New features.
        
python/dgl/frame.py