Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 446 for ends_with (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/location_utils.cc

        if (!locations.empty()) {
          // Skip locations for propagating op_type metadata.
          if (auto name_loc = mlir::dyn_cast<mlir::NameLoc>(locations[0])) {
            if (name_loc.getName().strref().ends_with(":")) {
              if (locations.size() == 2)
                return locations[1];
              else if (locations.size() > 2)
                return mlir::FusedLoc::get(
                    fused_loc.getContext(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/metrics/types_util.cc

              // op_type metadata.
              if (num_locs > 0) {
                if (auto name_loc = mlir::dyn_cast<mlir::NameLoc>(locations[0])) {
                  if (name_loc.getName().strref().ends_with(":")) {
                    if (num_locs == 2) {
                      return LocationExtractor(locations[1]).Extract(error_data);
                    } else if (num_locs > 2) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.cc

      StringRef caller_name =
          mlir::cast<NameLoc>(callsite_loc.getCaller()).getName().strref();
      return caller_name.starts_with(kQuantizationUnitPrefix) &&
             caller_name.ends_with(kQuantizationUnitSuffix);
    }
    
    std::optional<QuantizationUnitLoc::QuantizationUnit>
    FindQuantizationUnitFromLoc(Location loc) {
      if (isa<QuantizationUnitLoc>(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)
  4. tensorflow/compiler/mlir/lite/converter_gen.cc

    // Returns the associated option name for the given op definition.
    static inline std::string GetOperatorOptionName(const Record &def) {
      assert(def.getName().starts_with("TFL_") && "unexpected op prefix");
      assert(def.getName().ends_with("Op") && "unexpected op suffix");
    
      auto *custom_option = dyn_cast<StringInit>(def.getValueInit("customOption"));
      std::ostringstream oss;
      if (custom_option)
        oss << custom_option->getValue().str();
      else
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

      if (locations.size() < 2 || !isa<NameLoc>(locations.front())) return false;
    
      StringRef op_type_with_suffix =
          mlir::cast<NameLoc>(locations.front()).getName().strref();
      if (!op_type_with_suffix.ends_with(":")) return false;
    
      return absl::c_all_of(locations, [](Location loc) {
        return isa<NameLoc>(loc) ||
               (isa<CallSiteLoc>(loc) &&
                isa<NameLoc>(mlir::cast<CallSiteLoc>(loc).getCallee()));
      });
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/internal/SourceFoldersCreatorTest.groovy

            when:
            def folders = regularSourceFolders()
            then:
            folders.find { it.dir.path.endsWith("java") }.excludes == []
            folders.find { it.dir.path.endsWith("java") }.includes == patterns
            folders.find { it.dir.path.endsWith("resources") }.excludes == patterns
            folders.find { it.dir.path.endsWith("resources") }.includes == []
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  7. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

        return when {
          file.name.endsWith(".css") -> "text/css"
          file.name.endsWith(".gif") -> "image/gif"
          file.name.endsWith(".html") -> "text/html"
          file.name.endsWith(".jpeg") -> "image/jpeg"
          file.name.endsWith(".jpg") -> "image/jpeg"
          file.name.endsWith(".js") -> "application/javascript"
          file.name.endsWith(".png") -> "image/png"
          else -> "text/plain"
        }
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

        return result;
      }
    
      private String contentType(String path) {
        if (path.endsWith(".png")) return "image/png";
        if (path.endsWith(".jpg")) return "image/jpeg";
        if (path.endsWith(".jpeg")) return "image/jpeg";
        if (path.endsWith(".gif")) return "image/gif";
        if (path.endsWith(".html")) return "text/html; charset=utf-8";
        if (path.endsWith(".txt")) return "text/plain; charset=utf-8";
        return "application/octet-stream";
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Jan 02 02:50:44 UTC 2019
    - 4.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/thumbnail/ThumbnailAction.java

            final String path = imageFile.getAbsolutePath();
            if (path.endsWith(".png")) {
                return "image/png";
            }
            if (path.endsWith(".gif")) {
                return "image/gif";
            }
            if (path.endsWith(".jpg") || path.endsWith(".jpeg")) {
                return "image/jpeg";
            }
            return "application/octet-stream";
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. testing/distributions-integ-tests/src/integTest/groovy/org/gradle/DistributionIntegritySpec.groovy

                    def names = it.entries()*.name
                    def groupedNames = names.groupBy { it }
                    groupedNames.each { name, all ->
                        if (name.endsWith(".class") && !name.endsWith("module-info.class") && !name.endsWith("package-info.class")) {
                            def containingJars = classesIndex.computeIfAbsent(name, k -> [])
                            containingJars.add(jar.name)
                        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top