Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for sliceok1 (0.16 sec)

  1. src/cmd/cgo/internal/testerrors/ptr_test.go

    		c:    `struct s5 { int *p1; int *p2; }; void f5(int **p) {}`,
    		body: `p := &C.struct_s5{p1: nil, p2: new(C.int)}; C.f5(&p.p1)`,
    		fail: false,
    	},
    	{
    		// Passing the address of a slice with no Go pointers.
    		name:    "sliceok1",
    		c:       `void f6(void **p) {}`,
    		imports: []string{"unsafe"},
    		body:    `s := []unsafe.Pointer{nil}; C.f6(&s[0])`,
    		fail:    false,
    	},
    	{
    		// Passing the address of a slice with a Go pointer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/gofmt/testdata/slices1.input

    Robert Griesemer <******@****.***> 1408667113 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 22 00:25:13 UTC 2014
    - 957 bytes
    - Viewed (0)
  4. src/cmd/gofmt/testdata/slices1.golden

    Robert Griesemer <******@****.***> 1408667113 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 22 00:25:13 UTC 2014
    - 927 bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. callbacks/associations.go

    				isPtr := fieldType.Kind() == reflect.Ptr
    				if !isPtr {
    					fieldType = reflect.PtrTo(fieldType)
    				}
    				elems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    				distinctElems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    				joins := reflect.MakeSlice(reflect.SliceOf(reflect.PtrTo(rel.JoinTable.ModelType)), 0, 10)
    				objs := []reflect.Value{}
    
    				appendToJoins := func(obj reflect.Value, elem reflect.Value) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  8. 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)
  9. pilot/pkg/serviceregistry/kube/controller/endpointslice_test.go

    	cache := newEndpointSliceCache()
    	hostname := host.Name("foo")
    
    	// add a endpoint
    	ep1 := &model.IstioEndpoint{
    		Address:         "1.2.3.4",
    		ServicePortName: "http",
    	}
    	cache.Update(hostname, "slice1", []*model.IstioEndpoint{ep1})
    	if !testEndpointsEqual(cache.Get(hostname), []*model.IstioEndpoint{ep1}) {
    		t.Fatalf("unexpected endpoints")
    	}
    	if !cache.Has(hostname) {
    		t.Fatalf("expect to find the host name")
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 18:50:38 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

    }
    
    // Determines the output type of the `SliceOp` when it is being inserted in
    // place of a `XlaGatherOp`. When the dimensions of `xla_gather_op_output_type`
    // is known, the `collapsed_dims` are restored. `xla_gather_op_output_type` is
    // the result of collapsing the `collapsed_dims`, but the `SliceOp`'s output
    // should not have the dimensions collapsed already. Returns
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.2K bytes
    - Viewed (0)
Back to top