Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for parseName (0.17 sec)

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

    mlir::LogicalResult GetDevicesFromOp(mlir::Operation* op,
                                         mlir::ArrayAttr array_attr,
                                         mlir::TF::RuntimeDevices* devices) {
      DeviceNameUtils::ParsedName device;
    
      for (const auto& kv : llvm::enumerate(array_attr)) {
        const int idx = kv.index();
    
        auto string_attr = mlir::dyn_cast<mlir::StringAttr>(kv.value());
        if (!string_attr)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. tests/tests_test.go

    var DB *gorm.DB
    var (
    	mysqlDSN     = "gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True&loc=Local"
    	postgresDSN  = "user=gorm password=gorm dbname=gorm host=localhost port=9920 sslmode=disable TimeZone=Asia/Shanghai"
    	sqlserverDSN = "sqlserver://gorm:LoremIpsum86@localhost:9930?database=gorm"
    	tidbDSN      = "root:@tcp(localhost:9940)/test?charset=utf8&parseTime=True&loc=Local"
    )
    
    func init() {
    	var err error
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/language/tags.go

    	t, err := c.Parse(s)
    	if err != nil {
    		panic(err)
    	}
    	return t
    }
    
    // MustParseBase is like ParseBase, but panics if the given base cannot be parsed.
    // It simplifies safe initialization of Base values.
    func MustParseBase(s string) Base {
    	b, err := ParseBase(s)
    	if err != nil {
    		panic(err)
    	}
    	return b
    }
    
    // MustParseScript is like ParseScript, but panics if the given script cannot be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. src/main/webapp/WEB-INF/fe.tld

        </example>
      </function>
    
      <function>
        <description>
          Returns Date from a given value.
        </description>
        <name>parseDate</name>
        <function-class>org.codelibs.fess.taglib.FessFunctions</function-class>
        <function-signature>java.util.Date parseDate(java.lang.String)</function-signature>
        <example>
          ${fe:parseDate(doc.tstamp)}
        </example>
      </function>
    
      <function>
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu May 28 07:49:35 UTC 2020
    - 10K bytes
    - Viewed (0)
  5. src/main/webapp/js/admin/plugins/form-validator/date.js

    essage:"",errorMessageKey:"badTime"}),a.formUtils.addValidator({name:"birthdate",validatorFunction:function(c,d,e){var f="yyyy-mm-dd";d.valAttr("format")?f=d.valAttr("format"):"undefined"!=typeof e.dateFormat&&(f=e.dateFormat);var g=a.formUtils.parseDate(c,f);if(!g)return!1;var h=g[0],i=g[1],j=g[2],k=b(h,i,j),l=(d.valAttr("age-range")||"0-124").split("-");if(d.trigger("ageCalculated",[k]),2!==l.length||!a.isNumeric(l[0])||!a.isNumeric(l[1]))throw new Error("Date range format invalid");return k>=...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  6. src/net/mail/message_test.go

    		} else if !date.Equal(test.exp) {
    			t.Errorf("Header(Date: %s).Date() = %+v, want %+v", test.dateStr, date, test.exp)
    		}
    
    		date, err = ParseDate(test.dateStr)
    		if err != nil {
    			t.Errorf("ParseDate(%s): %v", test.dateStr, err)
    		} else if !date.Equal(test.exp) {
    			t.Errorf("ParseDate(%s) = %+v, want %+v", test.dateStr, date, test.exp)
    		}
    	}
    }
    
    func TestDateParsingCFWS(t *testing.T) {
    	tests := []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

    #include "tensorflow/core/util/device_name_utils.h"
    
    namespace mlir {
    namespace TF {
    namespace {
    
    using DeviceNameUtils = ::tensorflow::DeviceNameUtils;
    using ParsedName = ::tensorflow::DeviceNameUtils::ParsedName;
    
    constexpr const char *kHostAttr = "host";
    constexpr const char *kDeviceAttr = "device";
    constexpr const char *kTFDeviceAttr = "tf.device";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            if (value == null) {
                return null;
            }
            return new Date(value);
        }
    
        public static Date parseDate(final String value) {
            return parseDate(value, Constants.DATE_OPTIONAL_TIME);
        }
    
        public static Date parseDate(final String value, final String format) {
            if (value == null) {
                return null;
            }
    
            try {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top