We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f199e8 commit 5e7b029Copy full SHA for 5e7b029
src/torchcodec/_core/custom_ops.cpp
@@ -161,10 +161,10 @@ std::string quoteValue(const std::string& value) {
161
162
// Helper function to unflatten extra_options, alternating keys and values
163
std::map<std::string, std::string> unflattenExtraOptions(
164
- const std::vector<std::string>& opts) {
+ const std::vector<std::string_view>& opts) {
165
std::map<std::string, std::string> optionsMap;
166
for (size_t i = 0; i < opts.size(); i += 2) {
167
- optionsMap[opts[i]] = opts[i + 1];
+ optionsMap[opts[i].data()] = opts[i + 1].data();
168
}
169
return optionsMap;
170
0 commit comments