Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 174 for elem1 (0.17 sec)

  1. src/cmd/compile/internal/types2/operand.go

    	// type, x's type V and T have identical element types,
    	// and at least one of V or T is not a named type.
    	if Vc, ok := Vu.(*Chan); ok && Vc.dir == SendRecv {
    		if Tc, ok := Tu.(*Chan); ok && Identical(Vc.elem, Tc.elem) {
    			return !hasName(V) || !hasName(T), InvalidChanAssign
    		}
    	}
    
    	// optimization: if we don't have type parameters, we're done
    	if Vp == nil && Tp == nil {
    		return false, IncompatibleAssign
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/encoding/asn1/marshal.go

    	if v.Kind() == reflect.Interface && v.Type().NumMethod() == 0 {
    		return makeField(v.Elem(), params)
    	}
    
    	if v.Kind() == reflect.Slice && v.Len() == 0 && params.omitEmpty {
    		return bytesEncoder(nil), nil
    	}
    
    	if params.optional && params.defaultValue != nil && canHaveDefaultValue(v.Kind()) {
    		defaultValue := reflect.New(v.Type()).Elem()
    		defaultValue.SetInt(*params.defaultValue)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/liveness/intervals.go

    // inconsistencies or problems.
    func check(is Intervals) error {
    	for i := 0; i < len(is); i++ {
    		st := is[i].st
    		en := is[i].en
    		if en <= st {
    			return fmt.Errorf("bad range elem %d:%d, en<=st", st, en)
    		}
    		if i == 0 {
    			continue
    		}
    		// check for badly ordered starts
    		pst := is[i-1].st
    		pen := is[i-1].en
    		if pst >= st {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:27 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go

    				return &unstructured.Unstructured{Object: map[string]interface{}{"apiVersion": apiVersion}}
    			}
    		}
    	}
    
    	// Otherwise just instantiate an empty item
    	elem := v.Type().Elem()
    	return func() runtime.Object {
    		return reflect.New(elem).Interface().(runtime.Object)
    	}
    }
    
    func (s *store) Count(key string) (int64, error) {
    	preparedKey, err := s.prepareKey(key)
    	if err != nil {
    		return 0, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 11:56:42 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/signature.go

    	for i, field := range list {
    		ftype := field.Type
    		// type-check type of grouped fields only once
    		if ftype != prev {
    			prev = ftype
    			if t, _ := ftype.(*syntax.DotsType); t != nil {
    				ftype = t.Elem
    				if variadicOk && i == len(list)-1 {
    					variadic = true
    				} else {
    					check.softErrorf(t, MisplacedDotDotDot, "can only use ... with final parameter in list")
    					// ignore ... and continue
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.td

        ```
    
        will be transformed into
    
        ```mlir
        func.func @main(%arg0: tensor<f32>) {
          %elem = "tf.Const"() <{value = dense<0.000000e+00> : tensor<f32>}> : () -> tensor<f32>
          %shape = "tf.Const"() <{value = dense<> : tensor<0xi64>}> : () -> tensor<0xi64>
          %zero = "tf.Fill"(%shape, %elem) : (tensor<0xi64>, tensor<f32>) -> tensor<f32>
          tf_device.replicate([%arg0, %zero] as %arg1: tensor<f32>) {n = 2 : i32} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  7. src/runtime/stack.go

    		// GC to avoid the following type of situation:
    		//
    		// 1) GC starts, scans a SudoG but does not yet mark the SudoG.elem pointer
    		// 2) The stack that pointer points to is copied
    		// 3) The old stack is freed
    		// 4) The containing span is marked free
    		// 5) GC attempts to mark the SudoG.elem pointer. The
    		//    marking fails because the pointer looks like a
    		//    pointer into a free span.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  8. src/encoding/gob/doc.go

    		TextMarshalerT   *gobEncoderType
    
    	}
    	type arrayType struct {
    		CommonType
    		Elem typeId
    		Len  int
    	}
    	type CommonType struct {
    		Name string // the name of the struct type
    		Id  int    // the id of the type, repeated so it's inside the type
    	}
    	type sliceType struct {
    		CommonType
    		Elem typeId
    	}
    	type structType struct {
    		CommonType
    		Field []*fieldType // the fields of the struct.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. src/flag/flag.go

    	}
    	defVal := reflect.ValueOf(val)
    	if defVal.Kind() == reflect.Ptr {
    		defVal = defVal.Elem()
    	}
    	if defVal.Type() != ptrVal.Type().Elem() {
    		panic(fmt.Sprintf("default type does not match variable type: %v != %v", defVal.Type(), ptrVal.Type().Elem()))
    	}
    	ptrVal.Elem().Set(defVal)
    	return textValue{p}
    }
    
    func (v textValue) Set(s string) error {
    	return v.p.UnmarshalText([]byte(s))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  10. pkg/apis/core/fuzzer/fuzzer.go

    			// a value between 0 and 0777
    			if k.Mode != nil {
    				*k.Mode &= 0777
    			}
    		},
    		func(vs *core.VolumeSource, c fuzz.Continue) {
    			// Exactly one of the fields must be set.
    			v := reflect.ValueOf(vs).Elem()
    			i := int(c.RandUint64() % uint64(v.NumField()))
    			t := v.Field(i).Addr()
    			for v.Field(i).IsNil() {
    				c.Fuzz(t.Interface())
    			}
    		},
    		func(i *core.ISCSIVolumeSource, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 04:32:01 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top