Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for elem4 (0.07 sec)

  1. src/reflect/all_test.go

    	isValid(m.Func)
    	isNonNil(v.Elem().Field(0).Interface())
    	isNonNil(v.Elem().Field(1).Interface())
    	isNonNil(v.Elem().Field(2).Field(2).Index(0))
    	isNonNil(v.Elem().FieldByName("X").Interface())
    	isNonNil(v.Elem().FieldByName("Y").Interface())
    	isNonNil(v.Elem().FieldByName("Z").Interface())
    	isNonNil(v.Elem().FieldByName("S").Index(0).Interface())
    	isNonNil(v.Type().Method(0).Func.Interface())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. src/reflect/value.go

    		k := *(*string)(key.ptr)
    		if elem.typ() == nil {
    			mapdelete_faststr(v.typ(), v.pointer(), k)
    			return
    		}
    		elem.mustBeExported()
    		elem = elem.assignTo("reflect.Value.SetMapIndex", tt.Elem, nil)
    		var e unsafe.Pointer
    		if elem.flag&flagIndir != 0 {
    			e = elem.ptr
    		} else {
    			e = unsafe.Pointer(&elem.ptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/pkg.go

    func (p *Package) exeFromImportPath() string {
    	_, elem := pathpkg.Split(p.ImportPath)
    	if cfg.ModulesEnabled {
    		// If this is example.com/mycmd/v2, it's more useful to
    		// install it as mycmd than as v2. See golang.org/issue/24667.
    		if elem != p.ImportPath && isVersionElement(elem) {
    			_, elem = pathpkg.Split(pathpkg.Dir(p.ImportPath))
    		}
    	}
    	return elem
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/optimize.cc

          axis.getNumElements()) {
        return false;
      }
      auto shape = mlir::cast<ShapedType>(sq_op.getType());
      SmallVector<int, 4> elems{axis.getValues<int>().begin(),
                                axis.getValues<int>().end()};
      for (int i = 0; i < shape.getRank(); ++i) {
        if (i != elems[i]) return false;
      }
      return true;
    }
    
    using ::llvm::cast;
    
    // Optimize TFLite operations in functions.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/generic.rules

    // indexing operations
    // Note: bounds check has already been done
    (PtrIndex <t> ptr idx) && config.PtrSize == 4 && is32Bit(t.Elem().Size()) => (AddPtr ptr (Mul32 <typ.Int> idx (Const32 <typ.Int> [int32(t.Elem().Size())])))
    (PtrIndex <t> ptr idx) && config.PtrSize == 8 => (AddPtr ptr (Mul64 <typ.Int> idx (Const64 <typ.Int> [t.Elem().Size()])))
    
    // struct operations
    (StructSelect (StructMake1 x)) => x
    (StructSelect [0] (StructMake2 x _)) => x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  6. pkg/api/pod/util_test.go

    		return resourcePaths
    	}
    
    	if strings.Contains(strings.ToLower(name), resourcename) {
    		resourcePaths.Insert(path.String())
    	}
    
    	switch tp.Kind() {
    	case reflect.Pointer:
    		resourcePaths.Insert(sets.List[string](collectResourcePaths(t, resourcename, path, name, tp.Elem()))...)
    	case reflect.Struct:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  7. src/runtime/proc.go

    	s := pp.sudogcache[n-1]
    	pp.sudogcache[n-1] = nil
    	pp.sudogcache = pp.sudogcache[:n-1]
    	if s.elem != nil {
    		throw("acquireSudog: found s.elem != nil in cache")
    	}
    	releasem(mp)
    	return s
    }
    
    //go:nosplit
    func releaseSudog(s *sudog) {
    	if s.elem != nil {
    		throw("runtime: sudog with non-nil elem")
    	}
    	if s.isSelect {
    		throw("runtime: sudog with non-false isSelect")
    	}
    	if s.next != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (OffPtr [off] ptr) => (ADDconst [off] ptr)
    
    (Addr {sym} base) => (MOVDaddr {sym} base)
    (LocalAddr <t> {sym} base mem) && t.Elem().HasPointers() => (MOVDaddr {sym} (SPanchored base mem))
    (LocalAddr <t> {sym} base _)  && !t.Elem().HasPointers() => (MOVDaddr {sym} base)
    
    // loads
    (Load <t> ptr mem) && t.IsBoolean() => (MOVBUload ptr mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  9. src/database/sql/sql_test.go

    	for i := 0; i < 5; i++ {
    		id := i + 1
    		if err := db.QueryRow("SELECT|t|nullf|id=?", id).Scan(bindVal); err != nil {
    			t.Errorf("id=%d Scan: %v", id, err)
    		}
    		bindValDeref := reflect.ValueOf(bindVal).Elem().Interface()
    		if !reflect.DeepEqual(bindValDeref, spec.rows[i].scanNullVal) {
    			t.Errorf("id=%d got %#v, want %#v", id, bindValDeref, spec.rows[i].scanNullVal)
    		}
    	}
    }
    
    // golang.org/issue/4859
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  10. src/net/http/transport_test.go

    			"foo": func(authority string, c *tls.Conn) RoundTripper { panic("") },
    		},
    		ReadBufferSize:  1,
    		WriteBufferSize: 1,
    	}
    	tr2 := tr.Clone()
    	rv := reflect.ValueOf(tr2).Elem()
    	rt := rv.Type()
    	for i := 0; i < rt.NumField(); i++ {
    		sf := rt.Field(i)
    		if !token.IsExported(sf.Name) {
    			continue
    		}
    		if rv.Field(i).IsZero() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top