Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for elem3 (0.1 sec)

  1. src/cmd/cgo/internal/testshared/testdata/depBase/dep.go

    	// This code below causes various go.itab.* symbols to be generated in
    	// the shared library. Similar code in ../exe/exe.go results in
    	// exercising https://golang.org/issues/17594
    	reflect.TypeOf(os.Stdout).Elem()
    	return 10
    }
    
    func F() int {
    	defer func() {}()
    	return V
    }
    
    func H() {
    	// Issue 67635: deadcoded closures causes linker crash.
    	func() { F() }()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	var selectedObjects []runtime.Object
    	for _, obj := range objs {
    		elem, ok := obj.(*storeElement)
    		if !ok {
    			return fmt.Errorf("non *storeElement returned from storage: %v", obj)
    		}
    		if filter(elem.Key, elem.Labels, elem.Fields) {
    			selectedObjects = append(selectedObjects, elem.Object)
    		}
    	}
    	if len(selectedObjects) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  3. 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)
  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. 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)
  6. 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)
  7. pkg/kubelet/apis/config/helpers_test.go

    		paths.Insert(sets.List(allPrimitiveFieldPaths(t, skipRecurseList, tp.Elem(), path))...)
    	case reflect.Struct:
    		for i := 0; i < tp.NumField(); i++ {
    			field := tp.Field(i)
    			paths.Insert(sets.List(allPrimitiveFieldPaths(t, skipRecurseList, field.Type, path.Child(field.Name)))...)
    		}
    	case reflect.Map, reflect.Slice:
    		paths.Insert(sets.List(allPrimitiveFieldPaths(t, skipRecurseList, tp.Elem(), path.Key("*")))...)
    	case reflect.Interface:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    			"prefix/ns/pod3": *makeTestStoreElement(makeTestPod("pod3", 6)),
    		}
    		items := make(map[string]storeElement)
    		for _, item := range store.List() {
    			elem := item.(*storeElement)
    			items[elem.Key] = *elem
    		}
    		if !apiequality.Semantic.DeepEqual(expected, items) {
    			t.Errorf("expected %v, got %v", expected, items)
    		}
    	}
    
    	// Test Replace.
    	store.Replace([]interface{}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssagen/ssa.go

    		s.Fatalf("expected pointer type: %v", n.Type())
    	}
    	elem, rtypeExpr := n.Type().Elem(), n.ElemRType
    	if count != nil {
    		if !elem.IsArray() {
    			s.Fatalf("expected array type: %v", elem)
    		}
    		elem, rtypeExpr = elem.Elem(), n.ElemElemRType
    	}
    	size := elem.Size()
    	// Casting from larger type to smaller one is ok, so for smallest type, do nothing.
    	if elem.Alignment() == 1 && (size == 0 || size == 1 || count == nil) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

      return parsed_device.has_type && parsed_device.type == kTPUReplicatedCore;
    }
    
    bool TypeValidForXLA(const mlir::Type& type) {
      const mlir::Type elem = getElementTypeOrSelf(type);
      return !mlir::isa<mlir::TF::ResourceType>(elem) &&
             !mlir::isa<mlir::TF::StringType>(elem);
    }
    
    mlir::LogicalResult GetDeviceToHostMap(
        mlir::tf_device::ClusterOp cluster,
        llvm::SmallVector<std::string, 8>& core_to_host) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
Back to top