Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Missing includes and explicitly declaring Tensor in aten namespace. #3638

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#pragma once

#include "kv_tensor_wrapper.h"
#include "ssd_table_batched_embeddings.h"

namespace ssd {

Expand Down Expand Up @@ -58,30 +59,34 @@ class EmbeddingRocksDBWrapper : public torch::jit::CustomClassHolder {
enable_async_update)) {}

void set_cuda(
Tensor indices,
Tensor weights,
Tensor count,
at::Tensor indices,
at::Tensor weights,
at::Tensor count,
int64_t timestep,
bool is_bwd) {
return impl_->set_cuda(indices, weights, count, timestep, is_bwd);
}

void get_cuda(Tensor indices, Tensor weights, Tensor count) {
void get_cuda(at::Tensor indices, at::Tensor weights, at::Tensor count) {
return impl_->get_cuda(indices, weights, count);
}

void set(Tensor indices, Tensor weights, Tensor count) {
void set(at::Tensor indices, at::Tensor weights, at::Tensor count) {
return impl_->set(indices, weights, count);
}

void set_range_to_storage(
const Tensor& weights,
const at::Tensor& weights,
const int64_t start,
const int64_t length) {
return impl_->set_range_to_storage(weights, start, length);
}

void get(Tensor indices, Tensor weights, Tensor count, int64_t sleep_ms) {
void get(
at::Tensor indices,
at::Tensor weights,
at::Tensor count,
int64_t sleep_ms) {
return impl_->get(indices, weights, count, sleep_ms);
}

Expand Down
Loading