Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 123 for elem1 (0.05 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go

    		}
    	}
    
    	// check that anything other than type and properties in metadata is forbidden
    	tt = reflect.TypeOf(Structural{})
    	for i := 0; i < tt.NumField(); i++ {
    		s := Structural{}
    		x := reflect.ValueOf(&s).Elem()
    		fuzzer.Fuzz(x.Field(i).Addr().Interface())
    		s.Type = "object"
    		s.Properties = map[string]Structural{
    			"name":         {},
    			"generateName": {},
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 18:20:00 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. src/go/types/unify.go

    			// assume they are the same to avoid spurious follow-on errors.
    			return (x.len < 0 || y.len < 0 || x.len == y.len) && u.nify(x.elem, y.elem, emode, p)
    		}
    
    	case *Slice:
    		// Two slice types unify if their element types unify.
    		if y, ok := y.(*Slice); ok {
    			return u.nify(x.elem, y.elem, emode, p)
    		}
    
    	case *Struct:
    		// Two struct types unify if they have the same sequence of fields,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/infer.go

    	}()
    
    	switch t := typ.(type) {
    	case *Basic:
    		// nothing to do
    
    	case *Alias:
    		return w.isParameterized(Unalias(t))
    
    	case *Array:
    		return w.isParameterized(t.elem)
    
    	case *Slice:
    		return w.isParameterized(t.elem)
    
    	case *Struct:
    		return w.varList(t.fields)
    
    	case *Pointer:
    		return w.isParameterized(t.base)
    
    	case *Tuple:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  4. cmd/object-api-utils.go

    	}()
    
    	return pathJoinBuf(sb, elem...)
    }
    
    // pathJoinBuf - like path.Join() but retains trailing SlashSeparator of the last element.
    // Provide a string builder to reduce allocation.
    func pathJoinBuf(dst *bytebufferpool.ByteBuffer, elem ...string) string {
    	trailingSlash := len(elem) > 0 && hasSuffixByte(elem[len(elem)-1], SlashSeparatorChar)
    	dst.Reset()
    	added := 0
    	for _, e := range elem {
    		if added > 0 || e != "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

    Type ToLegalType(Type type) {
      if (IsTFQintType(type)) return GetIntTypeFromTFQint(type);
      if (auto shaped = mlir::dyn_cast<ShapedType>(type)) {
        Type elem = shaped.getElementType();
        if (IsTFQintType(elem)) return shaped.clone(ToLegalType(elem));
      }
      return type;
    }
    
    bool IsQintToIntCast(Operation *op) {
      auto cast_op = llvm::dyn_cast<TF::CastOp>(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. association.go

    			}
    
    			appendToFieldValues := func(ev reflect.Value) {
    				if ev.Type().AssignableTo(elemType) {
    					fieldValue = reflect.Append(fieldValue, ev)
    				} else if ev.Type().Elem().AssignableTo(elemType) {
    					fieldValue = reflect.Append(fieldValue, ev.Elem())
    				} else {
    					association.Error = fmt.Errorf("unsupported data type: %v for relation %s", ev.Type(), association.Relationship.Name)
    				}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  7. src/go/types/builtins.go

    			check.errorf(x, InvalidCopy, invalidArg+"copy expects slice arguments; found %s and %s", x, y)
    			return
    		}
    
    		if !Identical(dst.elem, src.elem) {
    			check.errorf(x, InvalidCopy, invalidArg+"arguments to copy %s and %s have different element types %s and %s", x, y, dst.elem, src.elem)
    			return
    		}
    
    		if check.recordTypes() {
    			check.recordBuiltinType(call.Fun, makeSig(Typ[Int], x.typ, y.typ))
    		}
    		x.mode = value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  8. src/go/types/infer.go

    	}()
    
    	switch t := typ.(type) {
    	case *Basic:
    		// nothing to do
    
    	case *Alias:
    		return w.isParameterized(Unalias(t))
    
    	case *Array:
    		return w.isParameterized(t.elem)
    
    	case *Slice:
    		return w.isParameterized(t.elem)
    
    	case *Struct:
    		return w.varList(t.fields)
    
    	case *Pointer:
    		return w.isParameterized(t.base)
    
    	case *Tuple:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  9. src/cmd/doc/main.go

    func parseSymbol(str string) (symbol, method string) {
    	if str == "" {
    		return
    	}
    	elem := strings.Split(str, ".")
    	switch len(elem) {
    	case 1:
    	case 2:
    		method = elem[1]
    	default:
    		log.Printf("too many periods in symbol specification")
    		usage()
    	}
    	symbol = elem[0]
    	return
    }
    
    // isExported reports whether the name is an exported identifier.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/builtins.go

    			check.errorf(x, InvalidCopy, invalidArg+"copy expects slice arguments; found %s and %s", x, y)
    			return
    		}
    
    		if !Identical(dst.elem, src.elem) {
    			check.errorf(x, InvalidCopy, invalidArg+"arguments to copy %s and %s have different element types %s and %s", x, y, dst.elem, src.elem)
    			return
    		}
    
    		if check.recordTypes() {
    			check.recordBuiltinType(call.Fun, makeSig(Typ[Int], x.typ, y.typ))
    		}
    		x.mode = value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
Back to top