Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 418 for Allocate (0.16 sec)

  1. tensorflow/c/kernels_experimental.h

    // tensors. The caller takes ownership of temporary variables and is responsible
    // for freeing them with TF_DestroyTemporaryVariable. This function will return
    // an error when the following conditions are met:
    //   1. Cannot allocate a new temporary variable
    //   2. Calling plugin allocator failed
    TF_CAPI_EXPORT extern void TF_TemporaryVariable(
        TF_OpKernelContext* ctx, TF_DataType dtype, const int64_t* dims,
        int num_dims, TF_StringView* var_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 07 14:44:39 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  2. src/runtime/sigqueue.go

    // license that can be found in the LICENSE file.
    
    // This file implements runtime support for signal handling.
    //
    // Most synchronization primitives are not available from
    // the signal handler (it cannot block, allocate memory, or use locks)
    // so the handler communicates with a processing goroutine
    // via struct sig, below.
    //
    // sigsend is called by the signal handler to queue a new signal.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. src/mime/multipart/formdata.go

    			if _, err := file.Write(b.Bytes()); err != nil {
    				return nil, err
    			}
    			if copyBuf == nil {
    				copyBuf = make([]byte, 32*1024) // same buffer size as io.Copy uses
    			}
    			// os.File.ReadFrom will allocate its own copy buffer if we let io.Copy use it.
    			type writerOnly struct{ io.Writer }
    			remainingSize, err := io.CopyBuffer(writerOnly{file}, p, copyBuf)
    			if err != nil {
    				return nil, err
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. internal/lock/lock_windows.go

    // path unmodified.
    //
    // See https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath
    func fixLongPath(path string) string {
    	// Do nothing (and don't allocate) if the path is "short".
    	// Empirically (at least on the Windows Server 2013 builder),
    	// the kernel is arbitrarily okay with < 248 bytes. That
    	// matches what the docs above say:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. src/runtime/sys_windows_amd64.s

    	MOVQ	mp+0(FP), AX
    	LEAQ	m_tls(AX), DI
    	CALL	runtime·settls(SB)
    	RET
    
    // This is called from rt0_go, which runs on the system stack
    // using the initial stack allocated by the OS.
    TEXT runtime·wintls(SB),NOSPLIT,$0
    	// Allocate a TLS slot to hold g across calls to external code
    	MOVQ	SP, AX
    	ANDQ	$~15, SP	// alignment as per Windows requirement
    	SUBQ	$48, SP	// room for SP and 4 args as per Windows requirement
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 07:24:08 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. src/runtime/cpuprof.go

    		cpuprof.addExtra()
    		cpuprof.log.close()
    	}
    	unlock(&cpuprof.lock)
    }
    
    // add adds the stack trace to the profile.
    // It is called from signal handlers and other limited environments
    // and cannot allocate memory or acquire locks that might be
    // held at the time of the signal, nor can it use substantial amounts
    // of stack.
    //
    //go:nowritebarrierrec
    func (p *cpuProfile) add(tagPtr *unsafe.Pointer, stk []uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/filters/timeout.go

    	go func() {
    		defer func() {
    			err := recover()
    			// do not wrap the sentinel ErrAbortHandler panic value
    			if err != nil && err != http.ErrAbortHandler {
    				// Same as stdlib http server code. Manually allocate stack
    				// trace buffer size to prevent excessively large logs
    				const size = 64 << 10
    				buf := make([]byte, size)
    				buf = buf[:runtime.Stack(buf, false)]
    				err = fmt.Sprintf("%v\n%s", err, buf)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. src/sync/poolqueue.go

    		d = new(poolChainElt)
    		d.vals = make([]eface, initSize)
    		c.head = d
    		c.tail.Store(d)
    	}
    
    	if d.pushHead(val) {
    		return
    	}
    
    	// The current dequeue is full. Allocate a new one of twice
    	// the size.
    	newSize := len(d.vals) * 2
    	if newSize >= dequeueLimit {
    		// Can't make it any bigger.
    		newSize = dequeueLimit
    	}
    
    	d2 := &poolChainElt{}
    	d2.prev.Store(d)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 18:12:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. src/strconv/atoi.go

    // All ParseXXX functions allow the input string to escape to the error value.
    // This hurts strconv.ParseXXX(string(b)) calls where b is []byte since
    // the conversion from []byte must allocate a string on the heap.
    // If we assume errors are infrequent, then we can avoid escaping the input
    // back to the output by copying it first. This allows the compiler to call
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. src/net/rpc/client.go

    }
    
    // Go invokes the function asynchronously. It returns the [Call] structure representing
    // the invocation. The done channel will signal when the call is complete by returning
    // the same Call object. If done is nil, Go will allocate a new channel.
    // If non-nil, done must be buffered or Go will deliberately crash.
    func (client *Client) Go(serviceMethod string, args any, reply any, done chan *Call) *Call {
    	call := new(Call)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top