Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 841 for rfind (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tests/preload_test.go

    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	var user2 User
    	DB.Preload("Pets.Toy").Find(&user2, "id = ?", user.ID)
    	CheckUser(t, user2, user)
    
    	var user3 User
    	DB.Preload(clause.Associations+"."+clause.Associations).Find(&user3, "id = ?", user.ID)
    	CheckUser(t, user3, user)
    
    	var user4 *User
    	DB.Preload("Pets.Toy").Find(&user4, "id = ?", user.ID)
    	CheckUser(t, *user4, user)
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:00:47 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/GradleModuleMetadata.groovy

                    return this
                }
    
                Dependency find() {
                    assert current : "dependency ${group}:${module}:${version} not found in $dependencies"
                    checkedDependencies << current
                    current
                }
    
                DependencyView exists() {
                    assert find()
                    this
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 20K bytes
    - Viewed (0)
  7. tests/table_test.go

    func TestTable(t *testing.T) {
    	dryDB := DB.Session(&gorm.Session{DryRun: true})
    
    	r := dryDB.Table("`user`").Find(&User{}).Statement
    	if !regexp.MustCompile("SELECT \\* FROM `user`").MatchString(r.Statement.SQL.String()) {
    		t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    	}
    
    	r = dryDB.Table("user as u").Select("name").Find(&User{}).Statement
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Mar 09 09:31:28 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildTreeStructureIntegrationTest.groovy

                size() == 3
                it.find { it.details.buildPath == ":" }
                it.find { it.details.buildPath == ":include" }
                it.find { it.details.buildPath == ":include:inner-include" }
            }
            with(fixture.all(LoadProjectsBuildOperationType)) {
                size() == 3
                it.find { it.details.buildPath == ":" }
                it.find { it.details.buildPath == ":include" }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/isolated/IsolationScheme.java

                        return allServices.find(ExecOperations.class);
                    }
                    if (serviceClass.isAssignableFrom(FileSystemOperations.class)) {
                        return allServices.find(FileSystemOperations.class);
                    }
                    if (serviceClass.isAssignableFrom(ArchiveOperations.class)) {
                        return allServices.find(ArchiveOperations.class);
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:37 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. tests/associations_has_many_test.go

    	}
    
    	CheckUser(t, user, user)
    
    	// Find
    	var user2 User
    	DB.Find(&user2, "id = ?", user.ID)
    	DB.Model(&user2).Association("Pets").Find(&user2.Pets)
    	CheckUser(t, user2, user)
    
    	var pets []Pet
    	DB.Model(&user).Where("name = ?", user.Pets[0].Name).Association("Pets").Find(&pets)
    
    	if len(pets) != 1 {
    		t.Fatalf("should only find one pets, but got %v", len(pets))
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top