- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for sliceok3 (0.2 sec)
-
test/sliceopt.go
Austin Clements <******@****.***> 1515619738 -0500
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 08 22:25:25 UTC 2018 - 735 bytes - Viewed (0) -
test/slice3.go
Emmanuel Odeke <******@****.***> 1460323946 -0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 2.9K bytes - Viewed (0) -
test/escape_slice.go
s = make([]int, i, 1) // ERROR "make\(\[\]int, i, 1\) does not escape" _ = s } func slice12(x []int) *[1]int { // ERROR "leaking param: x to result ~r0 level=0$" return (*[1]int)(x) } func slice13(x []*int) [1]*int { // ERROR "leaking param: x to result ~r0 level=1$" return [1]*int(x) } func envForDir(dir string) []string { // ERROR "dir does not escape" env := os.Environ()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 3.9K bytes - Viewed (0) -
test/typeparam/append.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main type Recv <-chan int type sliceOf[E any] interface { ~[]E } func _Append[S sliceOf[T], T any](s S, t ...T) S { return append(s, t...) } func main() { recv := make(Recv) a := _Append([]Recv{recv}, recv) if len(a) != 2 || a[0] != recv || a[1] != recv {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 597 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.h
PatternRewriter& rewriter) const override; }; // Pad slice to 4d. struct PadSlice : public OpRewritePattern<TFL::SliceOp> { using OpRewritePattern<TFL::SliceOp>::OpRewritePattern; LogicalResult matchAndRewrite(TFL::SliceOp slice_op, PatternRewriter& rewriter) const override; }; // Fully connected to conv2d.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 03 16:37:16 UTC 2022 - 4.3K bytes - Viewed (0) -
src/cmd/internal/bio/buf_nommap.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !unix package bio func (r *Reader) sliceOS(length uint64) ([]byte, bool) { return nil, false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 269 bytes - Viewed (0) -
test/fixedbugs/issue30606.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 20:22:14 UTC 2019 - 502 bytes - Viewed (0) -
src/cmd/internal/bio/buf.go
// backing memory is read-only. func (r *Reader) Slice(length uint64) ([]byte, bool, error) { if length == 0 { return []byte{}, false, nil } data, ok := r.sliceOS(length) if ok { return data, true, nil } data = make([]byte, length) _, err := io.ReadFull(r, data) if err != nil { return nil, false, err } return data, false, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 11 17:15:15 UTC 2020 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc
mlir::stablehlo::ReshapeOp, mlir::stablehlo::SelectOp, mlir::stablehlo::SliceOp, mlir::stablehlo::TransposeOp>(op)) { scale_spec->has_same_scale_requirement = true; } if (llvm::isa<mlir::stablehlo::DynamicSliceOp, mlir::stablehlo::GatherOp, mlir::stablehlo::PadOp, mlir::stablehlo::SliceOp>(op)) { scale_spec->has_same_operand_and_result_type_requirement = true; } return scale_spec;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 7.8K bytes - Viewed (0) -
src/cmd/internal/bio/buf_mmap.go
// OpenBSD unlimited var mmapLimit int32 = 1<<31 - 1 func init() { // Linux is the only practically concerning OS. if runtime.GOOS == "linux" { mmapLimit = 30000 } } func (r *Reader) sliceOS(length uint64) ([]byte, bool) { // For small slices, don't bother with the overhead of a // mapping, especially since we have no way to unmap it. const threshold = 16 << 10 if length < threshold { return nil, false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 1.6K bytes - Viewed (0)