Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for substVar (0.32 sec)

  1. src/internal/stringslite/strings.go

    	return bytealg.IndexByteString(s, c)
    }
    
    func Index(s, substr string) int {
    	n := len(substr)
    	switch {
    	case n == 0:
    		return 0
    	case n == 1:
    		return IndexByte(s, substr[0])
    	case n == len(s):
    		if substr == s {
    			return 0
    		}
    		return -1
    	case n > len(s):
    		return -1
    	case n <= bytealg.MaxLen:
    		// Use brute force when s and substr both are small
    		if len(s) <= bytealg.MaxBruteForce {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 01:23:42 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-spi.h

    #define EXPECT_FATAL_FAILURE(statement, substr) \
      do { \
        class GTestExpectFatalFailureHelper {\
         public:\
          static void Execute() { statement; }\
        };\
        ::testing::TestPartResultArray gtest_failures;\
        ::testing::internal::SingleFailureChecker gtest_checker(\
            &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
        {\
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc

          "tensorflow/compiler/mlir/tf2xla/api/v2/testdata/");
    }
    
    size_t CountSubstring(absl::string_view str, absl::string_view substr) {
      size_t count = 0;
      size_t idx = str.find(substr);
      while (idx != std::string::npos) {
        count++;
        idx = str.find(substr, idx + 1);
      }
      return count;
    }
    
    class TensorflowDialectToExecutorTest : public ::testing::Test {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/metrics/error_collector_inst.cc

                if (absl::StartsWith(note_str, kErrorCodePrefix)) {
                  error_code = note_str.substr(sizeof(kErrorCodePrefix) - 1);
                }
    
                error_message += "\n";
                if (note_str.size() <= kMaxAcceptedNoteSize) {
                  error_message += note_str;
                } else {
                  error_message += note_str.substr(0, kMaxAcceptedNoteSize);
                  error_message += "...";
                }
              }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/main/resources/footer.html

        function getCurrentChapterFileName(givenUrl) {
            var currentChapterFileName = givenUrl.substr(givenUrl.lastIndexOf("/") + 1);
            if (currentChapterFileName === "index.html" || currentChapterFileName === "") {
                currentChapterFileName = givenUrl.substr(0, givenUrl.lastIndexOf("/"));
                currentChapterFileName = currentChapterFileName.substr(currentChapterFileName.lastIndexOf("/") + 1) + "/index.html";
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 09:28:20 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. tensorflow/c/eager/immediate_execution_tensor_handle.cc

        value_string = "<error computing value>";
      }
      if (value_string.length() > 100) {
        // The default NumPy-style output can be distractingly long in error
        // messages.
        value_string = absl::StrCat(value_string.substr(0, 100), " [...]");
      }
      Status s;
      const char* device_name = DeviceName(&s);
      if (!s.ok()) {
        device_name = "<error fetching device name>";
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. src/net/http/main_test.go

    		").noteClientGone(":     "a closenotifier sender",
    	}
    	var stacks string
    	for i := 0; i < 2500; i++ {
    		bad = ""
    		stacks = strings.Join(interestingGoroutines(), "\n\n")
    		for substr, what := range badSubstring {
    			if strings.Contains(stacks, substr) {
    				bad = what
    			}
    		}
    		if bad == "" {
    			leakReported = false
    			return
    		}
    		// Bad stuff found, but goroutines might just still be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:49:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/parse_text_proto.cc

    };
    }  // 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();
      }
      return errors::NotFound("No prefix \"", prefix, "\" in \"", str, "\"");
    }
    
    Status ParseTextProto(absl::string_view text_proto,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top