Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for Make (0.31 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

      TensorHandlePtr combined_value = CreatePerDeviceValues(
          context.get(), in_components, device_name, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
      // Loop to make synchronization failures more deterministic
      for (int i = 0; i < 100; ++i) {
        TensorHandlePtr multiply_result(
            Multiply(context.get(), combined_value.get(), combined_value.get(),
                     status.get()));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

    // directly, instead of requiring us to serialize to a GraphDef and
    // call Session::Extend().
    bool ExtendSessionGraphHelper(TF_Session* session, TF_Status* status) {
      if (session->graph != nullptr) {
        // Take the graph lock before the session lock to avoid deadlock. This is
        // safe since session->graph does not change.
        session->graph->mu.lock();
        mutex_lock session_lock(session->mu);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.cc

      // Update the vector with information from `input_tensors` if provided.
      if (input_tensors != nullptr) {
        // Note that we take the address of the elements in `all_input_tensors`
        // below. Allocate enough space so that no reallocation happens, which will
        // make the pointers invalid.
        all_input_tensors.reserve(num_inputs);
        for (int i = 0; i < num_inputs; ++i) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

      CHECK_OK(buffer.status());
    
      return new PJRT_Buffer{std::move(*buffer), c_api_client->pjrt_c_client()};
    }
    
    TEST(TensorPjRtBufferUtilTest, GetPjRtCBufferFromTensorNoBuffer) {
      auto allocator = std::make_unique<AsyncValueAllocator>();
      tensorflow::Tensor tensor(allocator.get(), DT_FLOAT, {1});
    
      EXPECT_THAT(
          GetPjRtCBufferFromTensor(&tensor),
          StatusIs(error::INTERNAL, HasSubstr(absl::StrCat(
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  5. tensorflow/c/eager/custom_device_testutil.cc

      TFE_TensorHandle* t = TFE_TensorHandleCopyToDevice(
          tensor, context, dev->underlying_device.c_str(), status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      auto dst = std::make_unique<LoggedTensor>(t);
      *(dev->arrived_flag) = true;
      return MakeLoggedTensorHandle(context, dev->device_name, std::move(dst),
                                    status);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_distributed_test.cc

      TFE_TensorHandle* h0 = TestVariable(ctx, 1.0, task1_name);
      TFE_TensorHandle* h1 = TestVariable(ctx, 2.0, task2_name);
      TFE_TensorHandle* h2 = TestVariable(ctx, 3.0, task0_name);
    
      // Add a sync point to make sure that variables have been initialized
      // before the function execution starts.
      TFE_ContextAsyncWait(ctx, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

      // in order to update them as appropriate.
      auto new_entry = std::make_shared<Block>();
      lru_list_.push_front(key);
      lra_list_.push_front(key);
      new_entry->lru_iterator = lru_list_.begin();
      new_entry->lra_iterator = lra_list_.begin();
      new_entry->timestamp = timer_seconds_();
      block_map_.emplace(std::make_pair(key, new_entry));
      return new_entry;
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  8. tensorflow/c/eager/gradients_test.cc

      int num_retvals = 1;
      std::vector<AbstractTensorHandle*> outputs(1);
      GradientRegistry registry;
      s = RegisterGradients(&registry);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
      auto tape = std::make_unique<Tape>(/*persistent=*/false);
      s = Execute(check_numerics_op.get(), ctx.get(), absl::MakeSpan(outputs),
                  &num_retvals, &forward_op, tape.get(), registry);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      auto file = std::make_unique<TF_RandomAccessFile>();
      std::string translated_name = TranslateName(fname);
      ops_->new_random_access_file(filesystem_.get(), translated_name.c_str(),
                                   file.get(), plugin_status.get());
    
      if (TF_GetCode(plugin_status.get()) == TF_OK)
        *result = std::make_unique<ModularRandomAccessFile>(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  10. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

          ParallelTensor::FromTensorHandles(parallel_device,
                                            std::move(mixed_handles), status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK);
      // Can't take the shape of a parallel tensor with varying numbers of axes, but
      // running operations on them is OK.
      TF_ASSERT_OK(unknown_length_vector->Shape(&shape));
      EXPECT_THAT(*shape, ElementsAre(-1));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
Back to top