Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 1,017 for Allocate (0.26 sec)

  1. guava/src/com/google/common/util/concurrent/SequentialExecutor.java

          // it. To preserve FIFO order and failure atomicity of rejected execution when the same
          // Runnable is executed more than once, allocate a wrapper that we know is safe to remove by
          // object identity.
          // A data structure that returned a removal handle from add() would allow eliminating this
          // allocation.
          submittedTask =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/next_pluggable_device/c_api.cc

      TF_VariableInfo() = delete;
      // TF_VariableInfo is constructed here by TensorFlow, and will be passed to
      // plugin as a opaque pointer. Plugin will need to call C APIs below to
      // operate on TF_VariableInfo (such as allocate temp tensor for the `var` held
      // by the underlying tensorflow::VariableInfo.
      TF_VariableInfo(int index, const std::string& name, tensorflow::Var* var) {
        var_info = tensorflow::VariableInfo{index, name, var};
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

        llvm::SmallVector<MemoryEffects::EffectInstance, 4> effects;
        mem_interface.getEffectsOnValue(value, effects);
        for (auto& effect_instance : effects) {
          if (isa<MemoryEffects::Allocate>(effect_instance.getEffect())) {
            return true;
          }
        }
      }
      return false;
    }
    
    }  // namespace
    
    constexpr int64_t ResourceAliasAnalysisInfo::kUnknownResourceId;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/compile/internal/walk/convert.go

    		// Fixed (not loaded from a dictionary) type.
    		ta := ir.NewTypeAssertExpr(base.Pos, c, toType)
    		ta.SetOp(ir.ODOTTYPE2)
    		// Allocate a descriptor for this conversion to pass to the runtime.
    		ta.Descriptor = makeTypeAssertDescriptor(toType, true)
    		rhs = ta
    	} else {
    		ta := ir.NewDynamicTypeAssertExpr(base.Pos, ir.ODYNAMICDOTTYPE2, c, n.TypeWord)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/main/java/org/codelibs/core/io/FileUtil.java

            final FileInputStream is = InputStreamUtil.create(file);
            try {
                final FileChannel channel = is.getChannel();
                final ByteBuffer buffer = ByteBuffer.allocate((int) ChannelUtil.size(channel));
                ChannelUtil.read(channel, buffer);
                return buffer.array();
            } finally {
                CloseableUtil.close(is);
            }
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. pkg/registry/core/service/portallocator/controller/repair_test.go

    	}
    }
    
    func TestRepairLeak(t *testing.T) {
    	clearMetrics()
    
    	pr, _ := net.ParsePortRange("100-200")
    	previous, err := portallocator.NewInMemory(*pr)
    	if err != nil {
    		t.Fatal(err)
    	}
    	previous.Allocate(111)
    
    	var dst api.RangeAllocation
    	err = previous.Snapshot(&dst)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	fakeClient := fake.NewSimpleClientset()
    	registry := &mockRangeRegistry{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  10. src/internal/zstd/block.go

    func (r *Reader) compressedBlock(blockSize int) error {
    	if len(r.compressedBuf) >= blockSize {
    		r.compressedBuf = r.compressedBuf[:blockSize]
    	} else {
    		// We know that blockSize <= 128K,
    		// so this won't allocate an enormous amount.
    		need := blockSize - len(r.compressedBuf)
    		r.compressedBuf = append(r.compressedBuf, make([]byte, need)...)
    	}
    
    	if _, err := io.ReadFull(r.r, r.compressedBuf); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 17:57:43 UTC 2023
    - 10.2K bytes
    - Viewed (0)
Back to top