The following examples use PyTorch backend. >>> import dgl >>> import torch. Copy to clipboard. When x is a 2D tensor, a single KNN graph is constructed.
確定! 回上一頁