Skip to content

Commit 1b15a03

Browse files
authored
Update wrapper.cpp
更改为绑定静态函数
1 parent e837b8f commit 1b15a03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ PYBIND11_MODULE(seal, m)
117117

118118
// modulus.h
119119
py::class_<PlainModulus>(m, "PlainModulus")
120-
.def("Batching", [](std::size_t poly_modulus_degree, int bit_size) { return PlainModulus::Batching(poly_modulus_degree, bit_size); })
121-
.def("Batching", [](std::size_t poly_modulus_degree, std::vector<int> bit_sizes) { return PlainModulus::Batching(poly_modulus_degree, bit_sizes); });
120+
.def_static("Batching", [](std::size_t poly_modulus_degree, int bit_size) { return PlainModulus::Batching(poly_modulus_degree, bit_size); })
121+
.def_static("Batching", [](std::size_t poly_modulus_degree, std::vector<int> bit_sizes) { return PlainModulus::Batching(poly_modulus_degree, bit_sizes); });
122122

123123
// plaintext.h
124124
py::class_<Plaintext>(m, "Plaintext")

0 commit comments

Comments
 (0)