Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,275 for rfind (0.26 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. 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)
  4. 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)
  5. 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)
  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/ide-plugins/src/test/groovy/org/gradle/plugins/ide/internal/tooling/idea/IdeaModelBuilderTest.groovy

            ideaProject.javaLanguageSettings.languageLevel == JavaVersion.VERSION_1_2
            ideaProject.modules.find { it.name == 'test-project' }.javaLanguageSettings.languageLevel == JavaVersion.VERSION_1_3
            ideaProject.modules.find { it.name == 'child1' }.javaLanguageSettings.languageLevel == JavaVersion.VERSION_1_4
            ideaProject.modules.find { it.name == 'child2' }.javaLanguageSettings.languageLevel == JavaVersion.VERSION_1_5
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 09 11:38:46 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r112/BuildInvocationsCrossVersionSpec.groovy

                connection.getModel(GradleProject)
            }
            GradleTask taskT1 = model.tasks.find { it.name == 't1' }
            GradleTask taskBT2 = model.findByPath(':b').tasks.find { it.name == 't2' }
            GradleTask taskBCT1 = model.findByPath(':b:c').tasks.find { it.name == 't1' }
            def result = withBuild { BuildLauncher it ->
                it.forLaunchables(taskT1, taskBT2, taskBCT1)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top