Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 207 for elem4 (0.04 sec)

  1. 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)
  2. 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)
  3. pkg/apis/core/v1/defaults_test.go

    				toVisit = append(toVisit, testPath{path: visit.path + "[*]", value: item})
    			} else if !isPrimitive(visit.value.Type().Elem().Kind()) {
    				t.Logf("unhandled non-primitive map type %s: %s", visit.path, visit.value.Type().Elem())
    			}
    
    		case visit.value.Kind() == reflect.Pointer:
    			if visit.value.IsNil() {
    				if visit.value.Type().Elem().Kind() == reflect.Struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/unique/clone.go

    		}
    	}
    }
    
    // buildArrayCloneSeq populates a cloneSeq for an abi.Type that has Kind abi.Array.
    func buildArrayCloneSeq(typ *abi.Type, seq *cloneSeq, baseOffset uintptr) {
    	atyp := typ.ArrayType()
    	etyp := atyp.Elem
    	offset := baseOffset
    	for range atyp.Len {
    		switch etyp.Kind() {
    		case abi.String:
    			seq.stringOffsets = append(seq.stringOffsets, offset)
    		case abi.Struct:
    			buildStructCloneSeq(etyp, seq, offset)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:21 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/compile/internal/types2/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.8K bytes
    - Viewed (0)
Back to top