Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AllocateShapedBuffer (0.14 sec)

  1. tensorflow/compiler/jit/xla_device_context.cc

        // The device tensor should always be fresh.
        TF_RET_CHECK(!xla_tensor->has_shaped_buffer());
    
        TF_RETURN_IF_ERROR(
            xla_tensor->AllocateShapedBuffer(device_tensor->dtype(), shape, client_,
                                             stream_->parent()->device_ordinal()));
    
        // The cpu_tensor and literal that we created here hold the data of host
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_tpu_device.cc

                                input->shape(), input->dtype(),
                                /*use_fast_memory=*/false, layout_preference));
        TF_RETURN_IF_ERROR(xla_output->AllocateShapedBuffer(
            input->dtype(), shape, dst_xla_context->client(), dst_device_ordinal));
    
        VLOG(2) << "TpuDeviceToDeviceCopy: src: "
                << src_compute_stream->parent()->device_ordinal() << ", "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top