Skip to content

Commit

Permalink
remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangxinglei committed Oct 24, 2024
1 parent 7fd2871 commit 3f4a2ee
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/main/py_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,10 @@ PYBIND11_MODULE(_pywrap_tn, m) {

return py::reinterpret_steal<py::object>(obj);
})
.def("create_sparse_table", [](py::object obj, std::string name, int dimension, bool use_cvm) {
.def("create_sparse_table", [](py::object obj, std::string name, int dimension) {
OptimizerBase* opt =
static_cast<OptimizerBase*>(PyCapsule_GetPointer(obj.ptr(), nullptr));

opt->SetUseCvm(use_cvm);

std::cout << "Cvm plugin is: " << opt->ShouldUseCvm() << std::endl;

PsCluster* cluster = PsCluster::Instance();

SparseTable* table = CreateSparseTable(opt, name, dimension, cluster->RankNum(), cluster->Rank());
Expand Down

0 comments on commit 3f4a2ee

Please sign in to comment.