Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 182 for Deallocator (0.22 sec)

  1. 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)
  2. 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)
  3. src/cmd/compile/internal/ssa/_gen/allocators.go

    		fmt.Printf("%s\n", w.Bytes())
    		panic(err)
    	}
    
    	if err := os.WriteFile("../allocators.go", b, 0666); err != nil {
    		log.Fatalf("can't write output: %v\n", err)
    	}
    }
    func genAllocator(w io.Writer, a allocator) {
    	fmt.Fprintf(w, "var poolFree%s [%d]sync.Pool\n", a.name, a.maxLog-a.minLog)
    	fmt.Fprintf(w, "func (c *Cache) alloc%s(n int) %s {\n", a.name, a.typ)
    	fmt.Fprintf(w, "var s %s\n", a.typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_platform_info.cc

        // If we are on an XlaDevice, use the underlying XLA platform's allocator
        // directly. We could use the StreamExecutor's allocator which may
        // theoretically be more correct, but XLA returns a nice OOM message in a
        // Status and StreamExecutor does not.
        //
        // Importantly we can't use ctx->device()->GetAllocator() as the allocator
        // (which xla_allocator above uses) as on an XlaDevice, this is a dummy
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 17:23:27 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. 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)
  6. pkg/registry/core/service/ipallocator/interfaces.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package ipallocator
    
    import (
    	"errors"
    	"fmt"
    	"net"
    
    	api "k8s.io/kubernetes/pkg/apis/core"
    )
    
    // Interface manages the allocation of IP addresses out of a range. Interface
    // should be threadsafe.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/jit/xla_device.cc

      }
    
      Status status;
      if (alloc_attrs.on_host()) {
        *tensor = parsed;
      } else {
        Allocator* allocator;
        {
          mutex_lock lock(mu_);
          allocator = GetAllocatorLocked(alloc_attrs);
        }
        Tensor copy(allocator, parsed.dtype(), parsed.shape());
        TF_RETURN_IF_ERROR(
            device_context->CopyCPUTensorToDeviceSync(&parsed, this, &copy));
        *tensor = copy;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  9. pkg/registry/core/service/ipallocator/controller/repairip.go

    	defer r.svcQueue.ShutDown()
    	r.broadcaster.StartRecordingToSink(stopCh)
    	defer r.broadcaster.Shutdown()
    
    	klog.Info("Starting ipallocator-repair-controller")
    	defer klog.Info("Shutting down ipallocator-repair-controller")
    
    	if !cache.WaitForNamedCacheSync("ipallocator-repair-controller", stopCh, r.ipAddressSynced, r.servicesSynced, r.serviceCIDRSynced) {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  10. pkg/registry/core/service/storage/alloc.go

    				// TODO: simplify this and avoid all this duplicate code
    				svcAllocator, ok := allocator.(*ipallocator.MetaAllocator)
    				if ok {
    					allocatedIP, err = svcAllocator.AllocateNextService(service)
    				} else {
    					allocatedIP, err = allocator.AllocateNext()
    				}
    			} else {
    				allocatedIP, err = allocator.AllocateNext()
    			}
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
Back to top