Skip to content

Commit

Permalink
Adding missing include for device mdspan in mean_squared_error.cuh (#…
Browse files Browse the repository at this point in the history
…906)

Authors:
  - Corey J. Nolet (https://github.com/cjnolet)

Approvers:
  - Divye Gala (https://github.com/divyegala)

URL: #906
  • Loading branch information
cjnolet authored Oct 7, 2022
1 parent a345a05 commit 942df21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/include/raft/linalg/detail/mean_squared_error.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void meanSquaredError(
math_t diff = a - b;
return diff * diff * weight / len;
};
raft::linalg::mapThenSumReduce<math_t, decltype(sq_diff), TPB>(out, len, sq_diff, stream, A, B);
raft::linalg::mapThenSumReduce<math_t, decltype(sq_diff)>(out, len, sq_diff, stream, A, B);
}

}; // end namespace detail
Expand Down
3 changes: 2 additions & 1 deletion cpp/include/raft/linalg/mean_squared_error.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#pragma once

#include "detail/mean_squared_error.cuh"
#include <raft/core/device_mdspan.hpp>

namespace raft {
namespace linalg {
Expand Down Expand Up @@ -76,4 +77,4 @@ void mean_squared_error(const raft::handle_t& handle,
}; // end namespace linalg
}; // end namespace raft

#endif
#endif

0 comments on commit 942df21

Please sign in to comment.