Skip to content

Commit

Permalink
fixed sparse tensor print format (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
aartbik authored Mar 12, 2025
1 parent 6d38754 commit 650050d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/matx/core/print.h
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ namespace matx {
fprintf(fp, "format = ");
Format::print();
const auto kind = GetPointerKind(op.Data());
fprintf(fp, ")\nspace = %s\n", SpaceString(kind).c_str());
fprintf(fp, "space = %s\n", SpaceString(kind).c_str());
const auto nse = op.Nse();
fprintf(fp, "nse = %" MATX_INDEX_T_FMT "\n", nse);
if (HostPrintable(kind)) {
Expand All @@ -592,6 +592,7 @@ namespace matx {
for (index_t i = 0; i < nse; i++) {
PrintVal(fp, op.Data()[i]);
}
fprintf(fp, ")\n");
}
}
else if constexpr (is_tensor_view_v<Op>) {
Expand Down

0 comments on commit 650050d

Please sign in to comment.