MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Rewrite

Method Rewrite

tensorflow/lite/delegates/gpu/gl/compiler/object_accessor.cc:506–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504} // namespace
505
506RewriteStatus ObjectAccessor::Rewrite(absl::string_view input,
507 std::string* output) {
508 // Splits 'a =b' into {'a','b'}.
509 std::pair<absl::string_view, absl::string_view> n =
510 absl::StrSplit(input, absl::MaxSplits('=', 1), absl::SkipWhitespace());
511 if (n.first.empty()) {
512 return RewriteStatus::NOT_RECOGNIZED;
513 }
514 if (n.second.empty()) {
515 return RewriteRead(absl::StripAsciiWhitespace(n.first), output);
516 }
517 return RewriteWrite(absl::StripAsciiWhitespace(n.first),
518 absl::StripAsciiWhitespace(n.second), output);
519}
520
521RewriteStatus ObjectAccessor::RewriteRead(absl::string_view location,
522 std::string* output) {

Callers

nothing calls this directly

Calls 2

SkipWhitespaceClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected