Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for inCopy (0.24 sec)

  1. staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go

    func TestSafeSort(t *testing.T) {
    	tests := []struct {
    		name   string
    		in     []string
    		inCopy []string
    		want   []string
    	}{
    		{
    			name:   "nil strings",
    			in:     nil,
    			inCopy: nil,
    			want:   nil,
    		},
    		{
    			name:   "ordered strings",
    			in:     []string{"bar", "foo"},
    			inCopy: []string{"bar", "foo"},
    			want:   []string{"bar", "foo"},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 29.9K bytes
    - Viewed (0)
  2. src/encoding/asn1/marshal_test.go

    		out any
    	}
    	var testData []testCase
    	for _, test := range unmarshalTestData {
    		pv := reflect.New(reflect.TypeOf(test.out).Elem())
    		inCopy := make([]byte, len(test.in))
    		copy(inCopy, test.in)
    		outCopy := pv.Interface()
    
    		testData = append(testData, testCase{
    			in:  inCopy,
    			out: outCopy,
    		})
    	}
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		for _, testCase := range testData {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 10K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/resource_operation_safety_analysis.cc

          return;
        }
    
        for (ResourceOp resource_op : other) {
          Add(resource_op);
        }
      }
    
      void Add(const ResourceOp& resource_op) {
        CHECK(!frozen_);
        if (!IsCopy() && Contains(resource_op)) {
          // We can avoid the copy if the item we want to insert already exists.
          return;
        }
    
        EnsureIsCopied();
        impl_->insert(resource_op);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. cmd/storage-rest-client.go

    	if opts.NoOp {
    		ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
    		defer cancel()
    
    		opts.DiskID = *client.diskID.Load()
    
    		infop, err := storageDiskInfoRPC.Call(ctx, client.gridConn, &opts)
    		if err != nil {
    			return info, toStorageErr(err)
    		}
    		info = *infop
    		if info.Error != "" {
    			return info, toStorageErr(errors.New(info.Error))
    		}
    		return info, nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/assign.go

    		// instantiate func memmove(to *any, frm *any, length uintptr)
    		fn := typecheck.LookupRuntime("memmove", elemtype, elemtype)
    		ncopy = mkcall1(fn, nil, &nodes, addr, sptr, nwid)
    	}
    	ln := append(nodes, ncopy)
    
    	typecheck.Stmts(ln)
    	walkStmtList(ln)
    	init.Append(ln...)
    	return s
    }
    
    // isAppendOfMake reports whether n is of the form append(x, make([]T, y)...).
    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/net/http/transfer.go

    			dst := w
    			if t.Method == "CONNECT" {
    				dst = bufioFlushWriter{dst}
    			}
    			ncopy, err = t.doBodyCopy(dst, body)
    		} else {
    			ncopy, err = t.doBodyCopy(w, io.LimitReader(body, t.ContentLength))
    			if err != nil {
    				return err
    			}
    			var nextra int64
    			nextra, err = t.doBodyCopy(io.Discard, body)
    			ncopy += nextra
    		}
    		if err != nil {
    			return err
    		}
    	}
    	if t.BodyCloser != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  7. src/runtime/stack.go

    		// Synchronize with channel ops and copy the part of
    		// the stack they may interact with.
    		ncopy -= syncadjustsudogs(gp, used, &adjinfo)
    	}
    
    	// Copy the stack (or the rest of it) to the new location
    	memmove(unsafe.Pointer(new.hi-ncopy), unsafe.Pointer(old.hi-ncopy), ncopy)
    
    	// Adjust remaining structures that have pointers into stacks.
    	// We have to do most of these before we traceback the new
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  8. internal/bucket/object/lock/lock.go

    		return nil, err
    	}
    
    	if !hold.Status.Valid() {
    		return nil, ErrMalformedXML
    	}
    	return
    }
    
    // FilterObjectLockMetadata filters object lock metadata if s3:GetObjectRetention permission is denied or if isCopy flag set.
    func FilterObjectLockMetadata(metadata map[string]string, filterRetention, filterLegalHold bool) map[string]string {
    	// Copy on write
    	dst := metadata
    	var copied bool
    	delKey := func(key string) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

            TypeID::get<TF::IgammacOp>(),
            TypeID::get<TF::IgammaGradAOp>(),
            TypeID::get<TF::InplaceAddOp>(),
            TypeID::get<TF::InTopKV2Op>(),
            TypeID::get<TF::InvertOp>(),
            TypeID::get<TF::InvOp>(),
            TypeID::get<TF::KthOrderStatisticOp>(),
            TypeID::get<TF::LRNOp>(),
            TypeID::get<TF::LRNGradOp>(),
            TypeID::get<TF::LeakyReluGradOp>(),
            TypeID::get<TF::LeakyReluOp>(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/builtin.go

    		init.Append(r)
    
    		// instantiate memmove(to *any, frm *any, size uintptr)
    		fn = typecheck.LookupRuntime("memmove", t.Elem(), t.Elem())
    		ncopy := mkcall1(fn, nil, init, ir.NewUnaryExpr(base.Pos, ir.OSPTR, s), copyptr, size)
    		init.Append(walkExpr(typecheck.Stmt(ncopy), init))
    
    		return s
    	}
    	// Replace make+copy with runtime.makeslicecopy.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top