Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for parseName (2.02 sec)

  1. src/net/http/header.go

    	}
    	return h2
    }
    
    var timeFormats = []string{
    	TimeFormat,
    	time.RFC850,
    	time.ANSIC,
    }
    
    // ParseTime parses a time header (such as the Date: header),
    // trying each of the three formats allowed by HTTP/1.1:
    // [TimeFormat], [time.RFC850], and [time.ANSIC].
    func ParseTime(text string) (t time.Time, err error) {
    	for _, layout := range timeFormats {
    		t, err = time.Parse(layout, text)
    		if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.cc

      mlir::StringAttr device = op->getAttrOfType<mlir::StringAttr>(kDeviceAttr);
      if (!device || device.getValue().empty()) {
        return std::nullopt;
      }
      tensorflow::DeviceNameUtils::ParsedName parsed_name;
      if (!tensorflow::DeviceNameUtils::ParseFullName(device.str(), &parsed_name)) {
        return std::nullopt;
      }
      if (!parsed_name.has_type) {
        return std::nullopt;
      }
      return parsed_name.type;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc

      Status Sync() override { return errors::Unimplemented("FakeDevice::Sync()"); }
    
      static std::unique_ptr<Device> Make(const string& name,
                                          const string& desc = "") {
        DeviceNameUtils::ParsedName parsed_name;
        DeviceNameUtils::ParseFullName(name, &parsed_name);
    
        DeviceAttributes device_attributes;
        device_attributes.set_name(name);
        device_attributes.set_device_type(parsed_name.type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpResponseResource.java

            String responseHeader = response.getHeader(HttpHeaders.LAST_MODIFIED);
            if (responseHeader == null) {
                return new Date(0);
            }
            try {
                return DateUtils.parseDate(responseHeader);
            } catch (Exception e) {
                return new Date(0);
            }
        }
    
        private String getFilename() {
            String disposition = response.getHeader("Content-Disposition");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/hoist_broadcast_read.cc

        if (auto attr = func.getArgAttrOfType<StringAttr>(arg.getArgNumber(),
                                                          kFuncDeviceAttr)) {
          std::string device = attr.getValue().str();
          tensorflow::DeviceNameUtils::ParsedName parsed_name;
          if (!tensorflow::DeviceNameUtils::ParseFullName(device, &parsed_name)) {
            return read->emitOpError() << "invalid device '" << device << "'";
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/util/DocumentUtil.java

            }
            if (clazz.isAssignableFrom(Date.class)) {
                if (value instanceof Date) {
                    return (T) value;
                }
                return (T) FessFunctions.parseDate(value.toString());
            }
            if (clazz.isAssignableFrom(Long.class)) {
                if (value instanceof Long) {
                    return (T) value;
                }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. tests/connpool_test.go

    	dialect := os.Getenv("GORM_DIALECT")
    	if dialect != "mysql" {
    		t.SkipNow()
    	}
    
    	dbDSN := os.Getenv("GORM_DSN")
    	if dbDSN == "" {
    		dbDSN = "gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True&loc=Local"
    	}
    	nativeDB, err := sql.Open("mysql", dbDSN)
    	if err != nil {
    		t.Fatalf("Should open db success, but got %v", err)
    	}
    
    	conn := &wrapperConnPool{
    		db: nativeDB,
    		expect: []string{
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc

      const std::string attrKey = "T";
      for (const Node* node : graph.nodes()) {
        if (node->type_string() == nodeType) {
          auto device_name = node->assigned_device_name();
          DeviceNameUtils::ParsedName device;
          if (DeviceNameUtils::ParseFullName(device_name, &device) &&
              device.has_job && device.job == jobType) {
            for (const auto& attr : node->attrs()) {
              auto attr_key = attr.first;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 12:22:33 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top