Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for Deallocator (0.21 sec)

  1. tensorflow/c/tf_tensor.h

    //
    // The data will be deallocated by a subsequent call to TF_DeleteTensor via:
    //      (*deallocator)(data, len, deallocator_arg)
    // Clients must provide a custom deallocator function so they can pass in
    // memory managed by something like numpy.
    //
    // May return NULL (and invoke the deallocator) if the provided data buffer
    // (data, len) is inconsistent with a tensor of the given TF_DataType
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 16:40:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. pkg/registry/core/service/portallocator/allocator.go

    	}
    
    	return a, err
    }
    
    // NewInMemory creates an in-memory allocator.
    func NewInMemory(pr net.PortRange) (*PortAllocator, error) {
    	return New(pr, func(max int, rangeSpec string, offset int) (allocator.Interface, error) {
    		return allocator.NewAllocationMapWithOffset(max, rangeSpec, offset), nil
    	})
    }
    
    // NewFromSnapshot allocates a PortAllocator and initializes it from a snapshot.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_host_send_recv_device_context_test.cc

        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);
      }
    
     protected:
      std::unique_ptr<Device> device_;
      Allocator* host_allocator_;
      Allocator* device_allocator_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_platform_info.h

    // Returns allocator from platform info if non-null, or populate and return a
    // pointer to the allocator adapter with allocator from context.
    //
    // This is necessary because for XLA devices the underlying TF allocator returns
    // dummy tensors.
    //
    // `stream` parameter is nullable when running on host.
    std::shared_ptr<se::DeviceMemoryAllocator> GetAllocator(
        DeviceBase* device, se::Stream* stream,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. pkg/controller/nodeipam/ipam/cidr_allocator.go

    	"k8s.io/klog/v2"
    )
    
    // CIDRAllocatorType is the type of the allocator to use.
    type CIDRAllocatorType string
    
    const (
    	// RangeAllocatorType is the allocator that uses an internal CIDR
    	// range allocator to do node CIDR range allocations.
    	RangeAllocatorType CIDRAllocatorType = "RangeAllocator"
    	// CloudAllocatorType is the allocator that uses cloud platform
    	// support to do node CIDR range allocations.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 13:03:57 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

      return new PJRT_Buffer{std::move(*buffer), c_api_client->pjrt_c_client()};
    }
    
    TEST(TensorPjRtBufferUtilTest, GetPjRtCBufferFromTensorNoBuffer) {
      auto allocator = std::make_unique<AsyncValueAllocator>();
      tensorflow::Tensor tensor(allocator.get(), DT_FLOAT, {1});
    
      EXPECT_THAT(
          GetPjRtCBufferFromTensor(&tensor),
          StatusIs(error::INTERNAL, HasSubstr(absl::StrCat(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 01 16:29:40 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. pkg/registry/core/service/portallocator/storage/storage_test.go

    	"k8s.io/kubernetes/pkg/registry/core/service/allocator"
    	allocatorstore "k8s.io/kubernetes/pkg/registry/core/service/allocator/storage"
    	"k8s.io/kubernetes/pkg/registry/core/service/portallocator"
    	"k8s.io/kubernetes/pkg/registry/registrytest"
    )
    
    const (
    	basePortRange = 30000
    	sizePortRange = 2768
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. src/runtime/traceregion.go

    // license that can be found in the LICENSE file.
    
    // Simple not-in-heap bump-pointer traceRegion allocator.
    
    package runtime
    
    import (
    	"internal/runtime/atomic"
    	"runtime/internal/sys"
    	"unsafe"
    )
    
    // traceRegionAlloc is a thread-safe region allocator.
    // It holds a linked list of traceRegionAllocBlock.
    type traceRegionAlloc struct {
    	lock     mutex
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. src/runtime/mklockrank.go

    # Above WB, we can have write barriers.
    < WB
    # Below WB is the write barrier implementation.
    < wbufSpans;
    
    # Span allocator
    stackLarge,
      stackpool,
      wbufSpans
    # Above mheap is anything that can call the span allocator.
    < mheap;
    # Below mheap is the span allocator implementation.
    #
    # Specials: we're allowed to allocate a special while holding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.td

        BuildableType<"$_builder.getType<::tfrt::fallback::TFTensorType>()"> {
      let description = [{
        `!tfrt_fallback.tf_tensor type` represents a tensorflow::Tensor.
      }];
    }
    
    // This corresponds to tensorflow::Allocator.
    def TFAllocatorType : DialectType<Fallback_Dialect,
        CPred<"$_self.isa<::tfrt::fallback::TFAllocatorType>()">, "!tfrt_fallback.tf_allocator type">,
        BuildableType<"$_builder.getType<::tfrt::fallback::TFAllocatorType>()"> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top