"tests/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "ed616bd8a8740927770eebe017aedb6204c6105f"
Unverified Commit d2e1cfce authored by Quan (Andy) Gan's avatar Quan (Andy) Gan Committed by GitHub
Browse files

[Bug] Fix PinSAGE crashes on hypersparse graphs (#1565)

parent 901e0c24
......@@ -613,8 +613,8 @@ COOMatrix COORowWiseTopk(
COOMatrix mat, IdArray rows, int64_t k, FloatArray weight, bool ascending) {
COOMatrix ret;
ATEN_COO_SWITCH(mat, XPU, IdType, {
ATEN_FLOAT_TYPE_SWITCH(weight->dtype, FloatType, "weight", {
ret = impl::COORowWiseTopk<XPU, IdType, FloatType>(
ATEN_DTYPE_SWITCH(weight->dtype, DType, "weight", {
ret = impl::COORowWiseTopk<XPU, IdType, DType>(
mat, rows, k, weight, ascending);
});
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment