Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,179 for rfind (0.04 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. tensorflow/cc/framework/cc_op_gen.cc

      TF_CHECK_OK(cc->Append(footer));
    
      TF_CHECK_OK(cc->Close());
      TF_CHECK_OK(h->Close());
    }
    
    string MakeInternal(const string& fname) {
      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));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 17:22:47 UTC 2023
    - 17K bytes
    - Viewed (0)
  6. cluster/gce/gci/flexvolume_node_setup.sh

    generate_chroot_wrapper() {
      if [ ! -d ${MOUNTER_PATH}/flexvolume ]; then
        echo "Failed to set up FlexVolume driver: cannot find directory '/flexvolume' in the mount utility image."
        exit 1
      fi
    
      for driver_dir in "${MOUNTER_PATH}/flexvolume"/*; do
        if [ -d "$driver_dir" ]; then
    
          filecount=$(cd "$driver_dir"; find . -mindepth 1 -maxdepth 1 -print0 | xargs -0 -n1 basename | wc -l)
          if [ "$filecount" -gt 1 ]; then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 13 17:58:51 UTC 2020
    - 5.8K bytes
    - Viewed (0)
  7. 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)
  8. tests/upsert_test.go

    	}
    
    	DB.Where(&User{Name: "find or init"}).Assign("age", 44).FirstOrInit(&user4)
    	if user4.Name != "find or init" || user4.ID != 0 || user4.Age != 44 {
    		t.Errorf("user should be initialized with search value and assign attrs")
    	}
    
    	DB.Save(&User{Name: "find or init", Age: 33})
    	DB.Where(&User{Name: "find or init"}).Attrs("age", 44).FirstOrInit(&user5)
    	if user5.Name != "find or init" || user5.ID == 0 || user5.Age != 33 {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Sep 05 07:39:19 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top