"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "3c975f898f0b775de91b8aab80c0b4613ebe64bd"
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