- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 169 for Deallocator (0.21 sec)
-
tensorflow/compiler/jit/xla_device_context.h
#include "tensorflow/core/framework/allocator.h" #include "tensorflow/core/framework/device_base.h" #include "tensorflow/core/lib/core/status.h" namespace tensorflow { // The allocator used for Tensors assigned to the XLA device. The allocator // ignores the alignment and size of the request and always returns a new, // empty, XlaTensor. class XlaDeviceAllocator : public Allocator { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 5.1K bytes - Viewed (0) -
pkg/registry/core/service/allocator/storage/storage_test.go
api "k8s.io/kubernetes/pkg/apis/core" "k8s.io/kubernetes/pkg/registry/core/service/allocator" "k8s.io/kubernetes/pkg/registry/registrytest" ) func newStorage(t *testing.T) (*Etcd, *etcd3testing.EtcdTestServer, allocator.Interface, *storagebackend.Config) { etcdStorage, server := registrytest.NewEtcdStorage(t, "") mem := allocator.NewAllocationMap(100, "rangeSpecValue")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 01 20:54:26 UTC 2021 - 4.8K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/encoder_with_allocator_test.go
for _, tc := range benchTestCases() { b.Run(tc.name, func(b *testing.B) { b.ReportAllocs() allocator := &runtime.Allocator{} for n := 0; n < b.N; n++ { err := target.EncodeWithAllocator(tc.obj, ioutil.Discard, allocator) if err != nil { b.Fatal(err) } } }) } } type benchTestCase struct { name string obj runtime.Object }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 23 13:38:29 UTC 2022 - 3.6K bytes - Viewed (0) -
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) -
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) -
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) -
src/runtime/mfixalloc.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Fixed-size object allocator. Returned memory is not zeroed. // // See malloc.go for overview. package runtime import ( "runtime/internal/sys" "unsafe" ) // fixalloc is a simple free-list allocator for fixed size objects. // Malloc uses a FixAlloc wrapped around sysAlloc to manage its // mcache and mspan objects. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 24 20:28:25 UTC 2023 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_types.h
explicit TFRTypeStorage(unsigned num_attrs) : num_attrs(num_attrs) {} static TFRTypeStorage* construct(TypeStorageAllocator& allocator, KeyTy key) { // Allocate a new storage instance. auto byteSize = TFRTypeStorage::totalSizeToAlloc<StringAttr>(key.size()); auto rawMem = allocator.allocate(byteSize, alignof(TFRTypeStorage)); auto result = ::new (rawMem) TFRTypeStorage(key.size());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 05 07:17:01 UTC 2023 - 4.1K bytes - Viewed (0) -
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)