Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 71 for Deallocator (0.25 sec)

  1. tensorflow/compiler/jit/xla_compile_on_demand_op.cc

      std::shared_ptr<se::DeviceMemoryAllocator> allocator_ptr =
          GetAllocator(ctx->device(), stream, platform_info_);
      se::DeviceMemoryAllocator* allocator = allocator_ptr.get();
      XlaComputationLaunchContext launch_context(
          client, allocator, client->default_device_ordinal(),
          /*allocate_xla_tensors=*/platform_info_.xla_device_metadata() != nullptr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 08:39:39 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. pkg/registry/core/service/allocator/bitmap_test.go

    limitations under the License.
    */
    
    package allocator
    
    import (
    	"testing"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    func TestAllocate(t *testing.T) {
    	testCases := []struct {
    		name      string
    		allocator func(max int, rangeSpec string, reserved int) *AllocationBitmap
    		max       int
    		reserved  int
    	}{
    		{
    			name:      "NewAllocationMap",
    			allocator: NewAllocationMapWithOffset,
    			max:       32,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 10 08:56:31 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  3. pkg/registry/core/service/ipallocator/bitmap_test.go

    }
    
    func TestClusterIPMetrics(t *testing.T) {
    	clearMetrics()
    	// create IPv4 allocator
    	cidrIPv4 := "10.0.0.0/24"
    	_, clusterCIDRv4, _ := netutils.ParseCIDRSloppy(cidrIPv4)
    	a, err := NewInMemory(clusterCIDRv4)
    	if err != nil {
    		t.Fatalf("unexpected error creating CidrSet: %v", err)
    	}
    	a.EnableMetrics()
    	// create IPv6 allocator
    	cidrIPv6 := "2001:db8::/112"
    	_, clusterCIDRv6, _ := netutils.ParseCIDRSloppy(cidrIPv6)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 20:32:40 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  4. pkg/registry/core/service/portallocator/controller/repair.go

    	}
    	// If not yet initialized.
    	if snapshot.Range == "" {
    		snapshot.Range = c.portRange.String()
    	}
    	// Create an allocator because it is easy to use.
    	stored, err := portallocator.NewFromSnapshot(snapshot)
    	if err != nil {
    		return fmt.Errorf("unable to rebuild allocator from snapshot: %v", err)
    	}
    
    	// We explicitly send no resource version, since the resource version
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_launch_util.cc

        const std::map<int, const Tensor*>& resource_vars) {
      se::Stream* stream =
          ctx->op_device_context() ? ctx->op_device_context()->stream() : nullptr;
      Allocator* allocator = ctx->device()->GetAllocator({});
    
      // Computation output should always be a tuple.
      VLOG(2) << "Result tuple shape: " << output.on_host_shape().DebugString();
      VLOG(2) << "Result tuple shape (on device): "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  6. pkg/controller/nodeipam/ipam/range_allocator_test.go

    		// Initialize the range allocator.
    		allocator, err := NewCIDRRangeAllocator(tCtx, tc.fakeNodeHandler, fakeNodeInformer, tc.allocatorParams, nodeList)
    		if err != nil {
    			t.Errorf("%v: failed to create CIDRRangeAllocator with error %v", tc.description, err)
    			return
    		}
    		rangeAllocator, ok := allocator.(*rangeAllocator)
    		if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.td

    def ExecuteOpWithAllocator : FallbackAsync_Op<"executeop.allocator",
        [Pure, CoreRT_TypedAttributeTrait, TFRT_CostFunctionInterface, TFRT_AttrCostTrait]> {
      let summary = "The Fallback ExecuteOp with custom allocator";
      let description = [{
        Similar to ExecuteOp but takes a custom allocator for allocating output tensors.
      }];
    
      let arguments = (ins
        TFAllocatorType:$allocator,
        Variadic<TFTensorType>:$args,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. pkg/registry/core/service/ipallocator/ipallocator_test.go

    	}
    }
    
    func TestIPAllocatorClusterIPMetrics(t *testing.T) {
    	clearMetrics()
    	// create IPv4 allocator
    	cidrIPv4 := "10.0.0.0/24"
    	_, clusterCIDRv4, _ := netutils.ParseCIDRSloppy(cidrIPv4)
    	a, err := newTestAllocator(clusterCIDRv4)
    	if err != nil {
    		t.Fatal(err)
    	}
    	a.EnableMetrics()
    	// create IPv6 allocator
    	cidrIPv6 := "2001:db8::/112"
    	_, clusterCIDRv6, _ := netutils.ParseCIDRSloppy(cidrIPv6)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jun 25 13:14:46 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  9. pkg/registry/core/service/portallocator/allocator_test.go

    	clearMetrics()
    
    	// create NodePort allocator
    	portRange := "30000-32766"
    	pr, err := net.ParsePortRange(portRange)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	a, err := NewInMemory(*pr)
    	if err != nil {
    		t.Fatalf("unexpected error creating nodeport allocator: %v", err)
    	}
    	a.EnableMetrics()
    
    	// create metrics disabled allocator with same port range
    	// this metrics should be ignored
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 14K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go

    	if memAlloc == nil {
    		klog.Error("a mandatory memory allocator wasn't provided, this might have a negative impact on performance, check invocations of EncodeWithAllocator method, falling back on runtime.SimpleAllocator")
    		memAlloc = &runtime.SimpleAllocator{}
    	}
    	switch t := obj.(type) {
    	case bufferedReverseMarshaller:
    		// this path performs a single allocation during write only when the Allocator wasn't provided
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 13:38:23 UTC 2022
    - 17.8K bytes
    - Viewed (0)
Back to top