Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 179 for allocators_ (0.18 sec)

  1. tensorflow/compiler/jit/xla_platform_info.h

    std::string GetPersistentCacheDirectory(
        const DeviceType& compilation_device_type);
    
    // 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.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. tensorflow/compiler/jit/xla_launch_util_gpu_test.cc

        input->scalar<ResourceHandle>()() = handle;
        tensors_.push_back(input);
        inputs_.push_back({nullptr, input});
      }
    
     protected:
      core::RefCountPtr<DeviceContext> device_context_;
      Allocator* host_allocator_;
      Allocator* device_allocator_;
    
      XlaCompiler::Options compiler_options_;
      xla::PjRtClient* pjrt_client_;
      PjRtDeviceCompiler* device_compiler_;
      DeviceCompilationProfiler* profiler_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 10K bytes
    - Viewed (0)
  5. pkg/controller/nodeipam/ipam/range_allocator.go

    	defer r.broadcaster.Shutdown()
    
    	defer r.queue.ShutDown()
    
    	logger.Info("Starting range CIDR allocator")
    	defer logger.Info("Shutting down range CIDR allocator")
    
    	if !cache.WaitForNamedCacheSync("cidrallocator", ctx.Done(), r.nodesSynced) {
    		return
    	}
    
    	for i := 0; i < cidrUpdateWorkers; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.cc

      auto &builder = parser.getBuilder();
      llvm::SmallVector<mlir::OpAsmParser::UnresolvedOperand, 1> allocator;
      if (parser.parseOperandList(allocator,
                                  /*requiredOperandCount=*/1,
                                  mlir::OpAsmParser::Delimiter::Paren))
        return mlir::failure();
    
      if (parser.resolveOperand(allocator.front(),
                                builder.getType<fallback::TFAllocatorType>(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_device.h

      // The platform for this device.
      se::Platform* const platform_;  // Not owned.
      // Intra-op threads to spawn (from SessionOptions).
      const int intra_op_parallelism_threads_;
      // Memory allocator associated with this device.
      Allocator* xla_allocator_ TF_GUARDED_BY(mu_) = nullptr;  // Not owned.
      std::unique_ptr<AsyncValueAllocator> pjrt_allocator_ TF_GUARDED_BY(mu_);
    
      // Stream associated with this device. Operations enqueued on this
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top