- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ConsumePrefix (0.2 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/parse_text_proto.cc
class NoOpErrorCollector : public protobuf::io::ErrorCollector { public: void AddError(int line, int column, const std::string& message) override {} }; } // namespace Status ConsumePrefix(absl::string_view str, absl::string_view prefix, absl::string_view* output) { if (absl::StartsWith(str, prefix)) { *output = str.substr(prefix.size()); return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 03:47:51 UTC 2024 - 2.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/mangling_util.cc
return absl::StrCat(kDataTypePrefix, DataType_Name(dtype)); } Status DemangleDataType(absl::string_view str, DataType* proto) { absl::string_view pbtxt; TF_RETURN_IF_ERROR(ConsumePrefix(str, kDataTypePrefix, &pbtxt)); if (!DataType_Parse(string(pbtxt), proto)) { return errors::FailedPrecondition( "Could not parse TFDataType mangled proto"); } return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 03:47:51 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/cc/framework/scope.cc
std::vector<string> node_constraints; if (TryGetNodeAttr(attrs, kColocationAttrName, &node_constraints)) { for (const string& entry : node_constraints) { StringPiece s(entry); if (absl::ConsumePrefix(&s, kColocationGroupPrefix)) { current_constraints.emplace(s); } } } else { current_constraints.insert(colocate_with_op.node()->name()); } return current_constraints; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:57:22 UTC 2024 - 20.9K bytes - Viewed (0) -
tensorflow/compiler/jit/flags.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 17 18:52:57 UTC 2024 - 24.5K bytes - Viewed (0)