Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for shared_ptr (0.39 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/cc/client/client_session.cc

    class ClientSession::Impl {
     private:
      friend class ClientSession;
    
      Impl(Session* session, std::shared_ptr<Graph> graph)
          : session_(session), graph_(std::move(graph)) {}
    
      static SessionOptions MakeDefaultSessionOptions(const string& target);
      Status MaybeExtendGraph() const;
    
      std::unique_ptr<Session> session_;
      std::shared_ptr<Graph> graph_;
    
      mutable mutex mu_;
      mutable int last_num_graph_nodes_ TF_GUARDED_BY(mu_) = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 09:04:10 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_launch_util_test.cc

          /*owned_args=*/{}, &non_donatable_input_indices));
    
      EXPECT_EQ(exec_args.size(), 2);
    
      std::shared_ptr<xla::Literal> literal1 = *exec_args[0]->ToLiteralSync();
      EXPECT_TRUE(xla::LiteralTestUtil::Equal(
          *literal1, xla::LiteralUtil::CreateR2<int32_t>({{1, 2, 3}})));
    
      std::shared_ptr<xla::Literal> literal2 = *exec_args[1]->ToLiteralSync();
      EXPECT_TRUE(xla::LiteralTestUtil::Equal(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_tensor.cc

        return;
      }
    
      stream->WaitFor(definition_event_.get()).IgnoreError();
      streams_defined_on_.push_back(stream);
    }
    
    void XlaTensor::ResetDefinitionEvent(std::shared_ptr<se::Event> event,
                                         se::Stream* stream) {
      mutex_lock lock(mu_);
      definition_event_ = std::move(event);
      streams_defined_on_ = {stream};
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_platform_info.cc

      se::Platform::Id platform_id = nullptr;
      const XlaDevice::Metadata* xla_device_metadata = nullptr;
      const PjRtBaseDevice::Metadata* pjrt_device_metadata = nullptr;
      std::shared_ptr<se::DeviceMemoryAllocator> custom_allocator;
    
      const std::string& device_type = device_base->device_type();
      if (device_type == DEVICE_CPU) {
        platform_id = se::host::kHostPlatformId;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 17:23:27 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top