Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 788 for fSlice (0.18 sec)

  1. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass_test.cc

      Output slice = ops::Slice(root.WithOpName("slice"), input, begin, size);
      root.graph()->AddControlEdge(control_pred.node(), slice.node());
    
      std::unique_ptr<Graph> result;
      TF_ASSERT_OK(IncreaseDynamismForAutoJit(root, &result));
    
      Node* static_shaped_slice = testing::FindNodeByName(
          result.get(), "slice/static_shaped_slice/static_shaped_slice");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  2. test/fixedbugs/issue56768.go

    package p
    
    type I interface {
    	M()
    }
    
    type slice []any
    
    func f() {
    	ss := struct{ i I }{}
    
    	_ = [...]struct {
    		s slice
    	}{
    		{
    			s: slice{ss.i},
    		},
    		{
    			s: slice{ss.i},
    		},
    		{
    			s: slice{ss.i},
    		},
    		{
    			s: slice{ss.i},
    		},
    		{
    			s: slice{ss.i},
    		},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 19:55:28 UTC 2022
    - 441 bytes
    - Viewed (0)
  3. test/fixedbugs/issue56727.go

    	M()
    }
    
    type S struct{}
    
    func (*S) M() {}
    
    type slice []I
    
    func f() {
    	ss := struct {
    		i I
    	}{
    		i: &S{},
    	}
    
    	_ = [...]struct {
    		s slice
    	}{
    		{
    			s: slice{ss.i},
    		},
    		{
    			s: slice{ss.i},
    		},
    		{
    			s: slice{ss.i},
    		},
    		{
    			s: slice{ss.i},
    		},
    		{
    			s: slice{ss.i},
    		},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 17:35:03 UTC 2022
    - 491 bytes
    - Viewed (0)
  4. test/unsafebuiltins.go

    	}
    
    	// unsafe.Slice
    	{
    		s := unsafe.Slice(&p[0], len(p))
    		assert(&s[0] == &p[0])
    		assert(len(s) == len(p))
    		assert(cap(s) == len(p))
    
    		// nil pointer with zero length returns nil
    		assert(unsafe.Slice((*int)(nil), 0) == nil)
    
    		// nil pointer with positive length panics
    		mustPanic(func() { _ = unsafe.Slice((*int)(nil), 1) })
    
    		// negative length
    		var neg int = -1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 17:15:15 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/assign.go

    	nif.Cond = ir.NewBinaryExpr(base.Pos, ir.OLE, nuint, scapuint)
    	nif.Likely = true
    
    	// then { s = s[:newLen] }
    	slice := ir.NewSliceExpr(base.Pos, ir.OSLICE, s, nil, newLen, nil)
    	slice.SetBounded(true)
    	nif.Body = []ir.Node{ir.NewAssignStmt(base.Pos, s, slice)}
    
    	// else { s = growslice(oldPtr, newLen, oldCap, num, T) }
    	call := walkGrowslice(s, nif.PtrInit(), oldPtr, newLen, oldCap, num)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc

      // Move all inner ops of the launch to the block containing the launch.
      auto body = launch.GetBody().without_terminator();
      Operation* launch_op = launch.getOperation();
      launch_op->getBlock()->getOperations().splice(
          launch_op->getIterator(), launch.GetBody().getOperations(), body.begin(),
          body.end());
    
      launch.erase();
    
      return success();
    }
    
    void LaunchToDeviceAttributePass::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. src/crypto/internal/bigmod/nat_noasm.go

    func addMulVVW1024(z, x *uint, y uint) (c uint) {
    	return addMulVVW(unsafe.Slice(z, 1024/_W), unsafe.Slice(x, 1024/_W), y)
    }
    
    func addMulVVW1536(z, x *uint, y uint) (c uint) {
    	return addMulVVW(unsafe.Slice(z, 1536/_W), unsafe.Slice(x, 1536/_W), y)
    }
    
    func addMulVVW2048(z, x *uint, y uint) (c uint) {
    	return addMulVVW(unsafe.Slice(z, 2048/_W), unsafe.Slice(x, 2048/_W), y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 07:52:41 UTC 2023
    - 664 bytes
    - Viewed (0)
  10. src/reflect/swapper.go

    // slice.
    //
    // Swapper panics if the provided interface is not a slice.
    func Swapper(slice any) func(i, j int) {
    	v := ValueOf(slice)
    	if v.Kind() != Slice {
    		panic(&ValueError{Method: "Swapper", Kind: v.Kind()})
    	}
    	// Fast path for slices of size 0 and 1. Nothing to swap.
    	switch v.Len() {
    	case 0:
    		return func(i, j int) { panic("reflect: slice index out of range") }
    	case 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top