- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 194 for asSlice (0.12 sec)
-
src/cmd/compile/internal/typebits/typebits.go
// If we ever have a moving GC, we need to change this for 2b (as // well as scan itabs to update their itab._type fields). bv.Set(int32(off/int64(types.PtrSize) + 1)) // pointer in second slot case types.TSLICE: // struct { byte *array; uintgo len; uintgo cap; } if off&int64(types.PtrSize-1) != 0 { base.Fatalf("typebits.Set: invalid TARRAY alignment, %v", t) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 01:53:41 UTC 2023 - 3.2K bytes - Viewed (0) -
doc/next/6-stdlib/3-iter.md
- [All](/pkg/slices#All) returns an iterator over slice indexes and values. - [Values](/pkg/slices#Values) returns an iterator over slice elements. - [Backward](/pkg/slices#Backward) returns an iterator that loops over a slice backward. - [Collect](/pkg/slices#Collect) collects values from an iterator into a new slice. - [AppendSeq](/pkg/slices#AppendSeq) appends values from an iterator to an existing slice.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:13 UTC 2024 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/tests/convert_tf_xla_op_to_tf_op.mlir
// CHECK: %[[slice:.*]] = "tf.Slice"(%arg0, %[[tensor_scatter_update]], %[[arg2_i64]]) : (tensor<?x2xf32>, tensor<2xi64>, tensor<2xi64>) -> tensor<*xf32> // CHECK: %[[reshape:.*]] = "tf.Reshape"(%[[slice]], %[[cst_1]]) : (tensor<*xf32>, tensor<1xi64>) -> tensor<*xf32> // CHECK: return %[[reshape]] : tensor<*xf32> // ----- // Tests that the converted `tf.Slice` has the correct number of dimensions
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 3.7K bytes - Viewed (0) -
pkg/slices/slices.go
} // SortFunc sorts the slice x in ascending order as determined by the less function. // This sort is not guaranteed to be stable. // The slice is modified in place but returned. func SortFunc[E any](x []E, less func(a, b E) int) []E { if len(x) <= 1 { return x } slices.SortFunc(x, less) return x } // SortStableFunc sorts the slice x while keeping the original order of equal element.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 06:28:11 UTC 2024 - 7.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/sysvshm_unix.go
// Retrieve the size of the shared memory to enable slice creation var info SysvShmDesc _, err := SysvShmCtl(id, IPC_STAT, &info) if err != nil { // release the shared memory if we can't find the size // ignoring error from shmdt as there's nothing sensible to return here shmdt(addr) return nil, err } // Use unsafe to convert addr into a []byte. b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), int(info.Segsz))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 1.4K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue64406.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 20:34:33 UTC 2023 - 403 bytes - Viewed (0) -
src/syscall/dir_plan9.go
// returning the remaining slice of b.. func pstring(b []byte, s string) []byte { b = pbit16(b, uint16(len(s))) n := copy(b, s) return b[n:] } // gbit8 reads an 8-bit number from b and returns it with the remaining slice of b. func gbit8(b []byte) (uint8, []byte) { return uint8(b[0]), b[1:] } // gbit16 reads a 16-bit number in little-endian order from b and returns it with the remaining slice of b. // //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:32:38 UTC 2024 - 5.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_data_fuse_map_and_batch.mlir
// CHECK: %[[NPC:.*]] = "tf.Const"() <{value = dense<1> : tensor<i64>}> // CHECK: %[[TSLICE:.*]] = "tf.TensorSliceDataset" %3 = "tf.TensorSliceDataset"(%2) {device = "", output_shapes = [#tf_type.shape<>], metadata = ""} : (tensor<3xi32>) -> tensor<*x!tf_type.variant> // CHECK: "tf.MapAndBatchDataset"(%[[TSLICE]], %[[BSIZE:.*]], %[[NPC]] // CHECK-SAME: f = @"__inference_Dataset_map_<lambda>_80",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 1.9K bytes - Viewed (0) -
tests/associations_belongs_to_test.go
&Company{Name: "company-slice-append-1"}, &Company{Name: "company-slice-append-2"}, &Company{Name: "company-slice-append-3"}, ) AssertAssociationCount(t, users, "Company", 3, "After Append") DB.Model(&users).Association("Manager").Append( GetUser("manager-slice-belongs-to-1", Config{}), GetUser("manager-slice-belongs-to-2", Config{}), GetUser("manager-slice-belongs-to-3", Config{}), )
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 9.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) //sys setfsgid(gid int) (prev int, err error) //sys setfsuid(uid int) (prev int, err error) //sys Shutdown(fd int, how int) (err error) //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) func Stat(path string, stat *Stat_t) (err error) { // Use fstatat, because Android's seccomp policy blocks stat.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 5.3K bytes - Viewed (0)