Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for Deallocator (0.15 sec)

  1. tensorflow/c/tf_tensor.cc

      Allocator* allocator = nullptr;
      if (arg == nullptr) {
        allocator = cpu_allocator();
      } else {
        allocator = reinterpret_cast<Allocator*>(arg);
      }
      if (LogMemory::IsEnabled() && data != nullptr) {
        LogMemory::RecordRawDeallocation(
            "TensorFlow C Api", LogMemory::EXTERNAL_TENSOR_ALLOCATION_STEP_ID, data,
            allocator, false);
      }
      allocator->DeallocateRaw(data);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api.cc

        void (*deallocator)(void* data, size_t len, void* arg),
        void* deallocator_arg, TF_Status* status) {
      tensorflow::Device* device = nullptr;
      tensorflow::EagerContext* context =
          tensorflow::ContextFromInterface(tensorflow::unwrap(ctx));
      status->status = context->FindDeviceFromName(device_name, &device);
      if (!status->status.ok()) {
        deallocator(data, len, deallocator_arg);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental.h

    TF_CAPI_EXPORT extern TFE_TensorHandle* TFE_NewTensorHandleFromDeviceMemory(
        TFE_Context* ctx, const char* device_name, TF_DataType, const int64_t* dims,
        int num_dims, void* data, size_t len,
        void (*deallocator)(void* data, size_t len, void* arg),
        void* deallocator_arg, TF_Status* status);
    
    // Retrieves the address space (i.e. job, replia, task) of the local host and
    // saves it in the buffer.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  4. pkg/registry/core/service/ipallocator/ipallocator.go

    	return len(ips)
    }
    
    // for testing, it assumes this is the allocator is unique for the ipFamily
    func (a *Allocator) Free() int {
    	return int(a.size) - a.Used()
    }
    
    // Destroy
    func (a *Allocator) Destroy() {
    }
    
    // DryRun
    func (a *Allocator) DryRun() Interface {
    	return dryRunAllocator{a}
    }
    
    // EnableMetrics
    func (a *Allocator) EnableMetrics() {
    	registerMetrics()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17K bytes
    - Viewed (0)
  5. pkg/registry/core/service/ipallocator/cidrallocator_test.go

    		allocator, err := r.getAllocator(netutils.ParseIPSloppy("10.0.0.11"))
    		if err != nil {
    			return false, nil
    		}
    		allocator.ipAddressSynced = func() bool { return true }
    		return allocator.ready.Load(), nil
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    	// allocate one IP from the new allocator
    	err = r.Allocate(netutils.ParseIPSloppy("10.0.0.11"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  6. pkg/registry/core/service/ipallocator/cidrallocator.go

    func (c *MetaAllocator) AllocateService(service *api.Service, ip net.IP) error {
    	allocator, err := c.getAllocator(ip)
    	if err != nil {
    		return err
    	}
    	return allocator.AllocateService(service, ip)
    }
    
    func (c *MetaAllocator) Allocate(ip net.IP) error {
    	allocator, err := c.getAllocator(ip)
    	if err != nil {
    		return err
    	}
    	return allocator.Allocate(ip)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  7. pkg/registry/core/rest/storage_core.go

    	"k8s.io/kubernetes/pkg/registry/core/service/allocator"
    	serviceallocator "k8s.io/kubernetes/pkg/registry/core/service/allocator/storage"
    	"k8s.io/kubernetes/pkg/registry/core/service/ipallocator"
    	serviceipallocatorcontroller "k8s.io/kubernetes/pkg/registry/core/service/ipallocator/controller"
    	"k8s.io/kubernetes/pkg/registry/core/service/portallocator"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  8. pkg/registry/core/service/ipallocator/controller/repair.go

    	storedByFamily := make(map[v1.IPFamily]ipallocator.Interface)
    
    	err := wait.PollImmediate(time.Second, 10*time.Second, func() (bool, error) {
    		for family, allocator := range c.allocatorByFamily {
    			// get snapshot if it is not there
    			if _, ok := snapshotByFamily[family]; !ok {
    				snapshot, err := allocator.Get()
    				if err != nil {
    					return false, err
    				}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  9. pkg/registry/core/service/ipallocator/controller/repair_test.go

    		t.Fatal(err)
    	}
    	after, err := ipallocator.NewFromSnapshot(ipregistry.updated)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !after.Has(netutils.ParseIPSloppy("192.168.1.1")) || !after.Has(netutils.ParseIPSloppy("192.168.1.100")) {
    		t.Errorf("unexpected ipallocator state: %#v", after)
    	}
    	if free := after.Free(); free != 252 {
    		t.Errorf("unexpected ipallocator state: %d free (expected 252)", free)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_launch_util_gpu_test.cc

        // Get the host allocator.
        AllocatorAttributes host_alloc_attr;
        host_alloc_attr.set_on_host(true);
        host_allocator_ = device_->GetAllocator(host_alloc_attr);
    
        AllocatorAttributes device_alloc_attr;
        device_alloc_attr.set_on_host(false);
        device_allocator_ = device_->GetAllocator(device_alloc_attr);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 10K bytes
    - Viewed (0)
Back to top