Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for has_default_value (0.28 sec)

  1. tensorflow/cc/framework/fuzzing/cc_op_fuzz_gen.cc

                } else if (!arg.type_attr().empty()) {
                  OpDef_AttrDef attr =
                      *FindAttr(arg.type_attr(), op_info.graph_op_def);
                  if (attr.has_default_value() &&
                      attr.default_value().value_case() == AttrValue::kType) {
                    type = DataType_Name(attr.default_value().type());
                  } else if (attr.has_allowed_values() &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 27 16:26:51 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/cc_op_gen_util.cc

      for (int i = 0; i < api_def.attr_size(); ++i) {
        const auto& attr(api_def.attr(i));
        if ((inferred_input_attrs.find(attr.name()) ==
             inferred_input_attrs.end()) &&
            attr.has_default_value()) {
          return true;
        }
      }
      return false;
    }
    
    OpInfo::OpInfo(const OpDef& graph_op_def, const ApiDef& api_def,
                   const std::vector<string>& aliases)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/cc_op_gen.cc

          const auto& api_def_attr(op_info.api_def.attr(i));
          if ((op_info.inferred_input_attrs.find(attr.name()) !=
               op_info.inferred_input_attrs.end()) ||
              !api_def_attr.has_default_value()) {
            continue;
          }
          const auto entry = AttrTypeName(attr.type());
          const auto attr_type_name = entry.first;
          const bool use_const = entry.second;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 17:22:47 UTC 2023
    - 17K bytes
    - Viewed (0)
  4. schema/schema_test.go

    	fields := []schema.Field{
    		{Name: "ID", DBName: "id", BindNames: []string{"Model", "ID"}, DataType: schema.Uint, PrimaryKey: true, Tag: `gorm:"primarykey"`, TagSettings: map[string]string{"PRIMARYKEY": "PRIMARYKEY"}, Size: 64, HasDefaultValue: true, AutoIncrement: true},
    		{Name: "CreatedAt", DBName: "created_at", BindNames: []string{"Model", "CreatedAt"}, DataType: schema.Time},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:31:23 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  5. schema/field.go

    		field.DataType = Uint
    		if field.HasDefaultValue && !skipParseDefaultValue {
    			if field.DefaultValueInterface, err = strconv.ParseUint(field.DefaultValue, 0, 64); err != nil {
    				schema.err = fmt.Errorf("failed to parse %s as default value for uint, got error: %v", field.DefaultValue, err)
    			}
    		}
    	case reflect.Float32, reflect.Float64:
    		field.DataType = Float
    		if field.HasDefaultValue && !skipParseDefaultValue {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  6. schema/schema.go

    		if field.DataType != "" && field.HasDefaultValue && field.DefaultValueInterface == nil {
    			schema.FieldsWithDefaultDBValue = append(schema.FieldsWithDefaultDBValue, field)
    		}
    	}
    
    	if field := schema.PrioritizedPrimaryField; field != nil {
    		switch field.GORMDataType {
    		case Int, Uint:
    			if _, ok := field.TagSettings["AUTOINCREMENT"]; !ok {
    				if !field.HasDefaultValue || field.DefaultValueInterface != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. callbacks/create.go

    			if !supportReturning {
    				db.AddError(err)
    			}
    			return
    		}
    
    		if db.Statement.Schema != nil {
    			if db.Statement.Schema.PrioritizedPrimaryField == nil || !db.Statement.Schema.PrioritizedPrimaryField.HasDefaultValue {
    				return
    			}
    			pkField = db.Statement.Schema.PrioritizedPrimaryField
    			pkFieldName = db.Statement.Schema.PrioritizedPrimaryField.DBName
    		}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 08 03:29:55 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. schema/field_test.go

    	}
    
    	fields := []*schema.Field{
    		{Name: "ID", DBName: "id", BindNames: []string{"ID"}, DataType: schema.Uint, PrimaryKey: true, Size: 64, Creatable: true, Updatable: true, Readable: true, HasDefaultValue: true, AutoIncrement: true},
    		{Name: "Name", DBName: "", BindNames: []string{"Name"}, DataType: "", Tag: `gorm:"-"`, Creatable: false, Updatable: false, Readable: false},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 19 09:02:53 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/objectGraph/reflectObject.kt

                is Assigned -> it to PropertyValueReflection(reflect(assignment.objectOrigin, context), assignment.assignmentMethod)
                else -> if (it.hasDefaultValue) {
                    it to PropertyValueReflection(reflect(ObjectOrigin.PropertyDefaultValue(objectOrigin, it, objectOrigin.originElement), context), AssignmentMethod.AsConstructed)
                } else null
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/DefaultAnalysisSchema.kt

    }
    
    
    @Serializable
    @SerialName("dataProperty")
    data class DefaultDataProperty(
        override val name: String,
        override val valueType: DataTypeRef,
        override val mode: PropertyMode,
        override val hasDefaultValue: Boolean,
        override val isHiddenInDsl: Boolean = false,
        override val isDirectAccessOnly: Boolean = false
    ) : DataProperty {
        data object DefaultPropertyMode {
            @Serializable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:10 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top