Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,446 for rfind (0.19 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.cc

        StringRef caller_name = mlir::cast<NameLoc>(caller).getName().strref();
        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;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/metrics/error_collector_inst_test.cc

      explicit MockFailurePass() = default;
    
     private:
      void runOnOperation() override {
        getOperation().walk([](Operation* nestedOp) {
          if (nestedOp->getName().getStringRef().str().rfind("tf.") != -1) {
            AttachErrorCode(
                nestedOp->emitError()
                    << "Failed at " << nestedOp->getName().getStringRef().str()
                    << " op",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/cc_op_gen_util.cc

        result = result.substr(sizeof("external/") - 1);
        pos = result.find('/');
        if (pos != string::npos) {
          result = result.substr(pos + 1);
        }
      }
      return result;
    }
    
    string GetFilename(StringPiece path) {
      size_t slash_pos = path.rfind('/');
      if (slash_pos == path.npos) slash_pos = -1;
      size_t dot_pos = path.rfind('.');
      return string(path.substr(slash_pos + 1, dot_pos - (slash_pos + 1)));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
  4. tensorflow/cc/saved_model/metrics.cc

      return absl::StrCat(path, ":", singleprint);
    }
    
    absl::StatusOr<std::pair<std::string, std::string>>
    ParseSavedModelPathAndSingleprint(std::string path_and_singleprint) {
      size_t delimiter = path_and_singleprint.rfind(':');
      if (delimiter == std::string::npos) {
        return absl::InvalidArgumentError(
            "Invalid path_and_singleprint argument. Found no delimeter.");
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 23:43:59 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r44/ToolingApiEclipseModelSourceFolderClasspathAttributesCrossVersionSpec.groovy

            def mainDirAttributes = project.sourceDirectories.find { it.path == 'src/main/java' }.classpathAttributes
            def testDirAttributes = project.sourceDirectories.find { it.path == 'src/test/java' }.classpathAttributes
    
            then:
            mainDirAttributes.find { it.name == 'gradle_scope' && it.value == 'main' }
            mainDirAttributes.find { it.name == 'gradle_used_by_scope' && it.value == 'main,test' }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. tests/transaction_test.go

    	if err := DB.First(&User{}, "name = ?", user.Name).Error; err != nil {
    		t.Fatalf("Should find saved record")
    	}
    
    	if err := DB.First(&User{}, "name = ?", user1.Name).Error; err == nil {
    		t.Fatalf("Should not find rollbacked record")
    	}
    
    	if err := DB.First(&User{}, "name = ?", user2.Name).Error; err != nil {
    		t.Fatalf("Should find saved record")
    	}
    }
    
    func TestNestedTransactionWithBlock(t *testing.T) {
    	var (
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r56/ToolingApiEclipseModelTestSourcesCrossVersionSpec.groovy

            EclipseProjectDependency depC = projectA.projectDependencies.find { it.path == 'c' }
            EclipseProjectDependency depD = projectA.projectDependencies.find { it.path == 'd' }
    
            then:
            !depB.classpathAttributes.find { it.name == 'test' && it.value == 'true' }
            !depB.classpathAttributes.find { it.name == 'without_test_code' && it.value == 'false' }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. src/runtime/mgcscavenge_test.go

    			test.find(find) // Now we should be able to find things.
    			find(0, 0)      // The test should always fully exhaust the index.
    		})
    		t.Run("Force/"+test.name, func(t *testing.T) {
    			mark, find, _ := setup(t, true)
    			test.mark(mark)
    			test.find(find) // Finding should always work when forced.
    			find(0, 0)      // The test should always fully exhaust the index.
    		})
    	}
    	t.Run("Bg/MarkInterleaved", func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/util/TrieTest.groovy

            expect:
            !empty.find("")
            !empty.find("alma")
        }
    
        def "can find exact match"() {
            def trie = Trie.from("aaa", "bbb")
            expect:
            trie.find("aaa")
            trie.find("bbb")
            !trie.find("ccc")
        }
    
        def "can find prefix match"() {
            def trie = Trie.from("aaa", "bbb")
            expect:
            !trie.find("a")
            !trie.find("aa")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r211/ToolingApiIdeaModelCrossVersionSpec.groovy

            ideaProject.modules.find { it.name == 'root' }.javaLanguageSettings == null
            ideaProject.modules.find { it.name == 'child1' }.javaLanguageSettings == null
            ideaProject.modules.find { it.name == 'child2' }.javaLanguageSettings.languageLevel == JavaVersion.VERSION_1_2
            ideaProject.modules.find { it.name == 'child3' }.javaLanguageSettings.languageLevel == null // inherited
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top