- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 182 for Deallocator (0.23 sec)
-
pkg/registry/core/service/ipallocator/bitmap.go
if err != nil { return nil, err } return &r, nil } // NewInMemory creates an in-memory allocator. func NewInMemory(cidr *net.IPNet) (*Range, error) { return New(cidr, func(max int, rangeSpec string, offset int) (allocator.Interface, error) { return allocator.NewAllocationMapWithOffset(max, rangeSpec, offset), nil }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 25 20:32:40 UTC 2023 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/jit/kernels/xla_ops.cc
} std::shared_ptr<se::DeviceMemoryAllocator> allocator = GetAllocator(ctx->device(), GetStream(ctx), platform_info); XlaComputationLaunchContext launch_context = GetLaunchContext(platform_info, ctx, client, allocator.get()); const xla::HloInputOutputAliasConfig& input_output_alias =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 22:46:36 UTC 2024 - 41.4K bytes - Viewed (0) -
tensorflow/c/kernels/summary_op_test.cc
#include "tensorflow/core/protobuf/error_codes.pb.h" namespace tensorflow { namespace { class DummyDevice : public DeviceBase { public: explicit DummyDevice(Env* env) : DeviceBase(env) {} Allocator* GetAllocator(AllocatorAttributes /*attr*/) override { return cpu_allocator(); } }; // Helper for comparing output and expected output void ExpectSummaryMatches(const Summary& actual, const string& expected_str) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 18 15:10:51 UTC 2022 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_kernel_creator.cc
&fbody->record->fdef().signature(), node_def, fbody->arg_types, fbody->ret_types); OpKernelConstruction construction(DeviceType(dev->device_type()), dev, dev->GetAllocator(AllocatorAttributes()), flr, dev->resource_manager(), props, input_memory_types, output_memory_types,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 31 22:24:01 UTC 2023 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_device.h
std::optional<std::set<int>> allowed_devices; }; // Creates a new XLA Device. XlaDevice(const SessionOptions& session_options, const Options& options); ~XlaDevice() override; Allocator* GetAllocator(AllocatorAttributes attr) override TF_LOCKS_EXCLUDED(mu_); void Compute(OpKernel* op_kernel, OpKernelContext* context) override; void ComputeAsync(AsyncOpKernel* op_kernel, OpKernelContext* context,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 13.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_op_enums.td
} def TFL_LSTMKernelTypeAttr : EnumAttr<TFL_Dialect, TFL_LSTMKernelType, "lstm_kernel_type_attr">; def I32ArrayParameter : AttrOrTypeParameter<"::llvm::ArrayRef<int32_t>", ""> { let allocator = [{$_dst = $_allocator.copyInto($_self);}]; let cppStorageType = "::llvm::SmallVector<int32_t>"; let parser = "::mlir::TFL::parseI32Array($_parser)"; let printer = "$_printer << '[' << $_self << ']'"; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 20 00:05:24 UTC 2022 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_launch_util_test.cc
TF_CHECK_OK(device_->TryGetDeviceContext(&device_context_)); // Get the host allocator. AllocatorAttributes host_alloc_attr; host_alloc_attr.set_on_host(true); host_allocator_ = device_->GetAllocator(host_alloc_attr); // Get the device allocator. This should give us an AsyncValueAllocator. AllocatorAttributes device_alloc_attr; device_alloc_attr.set_on_host(false);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 28.8K bytes - Viewed (0) -
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) -
tensorflow/c/kernels/bitcast_op_test.cc
#include "tensorflow/core/platform/test.h" namespace tensorflow { namespace { class DummyDevice : public DeviceBase { public: explicit DummyDevice(Env* env) : DeviceBase(env) {} Allocator* GetAllocator(AllocatorAttributes /*attr*/) override { return cpu_allocator(); } }; void TestBitcastOp(Tensor* input_tensor, DataType out_type, TensorShape expected_shape, error::Code expected_code) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 18 15:10:51 UTC 2022 - 5.5K bytes - Viewed (0) -
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)