提交

[DistGB] revert toindex() but refine tests (#7197)

这个提交包含在:
Rhett Ying
2024-03-06 09:56:40 +08:00
提交者 GitHub
父节点 97b66318e5
当前提交 a6505e86a4
修改 7 个文件,包含 59 行新增75 行删除
+6 -1
查看文件
@@ -57,7 +57,12 @@ def check_binary_op(key1, key2, key3, op):
dist_g.edata[key3][i:i_end],
op(dist_g.edata[key1][i:i_end], dist_g.edata[key2][i:i_end]),
)
_ = dist_g.edata[key3][F.tensor([100, 20, 10], F.int32)]
# Test with different index dtypes. int32 is not supported.
with pytest.raises(
dgl.utils.internal.InconsistentDtypeException,
match="DGL now requires the input tensor to have",
):
_ = dist_g.edata[key3][F.tensor([100, 20, 10], F.int32)]
_ = dist_g.edata[key3][F.tensor([100, 20, 10], F.int64)]