Skip to content

Commit

Permalink
fix tsne
Browse files Browse the repository at this point in the history
  • Loading branch information
benfred committed Sep 27, 2024
1 parent 6c46624 commit 5380c17
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cpp/src/tsne/distances.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ void get_distances(const raft::handle_t& handle,
{
// TODO: for TSNE transform first fit some points then transform with 1/(1+d^2)
// #861
auto k = k_graph.n_neighbors;
auto X_view = raft::make_device_matrix_view<const float, int64_t>(input.X, input.n, input.d);
auto idx = cuvs::neighbors::brute_force::build(
auto k = k_graph.n_neighbors;
auto X_view =
raft::make_device_matrix_view<const float, int64_t, raft::col_major>(input.X, input.n, input.d);
auto idx = cuvs::neighbors::brute_force::build(
handle, X_view, static_cast<cuvs::distance::DistanceType>(metric), p);

cuvs::neighbors::brute_force::search(
Expand Down

0 comments on commit 5380c17

Please sign in to comment.