Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetByteSizeRequirement (0.36 sec)

  1. tensorflow/compiler/jit/xla_tensor.cc

        xla::Shape subshape =
            xla::ShapeUtil::GetSubshape(on_device_shape, index_to_buffer.first);
        uint64 size =
            client->backend().transfer_manager()->GetByteSizeRequirement(subshape);
        TF_ASSIGN_OR_RETURN(se::OwningDeviceMemory buffer,
                            client->backend().memory_allocator()->Allocate(
                                device_ordinal, size, /*retry_on_failure=*/false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_launch_util.cc

        // Copy host -> device. (Empty tensors don't have backing buffers.)
        // Manually allocate memory so we can allocate as much memory as the device
        // requires (as given by GetByteSizeRequirement). This avoids
        // XlaTransferManager having to reallocate the device buffer later if
        // XlaTransferManager is used.
        VLOG(1) << "Constant output tensor on device";
    
        TF_RETURN_IF_ERROR(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
Back to top