Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for WaitForDefinitionEventOnStream (0.79 sec)

  1. tensorflow/compiler/jit/xla_tensor.h

      }
    
      // Adds synchronization events to 'stream' that wait for this tensor to be
      // defined on 'stream'. Does nothing if the tensor is already defined on that
      // stream.
      void WaitForDefinitionEventOnStream(se::Stream* stream);
    
      // (Re)sets the definition event of the tensor to 'event', and promises that
      // the tensor has already been defined on stream. Removes any previous
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_tensor.cc

        index_to_buffer.second = buffer.Release();
      }
    
      VLOG(4) << shaped_buffer.ToString();
    
      set_shaped_buffer(std::move(shaped_buffer));
      return absl::OkStatus();
    }
    
    void XlaTensor::WaitForDefinitionEventOnStream(se::Stream* stream) {
      mutex_lock lock(mu_);
      if (!definition_event_) {
        return;
      }
    
      // The set of defined streams is expected to be very small indeed (usually
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_device_context.cc

        }
        device_to_host_stream =
            std::shared_ptr<se::Stream>(std::move(ptr_or_status.value()));
      }
    
      XlaTensor* xla_tensor = XlaTensor::FromTensor(device_tensor);
      xla_tensor->WaitForDefinitionEventOnStream(device_to_host_stream.get());
    
      // Transfer manager requires the shape of the shaped buffer to be the same as
      // literal shape except for the layout.  Set the literal to use xla_tensor's
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_tpu_device.cc

                << " output buffers: " << xla_output->shaped_buffer().ToString();
    
        // Wait for definition event of the source tensor so the input buffers are
        // available.
        xla_input->WaitForDefinitionEventOnStream(dst_device_to_device_stream);
    
        // Wait for the destination tensor buffers to be ready, if they are not
        // available for an immediate write.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_launch_util.cc

              << "Must have a stream available when using XLA tensors!";
          XlaTensor* xla_tensor = XlaTensor::FromTensor(t);
          CHECK(xla_tensor);
          xla_tensor->WaitForDefinitionEventOnStream(
              ctx->op_device_context()->stream());
        }
    
        arguments.emplace_back(device_shape, host_shape);
        xla::ExecutionInput& execution_input = arguments.back();
    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