Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for typeOf (0.23 sec)

  1. src/reflect/all_test.go

    		{TypeOf(float32(0)), ""},
    		{TypeOf(float64(0)), ""},
    		{TypeOf(complex64(0)), ""},
    		{TypeOf(complex128(0)), ""},
    		{TypeOf(byte(0)), ""},
    		{TypeOf(rune(0)), ""},
    		{TypeOf([]byte(nil)), ""},
    		{TypeOf([]rune(nil)), ""},
    		{TypeOf(string("")), ""},
    		{TypeOf((*any)(nil)).Elem(), ""},
    		{TypeOf((*byte)(nil)), ""},
    		{TypeOf((*rune)(nil)), ""},
    		{TypeOf((*int64)(nil)), ""},
    		{TypeOf(map[string]int{}), ""},
    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. pkg/api/pod/util_test.go

    		"Spec.Volumes[*].VolumeSource.StorageOS.SecretRef",
    		"Spec.Volumes[*].VolumeSource.CSI.NodePublishSecretRef",
    	)
    	secretPaths := collectResourcePaths(t, "secret", nil, "", reflect.TypeOf(&api.Pod{}))
    	secretPaths = secretPaths.Difference(excludedSecretPaths)
    	if missingPaths := expectedSecretPaths.Difference(secretPaths); len(missingPaths) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  3. src/reflect/value.go

    		return flagStickyRO
    	}
    	return 0
    }
    
    func (v Value) typ() *abi.Type {
    	// Types are either static (for compiler-created types) or
    	// heap-allocated but always reachable (for reflection-created
    	// types, held in the central map). So there is no need to
    	// escape types. noescape here help avoid unnecessary escape
    	// of v.
    	return (*abi.Type)(abi.NoEscape(unsafe.Pointer(v.typ_)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  4. src/database/sql/sql_test.go

    	if err != nil {
    		t.Fatalf("ColumnTypes: %v", err)
    	}
    
    	types := make([]reflect.Type, len(tt))
    	for i, tp := range tt {
    		st := tp.ScanType()
    		if st == nil {
    			t.Errorf("scantype is null for column %q", tp.Name())
    			continue
    		}
    		types[i] = st
    	}
    	values := make([]any, len(tt))
    	for i := range values {
    		values[i] = reflect.New(types[i]).Interface()
    	}
    	ct := 0
    	for rows.Next() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  5. src/net/http/serve_test.go

    				}
    				if !strings.Contains(got, "Content-Type: some/type") {
    					return errors.New("wrong content-type")
    				}
    				return nil
    			},
    		},
    		{
    			name: "sniff-on-first-write content-type",
    			handler: func(rw ResponseWriter, r *Request) {
    				rw.Write([]byte("<html><head></head><body>some html</body></html>"))
    				rw.Header().Set("Content-Type", "x/wrong")
    			},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      // Forcely assign operand types to result types (the i-th operand type will
      // assign to i-th result type). Returns true if anything is changed.
      bool ForceTypeForPassThroughOperands(Operation* op, OperandRange operands,
                                           ResultRange results);
    
      // Makes result types match the operand types (the i-th result type will
      // match the i-th operand type). Returns true if anything is changed.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  7. doc/go1.17_spec.html

    </p>
    
    
    <h2 id="Types">Types</h2>
    
    <p>
    A type determines a set of values together with operations and methods specific
    to those values. A type may be denoted by a <i>type name</i>, if it has one,
    or specified using a <i>type literal</i>, which composes a type from existing types.
    </p>
    
    <pre class="ebnf">
    Type      = TypeName | TypeLit | "(" Type ")" .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

                        Attribute value) {
      // Handle the case where the type and value are already tensors.
      if (mlir::isa<TensorType>(type) && mlir::isa<ElementsAttr>(value)) {
        result.addTypes(type);
        result.addAttribute("value", value);
        return;
      }
    
      // Otherwise, default to the attribute builder.
      ConstOp::build(builder, result, value);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

                                    PatternRewriter &rewriter) const override {
        auto type = op.getOperand().getType().dyn_cast<RankedTensorType>();
        // If the input is an unranked tensor, cannpt rewrite.
        if (!type) return failure();
    
        // Expected return type of the ToBool operation. The return type of ToBool
        // operation is always 0D tensor of bool type.
        auto result_type = op.getResult().getType().cast<RankedTensorType>();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    	}
    
    	var types strings.Builder
    	if len(cl.Types) == 0 {
    		fmt.Fprintf(&types, "%*sTypes: nil", indent+2, "")
    	} else {
    		fmt.Fprintf(&types, "%*sTypes:", indent+2, "")
    		for i, t := range cl.Types {
    			types.WriteByte('\n')
    			types.WriteString(t.goString(indent+4, fmt.Sprintf("%d: ", i)))
    		}
    	}
    
    	var callConstraint string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
Back to top