Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 564 for SLICE (0.04 sec)

  1. src/unsafe/unsafe.go

    // At run time, if len is negative, or if ptr is nil and len is not zero,
    // a run-time panic occurs.
    func Slice(ptr *ArbitraryType, len IntegerType) []ArbitraryType
    
    // SliceData returns a pointer to the underlying array of the argument
    // slice.
    //   - If cap(slice) > 0, SliceData returns &slice[:1][0].
    //   - If slice == nil, SliceData returns nil.
    //   - Otherwise, SliceData returns a non-nil pointer to an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:45:20 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. src/slices/slices.go

    func ContainsFunc[S ~[]E, E any](s S, f func(E) bool) bool {
    	return IndexFunc(s, f) >= 0
    }
    
    // Insert inserts the values v... into s at index i,
    // returning the modified slice.
    // The elements at s[i:] are shifted up to make room.
    // In the returned slice r, r[i] == v[0],
    // and r[i+len(v)] == value originally at r[i].
    // Insert panics if i is out of range.
    // This function is O(len(s) + len(v)).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 29 14:01:59 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/tests/fold-constants-to-subgraph.mlir

      %0 = "tfl.slice"(%arg0, %arg1, %arg2) : (tensor<4x384x32xf32>, tensor<3xi32>, tensor<3xi32>) -> tensor<1x384x32xf32>
      func.return %0 : tensor<1x384x32xf32>
    }
    
    // PARTIAL-LABEL: @arg_reuse_test_2
    func.func @arg_reuse_test_2(%arg0: tensor<4x384x32xf32>, %arg1: tensor<3xi32>, %arg2: tensor<3xi32>) -> tensor<1x384x32xf32> attributes {tac.interface_name = "func2"} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. src/runtime/string.go

    // string and byte slice both refer to the same storage.
    // The storage is not zeroed. Callers should use
    // b to set the string contents and then drop b.
    func rawstring(size int) (s string, b []byte) {
    	p := mallocgc(uintptr(size), nil, false)
    	return unsafe.String((*byte)(p), size), unsafe.Slice((*byte)(p), size)
    }
    
    // rawbyteslice allocates a new byte slice. The byte slice is not zeroed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. doc/next/6-stdlib/99-minor/encoding/binary/60023.md

    The new [Encode] and [Decode] functions are byte slice equivalents
    to [Read] and [Write].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:58:26 UTC 2024
    - 157 bytes
    - Viewed (0)
  6. cmd/erasure-metadata-utils.go

    	// Shuffle slice xl metadata for expected distribution.
    	for index := range partsMetadata {
    		blockIndex := distribution[index]
    		shuffledPartsMetadata[blockIndex-1] = partsMetadata[index]
    	}
    	return shuffledPartsMetadata
    }
    
    // shuffleDisks - shuffle input disks slice depending on the
    // erasure distribution. Return shuffled slice of disks with
    // their expected distribution.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. pkg/apis/resource/namedresources.go

    	VersionValue *string
    }
    
    // NamedResourcesIntSlice contains a slice of 64-bit integers.
    type NamedResourcesIntSlice struct {
    	// Ints is the slice of 64-bit integers.
    	Ints []int64
    }
    
    // NamedResourcesStringSlice contains a slice of strings.
    type NamedResourcesStringSlice struct {
    	// Strings is the slice of strings.
    	Strings []string
    }
    
    // NamedResourcesRequest is used in ResourceRequestModel.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 12:18:45 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. pkg/proxy/config/config_test.go

    	namespacedName := types.NamespacedName{Namespace: slice.Namespace, Name: slice.Name}
    	h.state[namespacedName] = slice
    	h.sendEndpointSlices()
    }
    
    func (h *EndpointSliceHandlerMock) OnEndpointSliceDelete(slice *discoveryv1.EndpointSlice) {
    	h.lock.Lock()
    	defer h.lock.Unlock()
    	namespacedName := types.NamespacedName{Namespace: slice.Namespace, Name: slice.Name}
    	delete(h.state, namespacedName)
    	h.sendEndpointSlices()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  9. src/go/types/builtins.go

    		}
    
    	case _SliceData:
    		// unsafe.SliceData(slice []T) *T
    		check.verifyVersionf(call.Fun, go1_20, "unsafe.SliceData")
    
    		slice, _ := coreType(x.typ).(*Slice)
    		if slice == nil {
    			check.errorf(x, InvalidUnsafeSliceData, invalidArg+"%s is not a slice", x)
    			return
    		}
    
    		x.mode = value
    		x.typ = NewPointer(slice.elem)
    		if check.recordTypes() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  10. src/go/types/conversions.go

    		return true
    	}
    	// "and vice versa"
    	if isUnsafePointer(Vu) && (isPointer(Tu) || isUintptr(Tu)) {
    		return true
    	}
    
    	// "V is a slice, T is an array or pointer-to-array type,
    	// and the slice and array types have identical element types."
    	if s, _ := Vu.(*Slice); s != nil {
    		switch a := Tu.(type) {
    		case *Array:
    			if Identical(s.Elem(), a.Elem()) {
    				if check == nil || check.allowVersion(x, go1_20) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top