Skip to content

Commit

Permalink
plus some more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
askhade committed Oct 4, 2023
1 parent 8894077 commit 28c555d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion orttraining/orttraining/python/orttraining_pybind_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ std::unordered_map<std::string, std::unordered_map<std::string, py::object>> Con
return py_tensor_state;
}

void addObjectMethodsForTraining(py::module& m, ExecutionProviderRegistrationFn ep_registration_fn) {
void addObjectMethodsForTraining(py::module& m) {
py::class_<OrtValueCache, OrtValueCachePtr>(m, "OrtValueCache")
.def(py::init<>())
.def("insert", [](const OrtValueCachePtr& cache_ptr, std::string node_arg_name, OrtValue& value) {
Expand Down
4 changes: 2 additions & 2 deletions orttraining/orttraining/python/orttraining_python_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const ROCMExecutionProviderInfo GetRocmExecutionProviderInfo(ProviderInfo_ROCM*

void addGlobalMethods(py::module& m);
void addObjectMethods(py::module& m, ExecutionProviderRegistrationFn ep_registration_fn);
void addObjectMethodsForTraining(py::module& m, ExecutionProviderRegistrationFn ep_registration_fn);
void addObjectMethodsForTraining(py::module& m);
void addObjectMethodsForEager(py::module& m);
#ifdef ENABLE_LAZY_TENSOR
void addObjectMethodsForLazyTensor(py::module& m);
Expand Down Expand Up @@ -339,7 +339,7 @@ PYBIND11_MODULE(onnxruntime_pybind11_state, m) {
}
#endif

addObjectMethodsForTraining(m, ORTTrainingRegisterExecutionProviders);
addObjectMethodsForTraining(m);

#ifdef ENABLE_LAZY_TENSOR
addObjectMethodsForLazyTensor(m);
Expand Down

0 comments on commit 28c555d

Please sign in to comment.