Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 85 for str1 (0.11 sec)

  1. src/reflect/all_test.go

    	c *string
    	d map[float64]float64
    }
    
    func TestDeepEqualComplexStruct(t *testing.T) {
    	m := make(map[float64]float64)
    	stra, strb := "hello", "hello"
    	a, b := new(_Complex), new(_Complex)
    	*a = _Complex{5, [3]*_Complex{a, b, a}, &stra, m}
    	*b = _Complex{5, [3]*_Complex{b, a, a}, &strb, m}
    	if !DeepEqual(a, b) {
    		t.Error("DeepEqual(complex same) = false, want true")
    	}
    }
    
    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. docs/ko/docs/features.md

    여러분은 타입을 이용한 표준 파이썬을 다음과 같이 적을 수 있습니다:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # 변수를 str로 선언
    # 그 후 함수 안에서 편집기 지원을 받으세요
    def main(user_id: str):
        return user_id
    
    
    # Pydantic 모델
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    위의 코드는 다음과 같이 사용될 수 있습니다:
    
    ```Python
    my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

      // CHECK:      %[[bcast_mul2:.+]] = "mhlo.dynamic_broadcast_in_dim"(%[[mul2]], {{.*}}) <{broadcast_dimensions = dense<3> : tensor<1xi64>}> : (tensor<8xf32>, tensor<4xindex>) -> tensor<8x8x8x8xf32>
      // CHECK-NEXT: %[[mul3:.*]] = mhlo.multiply %[[grad]], %[[bcast_mul2]] : tensor<8x8x8x8xf32>
      // CHECK-NEXT: %[[scale_backprop:.*]] = mhlo.multiply %[[scr1]], %[[scr2]] : tensor<8xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
  4. pkg/controller/statefulset/stateful_set_utils_test.go

    			return true
    		}
    		refs[k] = false
    	}
    	return false
    }
    
    func TestOwnerRefsChanged(t *testing.T) {
    	toRefs := func(strs []string) []metav1.OwnerReference {
    		refs := []metav1.OwnerReference{}
    		for _, s := range strs {
    			pieces := strings.Split(s, "/")
    			refs = append(refs, metav1.OwnerReference{
    				APIVersion: pieces[0],
    				Kind:       pieces[1],
    				Name:       pieces[2],
    			})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/inst.json

    {"Name":"STR (immediate)","Bits":"11:2|1|1|1|0|0|0|0|0|0|imm9:9|1|1|Rn:5|Rt:5","Arch":"Pre-index 64-bit variant","Syntax":"STR <Xt>, [<Xn|SP>, #<simm>]!","Code":"","Alias":""},
    {"Name":"STR (immediate)","Bits":"10:2|1|1|1|0|0|1|0|0|imm12:12|Rn:5|Rt:5","Arch":"Unsigned offset 32-bit variant","Syntax":"STR <Wt>, [<Xn|SP>{, #<pimm>}]","Code":"","Alias":""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 17:57:48 UTC 2017
    - 234.7K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testerrors/ptr_test.go

    		name:    "stringdata",
    		c:       `void f41(void* p) {}`,
    		imports: []string{"unsafe"},
    		body:    `s := struct { a [4]byte; p *int }{p: new(int)}; str := unsafe.String(&s.a[0], 4); C.f41(unsafe.Pointer(unsafe.StringData(str)))`,
    		fail:    false,
    	},
    	{
    		name:    "slicedata",
    		c:       `void f42(void* p) {}`,
    		imports: []string{"unsafe"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    }
    
    func (sb *StructuredBindings) goString(indent int, field string) string {
    	var strb strings.Builder
    	fmt.Fprintf(&strb, "%*s%sStructuredBinding:", indent, "", field)
    	for _, b := range sb.Bindings {
    		strb.WriteByte('\n')
    		strb.WriteString(b.goString(indent+2, ""))
    	}
    	return strb.String()
    }
    
    // UnnamedType is an unnamed type, that just has an index.
    type UnnamedType struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    	NumUnit map[string][]string
    
    	locationIDX []uint64
    	labelX      []label
    }
    
    // label corresponds to Profile.Label
    type label struct {
    	keyX int64
    	// Exactly one of the two following values must be set
    	strX int64
    	numX int64 // Integer value for this label
    	// can be set if numX has value
    	unitX int64
    }
    
    // Mapping corresponds to Profile.Mapping
    type Mapping struct {
    	ID              uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  9. src/cmd/internal/testdir/testdir_test.go

    		return false
    	}
    	switch s[len(prefix)] {
    	case '[', ':':
    		return true
    	}
    	return false
    }
    
    func partitionStrings(prefix string, strs []string) (matched, unmatched []string) {
    	for _, s := range strs {
    		if matchPrefix(s, prefix) {
    			matched = append(matched, s)
    		} else {
    			unmatched = append(unmatched, s)
    		}
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    }
    
    // GUIDFromString parses a string in the form of
    // "{XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" into a GUID.
    func GUIDFromString(str string) (GUID, error) {
    	guid := GUID{}
    	str16, err := syscall.UTF16PtrFromString(str)
    	if err != nil {
    		return guid, err
    	}
    	err = clsidFromString(str16, &guid)
    	if err != nil {
    		return guid, err
    	}
    	return guid, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
Back to top