Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 01fb289

Browse files
committed
Receive instance and use it
1 parent 3874740 commit 01fb289

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensor_comprehensions/pybinds/pybind_options.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ PYBIND11_MODULE(mapping_options, m) {
9090
"Require TC to try and execute different TC expressions interleaved (Max), separately (Min)\nor interleaved as long as sufficient parallelism is exploited (Preserve3Coincident) by\nperforming loop fusion and fission. Applies before tiling")
9191
.def(
9292
"serializeToProtobuf",
93-
[]() {
94-
std::string str = tc::CudaMappingOptions::toProtobufSerializedString;
93+
[](tc::CudaMappingOptions& instance) {
94+
std::string str = instance.toProtobufSerializedString;
9595
return py::bytes(str);
9696
},
9797
"Serialize the options to a protobuf string")

0 commit comments

Comments
 (0)