- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 392 for asSlice (0.15 sec)
-
src/cmd/compile/internal/ssa/_gen/dec.rules
(OffPtr <typ.BytePtrPtr> [config.PtrSize] ptr) mem) (SlicePtr x:(Load <t> ptr mem)) && t.IsSlice() => @x.Block (Load <t.Elem().PtrTo()> ptr mem) (SliceLen x:(Load <t> ptr mem)) && t.IsSlice() => @x.Block (Load <typ.Int> (OffPtr <typ.IntPtr> [config.PtrSize] ptr) mem) (SliceCap x:(Load <t> ptr mem)) && t.IsSlice() => @x.Block (Load <typ.Int> (OffPtr <typ.IntPtr> [2*config.PtrSize] ptr) mem)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:48:31 UTC 2023 - 6.9K bytes - Viewed (0) -
test/typeparam/issue51925.go
// license that can be found in the LICENSE file. package main import "fmt" type IntLike interface { ~int | ~int64 | ~int32 | ~int16 | ~int8 } func Reduce[T any, U any, Uslice ~[]U](function func(T, U) T, sequence Uslice, initial T) T { result := initial for _, x := range sequence { result = function(result, x) } return result } func min[T IntLike](x, y T) T { if x < y { return x }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 963 bytes - Viewed (0) -
src/runtime/iface_test.go
func (TL) Method2() {} type T8 uint8 type T16 uint16 type T32 uint32 type T64 uint64 type Tstr string type Tslice []byte func (T8) Method1() {} func (T16) Method1() {} func (T32) Method1() {} func (T64) Method1() {} func (Tstr) Method1() {} func (Tslice) Method1() {} var ( e any e_ any i1 I1 i2 I2 ts TS tm TM tl TL ok bool ) // Issue 9370
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_data_fuse_pmap_and_batch.mlir
%3 = "tf.Const"() {value = dense<12> : tensor<i32>} : () -> tensor<i32> // CHECK: %[[TSLICE:.*]] = "tf.TensorSliceDataset" %4 = "tf.TensorSliceDataset"(%2) {device = "", output_shapes = [#tf_type.shape<>], metadata = ""} : (tensor<3xi32>) -> tensor<*x!tf_type.variant> // CHECK: "tf.MapAndBatchDataset"(%[[TSLICE]], // CHECK-SAME: f = @"__inference_Dataset_map_<lambda>_80", %5 = "tf.ParallelMapDataset"(%4, %3) {device = "",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 24 05:47:26 UTC 2022 - 1.9K bytes - Viewed (0) -
docs_src/security/tutorial003_an_py310.py
"full_name": "John Doe", "email": "******@****.***", "hashed_password": "fakehashedsecret", "disabled": False, }, "alice": { "username": "alice", "full_name": "Alice Wonderson", "email": "alice@example.com", "hashed_password": "fakehashedsecret2", "disabled": True, }, } app = FastAPI() def fake_hash_password(password: str):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 2.5K bytes - Viewed (0) -
src/internal/fuzz/mutators_byteslice.go
b = b[:end+(n*2)] // Copy the block of bytes we want to duplicate to the end of the // slice copy(b[end+n:], b[src:src+n]) // Shift the bytes after the splice point n positions to the right // to make room for the new block copy(b[dst+n:end+n], b[dst:end]) // Insert the duplicate block into the splice point copy(b[dst:], b[end+n:]) b = b[:end+n] return b }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 19 18:23:43 UTC 2021 - 7.7K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/universe.go
okforbool[types.TBOOL] = true okforcap[types.TARRAY] = true okforcap[types.TCHAN] = true okforcap[types.TSLICE] = true ir.OKForConst[types.TBOOL] = true ir.OKForConst[types.TSTRING] = true okforlen[types.TARRAY] = true okforlen[types.TCHAN] = true okforlen[types.TMAP] = true okforlen[types.TSLICE] = true okforlen[types.TSTRING] = true okforeq[types.TPTR] = true okforeq[types.TUNSAFEPTR] = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/compile/internal/reflectdata/helpers.go
return kindRType(pos, typ, types.TCHAN) } // sliceElemRType asserts that typ is a slice type, and returns an // expression that yields the *runtime._type value representing typ's // element type. func sliceElemRType(pos src.XPos, typ *types.Type) ir.Node { base.AssertfAt(typ.IsSlice(), pos, "want slice type, have %v", typ) return TypePtrAt(pos, typ.Elem()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 04:50:32 UTC 2023 - 7.1K bytes - Viewed (0) -
src/testing/quick/quick_test.go
reportError("fMapAlias", CheckEqual(fMapAlias, fMapAlias, nil), t) reportError("fPtr", CheckEqual(fPtr, fPtr, nil), t) reportError("fPtrAlias", CheckEqual(fPtrAlias, fPtrAlias, nil), t) reportError("fSlice", CheckEqual(fSlice, fSlice, nil), t) reportError("fSliceAlias", CheckEqual(fSliceAlias, fSliceAlias, nil), t) reportError("fString", CheckEqual(fString, fString, nil), t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 12:54:00 UTC 2019 - 9K bytes - Viewed (0) -
src/internal/types/testdata/spec/assignability.go
// proto-types for tests type ( _Basic = int _Array = [10]int _Slice = []int _Struct = struct{ f int } _Pointer = *int _Func = func(x int) string _Interface = interface{ m() int } _Map = map[string]int _Chan = chan int Basic _Basic Array _Array Slice _Slice Struct _Struct Pointer _Pointer Func _Func Interface _Interface
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 5.1K bytes - Viewed (0)