- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 56 for substVar (0.21 sec)
-
src/cmd/compile/internal/types2/check_test.go
errList = filemap[line] } // At least one of the errors in errList should match the current error. indices = indices[:0] for i, want := range errList { pattern, substr := strings.CutPrefix(want.Msg, " ERROR ") if !substr { var found bool pattern, found = strings.CutPrefix(want.Msg, " ERRORx ") if !found { panic("unreachable") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 13.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/mangling_util.cc
bool IsMangledAttributeName(absl::string_view str) { return absl::StartsWith(str, kAttributePrefix); } absl::string_view DemangleAttributeName(absl::string_view str) { DCHECK(IsMangledAttributeName(str)); return str.substr(std::strlen(kAttributePrefix)); } MangledKind GetMangledKind(absl::string_view str) { if (absl::StartsWith(str, kDataTypePrefix)) { return MangledKind::kDataType;
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/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.cc
const size_t start_index = kQuantizationUnitPrefix.size(); const size_t end_index = caller_name.rfind(kQuantizationUnitSuffix); std::string serialized_proto = caller_name.substr(start_index, end_index - start_index).str(); QuantizationUnitLoc::QuantizationUnit quant_unit; if (quant_unit.ParseFromString(serialized_proto)) { return quant_unit; } } else if (isa<FusedLoc>(loc)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0) -
src/go/types/check_test.go
errList = filemap[line] } // At least one of the errors in errList should match the current error. indices = indices[:0] for i, want := range errList { pattern, substr := strings.CutPrefix(want.text, " ERROR ") if !substr { var found bool pattern, found = strings.CutPrefix(want.text, " ERRORx ") if !found { panic("unreachable") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 14.1K bytes - Viewed (0) -
src/crypto/tls/tls_test.go
if err == nil { t.Fatalf("X509KeyPair didn't return an error when arguments were switched") } if subStr := "been switched"; !strings.Contains(err.Error(), subStr) { t.Fatalf("Expected %q in the error when switching arguments to X509KeyPair, but the error was %q", subStr, err) } _, err = X509KeyPair([]byte(rsaCertPEM), []byte(rsaCertPEM)) if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 60.5K bytes - Viewed (0) -
tensorflow/cc/saved_model/metrics.cc
"Invalid path_and_singleprint argument. Found no delimeter."); } std::string path = path_and_singleprint.substr(0, delimiter); if (path.empty()) { return absl::InvalidArgumentError( "Invalid path_and_singleprint argument. Empty path."); } std::string singleprint = path_and_singleprint.substr(delimiter + 1); if (singleprint.empty()) { return absl::InvalidArgumentError(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 18 23:43:59 UTC 2024 - 13.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental_test.cc
using tensorflow::string; namespace tensorflow { namespace { static bool HasSubstr(absl::string_view base, absl::string_view substr) { bool ok = absl::StrContains(base, substr); EXPECT_TRUE(ok) << base << ", expected substring " << substr; return ok; } TEST(CAPI, MonitoringCounter0) { TF_Status* status = TF_NewStatus(); auto* counter =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 03 03:14:26 UTC 2023 - 31.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc
// Op type is a NameLoc with the ":" suffix. StringRef op_type_with_suffix = mlir::cast<NameLoc>(locations.front()).getName().strref(); StringRef op_type = op_type_with_suffix.substr(0, op_type_with_suffix.size() - 1); new_unit.set_op_type(op_type.str()); if (isa<NameLoc>(locations.back())) { StringRef name_loc_id = mlir::cast<NameLoc>(locations.back()).getName().strref();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.4K bytes - Viewed (0) -
tensorflow/cc/framework/cc_op_gen.cc
auto dot_pos = fname.rfind('.'); if (dot_pos == string::npos) { return strings::StrCat(fname, "_internal"); } else { return strings::StrCat(fname.substr(0, dot_pos), "_internal", fname.substr(dot_pos)); } } } // namespace void WriteCCOps(const OpList& ops, const ApiDefMap& api_def_map, const string& dot_h_fname, const string& dot_cc_fname) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 27 17:22:47 UTC 2023 - 17K bytes - Viewed (0) -
src/net/http/requestwrite_test.go
} } } } func TestRequestWriteTransport(t *testing.T) { t.Parallel() matchSubstr := func(substr string) func(string) error { return func(written string) error { if !strings.Contains(written, substr) { return fmt.Errorf("expected substring %q in request: %s", substr, written) } return nil } } noContentLengthOrTransferEncoding := func(req string) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 01:07:32 UTC 2022 - 23.3K bytes - Viewed (0)