Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for shared_ptr (0.18 sec)

  1. tensorflow/compiler/jit/xla_device_context.h

    class XlaDeviceContext : public DeviceContext {
     public:
      explicit XlaDeviceContext(
          std::shared_ptr<se::Stream> compute_stream,
          std::shared_ptr<se::Stream> host_to_device_stream,
          std::shared_ptr<se::Stream> device_to_host_stream,
          std::vector<std::shared_ptr<se::Stream>> device_to_device_streams,
          xla::LocalClient* client,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_device_context.cc

        return false;
      }
      return stream_executor_->ClearAllocatorStats();
    }
    
    XlaDeviceContext::XlaDeviceContext(
        std::shared_ptr<se::Stream> compute_stream,
        std::shared_ptr<se::Stream> host_to_device_stream,
        std::shared_ptr<se::Stream> device_to_host_stream,
        std::vector<std::shared_ptr<se::Stream>> device_to_device_streams,
        xla::LocalClient* client,
        XlaShapeLayoutHelpers::ShapeDeterminationFns shape_determination_fns,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/scope.cc

          colocation_constraints_(),
          disable_shape_inference_(disable_shape_inference) {}
    
    Scope::Impl::Impl(const std::shared_ptr<Graph>& graph,
                      const std::shared_ptr<Status>& status,
                      const std::shared_ptr<NameMap>& name_map,
                      const std::shared_ptr<ShapeRefiner>& refiner)
        : graph_(graph),
          status_(status),
          name_map_(name_map),
          refiner_(refiner),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_kernel_creator.cc

    #include "tensorflow/core/lib/core/status.h"
    #include "tsl/platform/errors.h"
    
    namespace tensorflow {
    
    bool XlaKernelCreator::CanCreateKernel(
        const FunctionLibraryRuntime& flr,
        const std::shared_ptr<const NodeProperties>& props) const {
      return CanCreateXlaKernel(props->node_def) &&
             !XlaOpRegistry::IsCompilationDevice(flr.device()->device_type());
    }
    
    static Status CreateXlaKernel(FunctionLibraryRuntime* flr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 22:24:01 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_device.cc

        TF_RETURN_IF_ERROR(EnsureStreamOkLocked(backend, "stream", &stream_,
                                                &need_new_device_context));
      }
    
      std::shared_ptr<se::Stream> host_to_device_stream;
      std::shared_ptr<se::Stream> device_to_host_stream;
      std::vector<std::shared_ptr<se::Stream>> device_to_device_streams;
      if (use_multiple_streams_) {
        TF_RETURN_IF_ERROR(EnsureStreamOkLocked(backend, "host_to_device_stream",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_platform_info.h

      explicit XlaPlatformInfo(
          const DeviceType device_type, se::Platform::Id platform_id,
          const XlaDevice::Metadata* xla_device_metadata,
          const PjRtBaseDevice::Metadata* pjrt_device_metadata,
          std::shared_ptr<se::DeviceMemoryAllocator> device_allocator)
          : device_type_(device_type),
            platform_id_(platform_id),
            xla_device_metadata_(xla_device_metadata),
            pjrt_device_metadata_(pjrt_device_metadata),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. tensorflow/cc/experimental/libtf/value.h

    class TaggedValueHash;
    using List = std::vector<TaggedValue>;
    using ListPtr = std::shared_ptr<List>;
    using Dict =
        absl::flat_hash_map<TaggedValue, TaggedValue, TaggedValueHash<TaggedValue>>;
    using DictPtr = std::shared_ptr<Dict>;
    using TuplePtr = std::shared_ptr<Tuple>;
    using Func =
        std::function<absl::StatusOr<TaggedValue>(TaggedValue, TaggedValue)>;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:23:45 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_device.h

      // If use_multiple_streams_, host to device transfers are performed using this
      // stream.
      std::shared_ptr<se::Stream> host_to_device_stream_ TF_GUARDED_BY(mu_);
      // If use_multiple_streams_, transfers between different devices are performed
      // using these streams.
      std::vector<std::shared_ptr<se::Stream>> device_to_device_streams_
          TF_GUARDED_BY(mu_);
    
      // See comments in options.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_tensor.h

      // streams.
      // It is legal to reset the definition event of a tensor when overwriting the
      // tensor's value (at which point, it is effectively a new tensor once again.)
      void ResetDefinitionEvent(std::shared_ptr<se::Event> event,
                                se::Stream* stream);
    
      // Refresh the status of streams_defined_on_. Return the first not-OK stream's
      // status or OK.
      Status RefreshStatusOfStreams();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_compiler_options_util_test.cc

      DeviceType compilation_device_type = DeviceType(DEVICE_GPU_XLA_JIT);
    
      se::Platform::Id platform_id = nullptr;
      auto xla_device_metadata = CreateXlaDeviceMetadata(compilation_device_type);
      std::shared_ptr<se::DeviceMemoryAllocator> custom_allocator;
      XlaPlatformInfo platform_info(
          compilation_device_type, platform_id, xla_device_metadata.get(),
          /*pjrt_device_metadata=*/nullptr, custom_allocator);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 29 01:41:20 UTC 2023
    - 14.8K bytes
    - Viewed (0)
Back to top